Help - Search - Members - Calendar
Full Version: Apache2, PHP
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
pmf
I have finally managed to compile Apache 2.0.52 and PHP 5.0.2, allowing you to use your Zaurus as a mobile web-development system.

I expected it to be somewhat bloated or slow, but it turned out to run very fast and smooth.

Apache2: apache2_0.52_armv5tel.ipk
PHP: php_5.0.2_armv5tel.ipk

Or simply from the pdaXrom-unstable feed. Note that the package name is apache2, not apache.

All modules, including mod_ssh and mod_dav, are functional, so you can configure your Z as a SSL-secured WebDAV-server.

The PHP-distribution includes support for SQLite. I could compile in MySQL support, but I don't like MySQL, so this will have to wait until someone tells me one single reason why he needs MySQL-support (Hint: "But everyone uses MySQL!" does not count as valid reason. SQLite is faster, smaller and needs no setup or administration. Over short or long, ISPs and hosting companies will switch options for standard customers to use SQLite instead of wasting resources and administration time on MySQL; trust me on this.)

The default DocumentRoot is /opt/apache2/htdocs/.

If you want to setup a specific wwwrun-user for the webserver process (per default it runs as user nobody), do a
CODE
adduser wwwrun
and change the the User and Group-directives in the httpd.conf-file to
CODE
User wwwrun
Group wwwrun
. If you want anything more than serving static pages, you need to do this.

Start and stop with apachectl start / stop. The apachectl-script is in /usr/bin, so it should be in your PATH-envvar. Everything else is in /opt/apache2/.

Comments are welcome.
Randolph_Carter
Hi. I just installed your ports on my Zaurus, and it works very smooth.
However, I'd be grateful if you could turn on mbstring when compiling.
#I have to use them, since I'm Japanese.

Thanks in advance.
henrysviper
Hello

While I agree that SQlite is generally a better option, some of us are forced to use Mysql for development. So could you please compile mysql support?
Thank you.
raychow
I know MySQL is not the best but in fact its the most popular in the -nix world. I purchased xcart it supports MySQL only. I have no choice.
iamasmith
Are these applications suitable for RC5 yet ?
offroadgeek
QUOTE(iamasmith @ Oct 12 2004, 08:59 AM)
Are these applications suitable for RC5 yet ?

yes, it works beautifully with rc5 on my 760! yippee!!!

though, I would also request mysql to be compiled... too many things support only mysql (mediawiki for example)
offroadgeek
QUOTE(pmf @ Sep 30 2004, 04:37 AM)
I could compile in MySQL support, but I don't like MySQL, so this will have to wait until someone tells me one single reason why he needs MySQL-support (Hint: "But everyone uses MySQL!" does not count as valid reason. SQLite is faster, smaller and needs no setup or administration. Over short or long, ISPs and hosting companies will switch options for standard customers to use SQLite instead of wasting resources and administration time on MySQL; trust me on this.)

are you going to compile mysql into php, or are you going make someone else do this?

it seems silly to me that just because you don't like mysql that you would leave it out for others to recompile...
pmf
Multibyte strings (as requested), GD and MySQL support (traditional and via MySQLi) is there.

You will have to install the mysql-client (required) and mysql-server (optional) packages.

All in the unstable feed.
shula
i got a fatal error on running the php5 w apache2.

(the apache2 run well by itself and the apache1 & php4 runs perfect, but i need the sqlite extension!)

first it wanted libxml2.so.2 so i installed libxml2-2.4.16.ipk
the i ran apachctl start

the error is:
syntax error in httpds conf [...]
cannot load /[...]/libphp5.so [...]
undefined symbol: xmlSchemaFreeValidCtxt


cacko 1.21b, sl-c860.

(i tried to replace expat ... it just yielded a different missing function.)

any ideas?
pmf
QUOTE(shula @ Nov 8 2004, 04:05 PM)
i got a fatal error on running the php5 w apache2.

(the apache2 run well by itself and the apache1 & php4 runs perfect, but i need the sqlite extension!)

first it wanted libxml2.so.2  so i installed libxml2-2.4.16.ipk
the i ran apachctl start

the error is:
syntax error in httpds conf [...]
cannot load /[...]/libphp5.so [...]
undefined symbol: xmlSchemaFreeValidCtxt


cacko 1.21b, sl-c860.

(i tried to replace expat ... it just yielded a different missing function.)

any ideas?

I compiled it with the toolchain for pdaXrom, so I don't know how much compatibility with Cacko ROM is possible.

The version of libxml I use is 2.6.13; you could try using it (I could not attach it here; mail me at the contact-address-field of the package in the unstable feed). To avoid conflicts with your installed libxml, I'd suggest putting it into /opt/apache2/lib/ and doing
CODE
ln -s libxml2.so.2.6.13 libxml2.so.2
ln -s libxml2.so.2 libxml2.so
export LD_LIBRARY_PATH=/opt/apache2/lib/:$LD_LIBRARY_PATH


This should solve the issue with this specific unresolved symbol.

But again, with a ROM other than pdaXrom I cannot really help very much, since I don't have or need a development-environment for Cacko ROM.
offroadgeek
QUOTE(shula @ Nov 8 2004, 05:05 PM)
i got a fatal error on running the php5 w apache2.

(the apache2 run well by itself and the apache1 & php4 runs perfect, but i need the sqlite extension!)

first it wanted libxml2.so.2 so i installed libxml2-2.4.16.ipk
the i ran apachctl start

the error is:
syntax error in httpds conf [...]
cannot load /[...]/libphp5.so [...]
undefined symbol: xmlSchemaFreeValidCtxt


cacko 1.21b, sl-c860.

(i tried to replace expat ... it just yielded a different missing function.)

any ideas?

when I had the cacko rom flashed on my 760, I used this package.. it's apache 1 with php 4... it worked fine for me

http://www.zaurususergroup.com/feed/apache...2.3_0.1_arm.ipk
shula
thanks,
but it doesn't have the SQLITE extension,
not built in, nor precompiled anywhere.

i was looking for PHP+sqlite+apache combination for the Z
(i think of it as a gui toolkit for cross platform development)
pmf
QUOTE(shula @ Dec 3 2004, 04:40 AM)
but it doesn't have the SQLITE extension,
not built in, nor precompiled anywhere.

SQLite is built into libphp5.so.

Why do you think it is not? What packages do you have installed? apache2 and php?
raychow
How can I install lamp under /usr? /opt is read-only on sl-c3000.
pmf
QUOTE(raychow @ Dec 26 2004, 05:24 AM)
How can I install lamp under /usr? /opt is read-only on sl-c3000.

2 alternatives:

1. remount /opt with read-write access

2. unmount /opt, see if it's a link or a directory. If it's a directory, you can install the software there. If it's a link, remove the link and create an /opt directory instead. You can then create softlinks to the things you previously had in /opt (if any).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.