OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: omro on May 10, 2005, 10:33:57 am

Title: Apache, Php & Mysql On C-1000
Post by: omro on May 10, 2005, 10:33:57 am
Hi All,

I'd like to put Apache, PHP & MySQL on my soon to be arriving new C-1000.

Are there ipk's that will work for this model?

Thanks,

Owen
Title: Apache, Php & Mysql On C-1000
Post by: kahm on May 10, 2005, 10:51:28 am
Check the Cacko 3k feedback thread. There are  working PHP and MySQL packages there.
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 10, 2005, 11:14:34 am
Will those work with the version of Qtopia that comes with the Zaurus?
Title: Apache, Php & Mysql On C-1000
Post by: kahm on May 10, 2005, 12:16:20 pm
I've specifically tested those ipks on an 860 and a 3000. They should run just fine on a 1000. Grab them at http://www3.telus.net/~ranko (http://www3.telus.net/~ranko)
Title: Apache, Php & Mysql On C-1000
Post by: technojunkie on May 10, 2005, 11:39:30 pm
seeing as how all of those are background apps, you shouldn't have any issues with QTopia.

the MySQL packages have had a couple of permissions hiccups with stock Zs (the Z runs as zaurus as opposed to root) but it isn't too difficult to figure out.
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 11, 2005, 03:58:32 am
I hope not, I was always happy to tinker with my old Z, but always found things that didn't occur to my brain that easily to be a little ... frustrating. However, this forum was always a useful place to ask!
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 14, 2005, 05:26:04 am
I installed Apache and PHP from the link above. No sign of MySQL though, any good links for that?

I am having a problem when I try and start apache.

Code: [Select]
# ./httpd start

fopen: Permission denied
httpd: could not open error log file /home/www/logs/error_log.

I've missed something simple haven't I? :-(
Title: Apache, Php & Mysql On C-1000
Post by: kahm on May 14, 2005, 12:20:49 pm
Both packages are linked in that thread.

Grab them from: http://www3.telus.net/~ranko (http://www3.telus.net/~ranko)

Once installed, go to the command prompt and change to the root user (su).

apachectl start
mysqlstart
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 14, 2005, 12:55:24 pm
apache-1.3.27-php-4...> 06-May-2005 05:18   1.9M  
 dig_9.2.1_arm.ipk       26-Apr-2005 20:28   390k  
 mtr_0.51_arm.ipk        26-Apr-2005 20:28    17k  
 ncftp_3.1.5-c3k-1_ar..> 26-Apr-2005 23:42   403k  
 opera_7.55.6079-c3k-..> 27-Apr-2005 01:28   2.4M  
 pdaarmy.JPG             27-Apr-2005 03:01   854k  
 scrn001.jpg             27-Apr-2005 03:43    52k  
 scrn002.jpg             27-Apr-2005 03:43    52k  
 scrn003.jpg             27-Apr-2005 03:43    49k  
 themobilecorps.JPG      27-Apr-2005 03:02   521k  
 traceroute_1.4a12-1_..> 26-Apr-2005 20:28    10k  
 z-work-area.JPG         27-Apr-2005 00:18   870k

Am I being blind? But I can't see MySql in the above    that's a cut and paste from the link you gave.
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 14, 2005, 01:01:02 pm
The apache start command worked though :-)

It's a different command to the ones in the howtos
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 14, 2005, 01:21:47 pm
Ok, another little bit of weirdness, I just tried to save a file into the htdocs directory and got the following error:

Code: [Select]
outfile.open(IO_WriteOnly) : Please investigage the file...
Any ideas?
Title: Apache, Php & Mysql On C-1000
Post by: kahm on May 14, 2005, 04:23:32 pm
Quote
apache-1.3.27-php-4...> 06-May-2005 05:18   1.9M 
 dig_9.2.1_arm.ipk       26-Apr-2005 20:28   390k 
 mtr_0.51_arm.ipk        26-Apr-2005 20:28    17k 
 ncftp_3.1.5-c3k-1_ar..> 26-Apr-2005 23:42   403k 
 opera_7.55.6079-c3k-..> 27-Apr-2005 01:28   2.4M 
 pdaarmy.JPG             27-Apr-2005 03:01   854k 
 scrn001.jpg             27-Apr-2005 03:43    52k 
 scrn002.jpg             27-Apr-2005 03:43    52k 
 scrn003.jpg             27-Apr-2005 03:43    49k 
 themobilecorps.JPG      27-Apr-2005 03:02   521k 
 traceroute_1.4a12-1_..> 26-Apr-2005 20:28    10k 
 z-work-area.JPG         27-Apr-2005 00:18   870k

