![]() ![]() |
Sep 30 2004, 03:37 AM
Post
#1
|
|
|
Group: Members Posts: 64 Joined: 18-March 04 Member No.: 2,392 |
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 . If you want anything more than serving static pages, you need to do this.Group wwwrun 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. |
|
|
|
Oct 4 2004, 02:34 PM
Post
#2
|
|
|
Group: Members Posts: 18 Joined: 7-June 04 Member No.: 3,600 |
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. |
|
|
|
Oct 5 2004, 02:34 AM
Post
#3
|
|
|
Group: Members Posts: 76 Joined: 4-May 04 From: Athens, Greece Member No.: 3,136 |
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. |
|
|
|
Oct 5 2004, 06:06 AM
Post
#4
|
|
|
Group: Members Posts: 9 Joined: 9-January 04 Member No.: 1,404 |
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.
|
|
|
|
Oct 12 2004, 07:59 AM
Post
#5
|
|
![]() Group: Members Posts: 1,248 Joined: 6-July 04 Member No.: 3,928 |
Are these applications suitable for RC5 yet ?
|
|
|
|
Nov 2 2004, 12:34 PM
Post
#6
|
|
|
Group: Admin Posts: 1,418 Joined: 18-May 03 From: St. Paul, MN Member No.: 4 |
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) |
|
|
|
Nov 4 2004, 09:32 PM
Post
#7
|
|
|
Group: Admin Posts: 1,418 Joined: 18-May 03 From: St. Paul, MN Member No.: 4 |
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... |
|
|
|
Nov 6 2004, 10:54 AM
Post
#8
|
|
|
Group: Members Posts: 64 Joined: 18-March 04 Member No.: 2,392 |
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. |
|
|
|
Nov 8 2004, 04:05 PM
Post
#9
|
|
|
Group: Members Posts: 95 Joined: 20-October 04 Member No.: 5,111 |
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? |
|
|
|
Nov 9 2004, 09:57 AM
Post
#10
|
|
|
Group: Members Posts: 64 Joined: 18-March 04 Member No.: 2,392 |
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. |
|
|
|
Nov 9 2004, 10:46 AM
Post
#11
|
|
|
Group: Admin Posts: 1,418 Joined: 18-May 03 From: St. Paul, MN Member No.: 4 |
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 |
|
|
|
Dec 3 2004, 04:40 AM
Post
#12
|
|
|
Group: Members Posts: 95 Joined: 20-October 04 Member No.: 5,111 |
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) |
|
|
|
Dec 3 2004, 05:23 AM
Post
#13
|
|
|
Group: Members Posts: 64 Joined: 18-March 04 Member No.: 2,392 |
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? |
|
|
|
Dec 26 2004, 05:24 AM
Post
#14
|
|
|
Group: Members Posts: 9 Joined: 9-January 04 Member No.: 1,404 |
How can I install lamp under /usr? /opt is read-only on sl-c3000.
|
|
|
|
Dec 26 2004, 06:19 AM
Post
#15
|
|
|
Group: Members Posts: 64 Joined: 18-March 04 Member No.: 2,392 |
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). |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 05:04 PM |