Author Topic: Apache, Php & Mysql On C-1000  (Read 6936 times)

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« 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
« Last Edit: May 14, 2005, 05:23:20 am by omro »
Zaurus C-1000

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #1 on: May 10, 2005, 10:51:28 am »
Check the Cacko 3k feedback thread. There are  working PHP and MySQL packages there.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #2 on: May 10, 2005, 11:14:34 am »
Will those work with the version of Qtopia that comes with the Zaurus?
Zaurus C-1000

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #3 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
« Last Edit: May 10, 2005, 12:21:34 pm by kahm »
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

technojunkie

  • Full Member
  • ***
  • Posts: 172
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #4 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.
SL 5500 Cacko 3.10 ROM 64-0, Symbol Wifi
storage on 256MB Lexar High Speed SD card
64MB/32MB CF cards for removable storage.
---------------------------------------------------------
Doing my part to keep the 5500 platform alive

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #5 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!
Zaurus C-1000

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #6 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? :-(
Zaurus C-1000

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #7 on: May 14, 2005, 12:20:49 pm »
Both packages are linked in that thread.

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

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

apachectl start
mysqlstart
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #8 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.
Zaurus C-1000

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #9 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
Zaurus C-1000

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #10 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?
Zaurus C-1000

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #11 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.
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #12 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?  
Zaurus C-1000

kahm

  • Hero Member
  • *****
  • Posts: 657
    • View Profile
Apache, Php & Mysql On C-1000
« Reply #13 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...)
Fujitsu U8240 "Stormtrooper" -  Zaurus Supplement
Libretto U100 | Sony Librie, Sony Reader
SL-C3100: Sharp 1.11JP (Kanji Dictionary/Translator) - LCD Top swap with C1000.
SL-C3000: pdaXii13 5.4.7, SL-C3000 5.4.9 - microdrive replaced with 8gb Sandisk
SL-C1000: PDAXRom Beta3 | SL-6000L: Sharp 1.12 | SL-5500: Cacko, 64-0 kernel | SL-5000D: OZ-Opie
Linksys WCF12; Sharp CE-AG06, CE-RH2, CE-170TS; iRiver USB OTG Host cable; Socket BT rev.E CF; Hitachi 6gb Microdrive

omro

  • Hero Member
  • *****
  • Posts: 796
    • View Profile
    • http://
Apache, Php & Mysql On C-1000
« Reply #14 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
Zaurus C-1000