Author Topic: Apache With Php  (Read 5365 times)

james_nak

  • Newbie
  • *
  • Posts: 7
    • View Profile
Apache With Php
« on: July 26, 2006, 11:15:38 pm »
For the life of me I cannot get php running. From the gui installer, I get an ipkg error that something is wrong. From the console it installs but no php. When a php page is loaded Opera wants to download it. I've tried about every .ipk file. I know it works as I have seen it work on my 5600.
Any help or hints on what to look for would be appreciated.

thanks

totaln00b

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Apache With Php
« Reply #1 on: July 27, 2006, 08:26:15 am »
What's the ipkg error that you get?

Is this with the package that includes both apache and php from http://www.choup.net/linux/pda/apache-1.3....2.3_0.1_arm.ipk?

Are you certain that apache is working?

Sometimes you need to alter the httpd.conf file in apache to ensure that php files are dealt with correctly but if you use the combined package then I assume that has been done for you.

Jo
CL 860, cacko  1.23 full, Sandisk 512Mb CF, Kodak 256Mb SD, Symbol Spectrum24 wifi
SL 5500, standard rom, 256Mb SD, CF GPS

james_nak

  • Newbie
  • *
  • Posts: 7
    • View Profile
Apache With Php
« Reply #2 on: July 27, 2006, 11:40:06 am »
Jo, thanks for your reply. Unfortunately the error is not descriptive but on says in effect that "Sorry, Ipkg has an error installing."

And yes, I am sure that I am using the package with php. In fact, I had downloaded that very package from choup.

I know that Apache is running because I can see the start screen with http://127.0.0.1 and also the server error when trying to run Perl, which I haven't loaded. All this of course after issuing an "www/bin/httpd start" command.

I've checked the config file and it looks like it should work only that I'm pretty sure the php exe files are not there.

If anyone knows where they are supposed to be located (I believe in Applications) that might be a start.

Thanks in advance.

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Apache With Php
« Reply #3 on: July 27, 2006, 11:52:26 am »
Hi James,

for your words I understand that apache is working fine, but does not interpret php scripts.

You should verify your httpd.conf file to make sure that you:
1) load the php apache module
2) make all .php files be interpreted

Read php documentation about what changes need to be done to httpd.conf

HTH
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

james_nak

  • Newbie
  • *
  • Posts: 7
    • View Profile
Apache With Php
« Reply #4 on: July 27, 2006, 01:59:04 pm »
OK, I'l give it a go. The strange thing is that I never had to do this kind of tweaking before; it just worked. Anyone else ever had this problem?

Thanks for the help.

Ferret-Simpson

  • Hero Member
  • *****
  • Posts: 572
    • View Profile
Apache With Php
« Reply #5 on: July 27, 2006, 02:05:53 pm »
Only once, I formatted the Zaurus and installed Apache/PHP BEFORE any other package.

No problems yet!
Cortana: PXA250/Poodle: OZ/GPE 3.4.2RC1
Tycho PXA270/HTC_Universal WM5  .30.107/1.09.00/42.42.P8/1.30.162
HollyWatch: Fossil AU5005 - POS 4.1.2
ATLANTIS: Fujitsu Lifebook T4210 TBPC2005

Tosh256CF, Adlink CF 802.11B, 512KingSD, 128VikSD, CFChiMeiG1GPRS

james_nak

  • Newbie
  • *
  • Posts: 7
    • View Profile
Apache With Php
« Reply #6 on: July 27, 2006, 02:09:10 pm »
Me thinks there is something to that.

Thanks.

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Apache With Php
« Reply #7 on: July 27, 2006, 05:18:35 pm »
So I had an apache at hand, so here are the entries that should exist in your httpd.conf to make sure .php files are being sent to the interpreter:

LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php

HTH
sl-c750, archos av580, socket cf [bt, wifi, modem], noname cf lan, audiovox rtm800 gsm-gprs cf, rom: sharp -> oz3.5.3 -> cacko -> oz3.5.4.1

james_nak

  • Newbie
  • *
  • Posts: 7
    • View Profile
Apache With Php
« Reply #8 on: July 27, 2006, 06:44:55 pm »
Thanks! I will check that out immediately.

James

Ferret-Simpson

  • Hero Member
  • *****
  • Posts: 572
    • View Profile
Apache With Php
« Reply #9 on: July 27, 2006, 06:59:43 pm »
Well, if it's not installing right. . .  

Try doing it from konsole or Qterminal.

ipkg install packagename. .  .or something similar. . .
Cortana: PXA250/Poodle: OZ/GPE 3.4.2RC1
Tycho PXA270/HTC_Universal WM5  .30.107/1.09.00/42.42.P8/1.30.162
HollyWatch: Fossil AU5005 - POS 4.1.2
ATLANTIS: Fujitsu Lifebook T4210 TBPC2005

Tosh256CF, Adlink CF 802.11B, 512KingSD, 128VikSD, CFChiMeiG1GPRS