OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: climber on January 14, 2008, 06:11:44 am

Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: climber on January 14, 2008, 06:11:44 am
Hi,

I just installed on my SL-C3100 & pdaXii13v2:

-  pache2
-  php5
-  mysql

from meanies link:

Link (https://www.oesf.org/forum/index.php?showtopic=18415&hl=sdictviewer&st=315)


Starting apache with /usr/local/apache2/bin/.apachectl start

... I get the following error:


httpd:  Syntax error in line 53 of /usr/local/apache2/conf/httpd.conf:  Cannot load /usr/local/apache2/modules/libphp5.so
into server:  /usr/local/apache2/modules/libphp5.so: undefined symbol:  zend_qsort


Has anyone a idea?

Thanks
climber
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: climber on January 31, 2008, 09:46:36 am
Does nobody get apache2 and php5 installed and working on pdaXii13 v2 ???

I can't believe this! Maybe a zaurus geek can try this and helping me to get this working.

Thanks
climber
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Antikx on January 31, 2008, 02:03:15 pm
From googling it looks like it might need to be recompiled, look at this thread:
http://lists.horde.org/archives/dev/Week-o...626/020085.html (http://lists.horde.org/archives/dev/Week-of-Mon-20060626/020085.html)
I too would like an uptodate working LAMP for pdaXrom

here is probably the easiest way to compile it: http://www.apachetoolbox.com/ (http://www.apachetoolbox.com/)
Anyone one want to give it a try?
I'll see if I can find time to try compiling it on the weekend if no one else beats me to it.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: climber on February 01, 2008, 03:37:35 am
@Antikx

to go for sure I understand the information from your link correct.

1.) download php5 sources

2.) ./configure --with-apxs2=/usr/bin/apxs2 \
--with-gettext --with-dom --with-mcrypt \
--with-iconv --enable-mbstring=all --enable-mbregex \
--with-gd --with-png-dir=/usr --with-jpeg-dir=/usr \
--with-mime-magic=/usr/share/file/magic.mime \
--with-mysql --with-pdo-mysql \
--with-zlib-dir=/usr --with-readline

3.)  libtool --finish /usr/lib/apache2/modules/libphp5.so

4.) make && make install


If this is the wrong order please could you set them to the right one!


Thanks
climber
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Antikx on February 01, 2008, 10:07:38 am
 sounds like you know more then I do. Capn_Fish how does climber's post look?

Regarding php sources, you can download a 70+MB apachetools file that should contain all the sources and has a nice menu driven compile options.
I would recommend giving it a try.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Antikx on February 04, 2008, 01:28:02 pm
how did you make out climber?
I haven't tried it yet, sorry.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Capn_Fish on February 04, 2008, 04:15:28 pm
First check if the libphp5.so is in /usr and not /usr/local.

For that build process, no idea. I'm not familiar with LAMP stuff.