Am I being blind? But I can't see MySql in the above    that's a cut and paste from the link you gave.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=79767\"][{POST_SNAPBACK}][/a][/div]

ACK! *pounds head on desk*

Sorry! I never polished and uploaded the MySQL  The IPK had a couple of bugs that I haven't worked out - the IPK install says it needs dependancies, but it doesn't. The install still works fine. Secondly, the first time you start MySQL it fails. If you Start, then stop, then start it again, it seems to work fine forever after that.

I'd forgotten all about that. I'll have to add it back to my list of things to do, right along with a properly polished Opera IPK.
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 14, 2005, 04:41:57 pm
 

Thanks!! :-)

That's funny, as long as I wasn't being a bit blind, I'm not very observant!

Do you have any idea why it won't let me save anything into the htdocs directory? Do I need to change the permissions on that directory, if so, how?  
Title: Apache, Php & Mysql On C-1000
Post by: kahm on May 15, 2005, 01:37:13 am
How are you trying to save into the directory? (What program, etc?) Can you give man an ls -la from the /home/www directory so I can see what permissions you have set? (The IPK works perfectly on my 3000, but I don't currently have a 1k to test on...)
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 15, 2005, 09:18:20 am
I created a file using the Zeditor program recommended in another thread. I attempted to save a file called index.php into the htdocs directory and ended up with the error that I mention earlier.

The permissions for the htdocs directory are:

Code: [Select]
drwxr-xr-x 3 webautho webautho 0 May 14 10:06 htdocs
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 18, 2005, 03:50:10 am
I have discovered that I can't even copy files into the htdocs directory using the file manager, so something strange is going on.

I can only copy files in there if I'm in the console logged in as SU and even then they won't work properly I get TCP write errors when I try to view them with Netfront.

Any ideas why this might be?

Thanks
Title: Apache, Php & Mysql On C-1000
Post by: bluedevils on May 18, 2005, 09:56:26 am
The permissions you posted shows the user able to write to htdocs is webautho or root.  Are you running filemanger as root (tap and hold filemanager icon to change)?  Once you copied the files over as root, then those files would be owned by root.  Did you chown them to webautho or zaurus?
Title: Apache, Php & Mysql On C-1000
Post by: omro on May 18, 2005, 11:46:47 am
I tried to copy them with file manager and failed

I went into console and typed SU and then copied them

Then they didn't work when I tried to view them

That's as much as I know.
Title: Apache, Php & Mysql On C-1000
Post by: omro on June 13, 2005, 09:41:51 am
Hi, just seeing if there's been any news about the PHP/Apache/MySQL for the Zaurus

Owen
Title: Apache, Php & Mysql On C-1000
Post by: undrwater on June 25, 2005, 03:55:25 am
Quote
Hi, just seeing if there's been any news about the PHP/Apache/MySQL for the Zaurus

Owen
[div align=\"right\"][a href=\"index.php?act=findpost&pid=84071\"][{POST_SNAPBACK}][/a][/div]

I don't know if you noticed, but bluedevil gave you  good hint above.

The command he mentioned, chown, changes the ownership of files.  When you moved a file from one place to another as su, those files can be owned by root.  Check the ownership of the files you moved as root...if they're owned by root, apache might have trouble.  Use chown to change those files to look like the others.

Finally, you should be able to run the file manager as root by tap-holding the icon, then selecting the run as root option.

Good Luck.
Title: Apache, Php & Mysql On C-1000
Post by: omro on June 25, 2005, 10:30:00 am
Thanks for that, much appreciated, but I wasn't asking about how to correct that, I was asking if there had been any general progress i.e. newer versions that perhaps didn't need so much faffing to run. And last time I looked MySQL wasn't available yet for the C1000