Apache

Please Help
1.On Linux kernel can I use apache on Mini2440?
2.I need to use PHP and Webserver,If there are webpage to read on PHP and
webserver on mini2440 and how to build plz help me.
Thank you

Dave Festing
Attachment: thttpd.zip (24 KB)
1. Yes
2. Attached is my HowTo

The easiest way is to get setup with the Pengutronix Mini2440 BSP and
either have a go at ticking the Apache box or follow my HowTo run thttpd
enabled for PHP.

Rename the file as .doc

Note: thttpd and PHP are compiled with the Pengutronix 2011.11.0 toolchain
(the latest).

thanks
but I have problem on
 I use ubuntu 12.0.4 on terminal I type this "$  sudo ./php5-compile.sh " 
but there are no file like that.
Is there possible because of  I use PHP 5.3.1x or ububtu. very Thank.

Dave Festing
The HowTo is an example of compiling thttpd and php from source so that
they work together.

I am getting the impression you may not have cross-compiled anything
before.

If you are new to this game I would suggest you learn how to use the
Pengutronix mini2440 BSP to cross-compile your applications.

BTW, the script that follows the words:

"$  sudo ./php5-compile.sh " 

is the actual script which you to cut and paste into gedit or some other
editor on your Linux host, save it as php5-compile.sh and change the
permissions to 755.

Next, depending on which version of PHP you download you may need to change
the script.  I would suggest only using thttpd2.21b

Have you got a cross-compiler installed on your host?

Very thank
I tried to cross compile there are gedit /.bashrc 
I have got error message as 


(gedit:5804): WARNING **: The connection is closed

(gedit:5804): EggSMClient-WARNING **: Failed to connect to the session
manager: None of the authentication protocols specified are supported


** (gedit:5804): WARNING **: Could not connect to session bus

How could I do next my gcc is 4.3.2

Thank you

My fault
Upper problem I just solve them all now I  cross compile by linux-gcc-4.3.2
could I start on your this word "$  sudo ./php5-compile.sh " now? or do
something after this very thanks.

davef
You should get 4.3.2 from this website, at the very least.  Have you
installed arm-linux-gcc-4.3.2 on the host?

If and when you get thttpd and php cross-compiled what root file system do
you hope to use?

If you copy and save that script in your /home directory from the home
directory you should be able to do:

sudo ./php5-compile.sh

The next thing you will possibly have problems with is getting the
cross-compiler to work on this file.

There is old tutorial on the Wiki that should give you some hints on the
process.

davef
There are also some looooong Apache threads on this site as well.

The search function should be helpful.

TheRegnirps
If you can hang on a while, a co-conspirator and I will release Debian on
SD. Yes, it fits a Mini2440 and runs Python, PHP, Apache. Well, its Debian,
which means the ARMEL repository has everything as the main Debian x86/ADM
repositories. Drivers for every USB device and all that cool stuff.

It is so cool to plug your Mini2440 into the Ethernet and type apt-get
install Python and zoom! Python. Working on PyQt without X at the moment.

By the way, you can do a simple server in Python and don't need a data base
engine. Stay tuned for further announcements and where the git will be.

Dave Festing
What size mini2440?