If you'd like updates to all of the LAMP stuff, I'd probably be willing to do it so long as there aren't a ton of deps that I'd have to build. Would somebody be willing to furnish links to the components' websites?
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Antikx on February 08, 2008, 11:42:39 am
thanks cpan_fish
I still want to give this a try.
Just low on free time these days.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: Capn_Fish on February 08, 2008, 12:26:29 pm
Me too, hence looking for links and not doing it myself (I don't want to have to verify I have the right lib/app, etc.)
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: robertcloud on February 13, 2008, 10:00:52 pm
I would also be very happy to see a working LAMP for pdaxrom.  I was hung up on my latest attempt to get things working.  I was able to get Apache2 running and serving a web page, but I couldn't get mysql running.  I believe I installed apache from http://www.tyrannozaurus.com/feed/beta3/feed/ (http://www.tyrannozaurus.com/feed/beta3/feed/) and mysql from http://www.tyrannozaurus.com/feed/beta3/custom (http://www.tyrannozaurus.com/feed/beta3/custom)

I was using the stock pdaxrom, not meanie's.  what hung me up on the mysql was that I could never find mysql.sock anywhere on the system.  Also everything installed was in unstandard locations.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: adf on February 13, 2008, 10:07:18 pm
Quote from: robertcloud
I would also be very happy to see a working LAMP for pdaxrom.  I was hung up on my latest attempt to get things working.  I was able to get Apache2 running and serving a web page, but I couldn't get mysql running.  I believe I installed apache from http://www.tyrannozaurus.com/feed/beta3/feed/ (http://www.tyrannozaurus.com/feed/beta3/feed/) and mysql from http://www.tyrannozaurus.com/feed/beta3/custom (http://www.tyrannozaurus.com/feed/beta3/custom)

I was using the stock pdaxrom, not meanie's.  what hung me up on the mysql was that I could never find mysql.sock anywhere on the system.  Also everything installed was in unstandard locations.
Not what you are looking for maybe, but I have managed to install pocketworkstation on pdaxii13v2 and upgrade it to Etch. Possibly (if you have the space and the inclination) this might provide a more promising means of getting a LAMP stack?
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: climber on February 14, 2008, 01:59:01 am
@adf

That sounds also intersting too and I could give it a try. I can't find any instructions to get it working on pdaXii13v2. Could
you write some lines how you get it working on pdaXii13v2?

Thanks
climber
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: adf on February 15, 2008, 02:17:09 am
Quote from: climber
@adf

That sounds also intersting too and I could give it a try. I can't find any instructions to get it working on pdaXii13v2. Could
you write some lines how you get it working on pdaXii13v2?

Thanks
climber
I  just followed the instuctions at the pdaxrom pocketworkstation thread here (and at the pocket workstation site)  -search pocketworkstation on the pdaxrom section

I installed (as i use pdaxii13 full) in /usr/debroot-/user being on the MD

i did apt-get update/upgrade then changed the reopsitories to etch then did it again--then did upgrade

then it was a piece of cake...synaptic eve runs ok

sorry if this is vague- i set it up a while ago.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: robertcloud on February 18, 2008, 11:47:32 pm
OK, I got the LAMP server up and running natively in pdaxrom and it is decently fast.  

I found everything needed at this feed
ftp://distro.ibiblio.org/pub/linux/distri...trib/desertrat/ (http://ftp://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/contrib/desertrat/)

so ipkg install mysql-server mysql-client apache

I ran into trouble with the PHP.  I first used the php5 module in the feed and was able to get it to work with apache after downloading a few more libraries.
Then I realized that php5 is not natively compatible with mysql.  if you want to use php5 with mysql you have to compile it using a specific command to add support.  
I had some trouble installing php4 from the tyrannozaurus feeds so decided to compile it myself.  

EDIT:  disregard what I said about this php5 module not having native mysql support.  It DOES have it as well as a few more useful modules.


I'm configuring a wordpress site on the zaurus right now and will be interested to see how that turns out.
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: climber on February 22, 2008, 03:28:36 am
@robertcloud

did you use the same configure parameter as I wrote in this thread?
Could your write some instructions what you did to get it running. This would be nice!!!


Thanks
climber
Title: Problems Starting Apache2 On Pdaxii13 V2
Post by: robertcloud on February 27, 2008, 08:52:01 pm
Quote from: climber
@robertcloud

did you use the same configure parameter as I wrote in this thread?
Could your write some instructions what you did to get it running. This would be nice!!!


Thanks
climber


sorry, no configuration necessary it seems.  if you don't necessarily need apache2, just install apache 1.3 and modphp5 from the feed I posted.  This puts libphp5.so in libexec subdirectory in apache, and the httpd.conf is already configured to work with it.  I believe there are some libraries that need to be installed if they aren't already but the error messages when trying to start apache should let you know what they are.  

Also, if you want this to work with apache2, I found that I needed to install it manually from an ipk because the one from the tyrannozaurus pdaxrom feed had some weird depends assigned to it which messed things up a bit for me.  

let me know what in particular you are having issues with so that i may see if I can help.