Author Topic: Apache Problem  (Read 1873 times)

Mookid77

  • Newbie
  • *
  • Posts: 8
    • View Profile
Apache Problem
« on: September 17, 2004, 02:01:37 pm »
:Background:.
I have managed to install Apache on my C-860 running OZ 3.3.5. Yeah!

I setup my http.conf.

I changed the apachectl file with these settings

PIDFILE=/home/www/logs/httpd.pid
HTTPD='/home/www/bin/httpd'


.:Problem:.
When I try to start apachectl I get the following message

./apachectl start : httpd could not be started.

I did a search to see if I had the correct path for the files httpd.pid and httpd. I when I did a find for httpd.pid file it couldnt find it! Does it sound like it'not being created?


Mookid

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Apache Problem
« Reply #1 on: September 18, 2004, 05:37:58 am »
Probably best to look in the apachectl script and either: see if you can find where the message is generated, see if the problem is obvious; or step through the script step by step (copy & paste into another terminal for example) and see where it fails and more importantly what the actual error message is.

Actually it may just be easier to edit the script directly (make a copy first though ;-) to remove the &>null or whatever it uses to get rid of the output from the commands.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

zmiq2

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • http://
Apache Problem
« Reply #2 on: September 20, 2004, 05:50:12 am »
Hi Mookid,

1) the .pid file gets created when httpd starts, as a lock file, so the program is not started twice. So, no problem i f find could not find it; just make sure the path is correct and writeable

2) I think that the problem is that the httpd file is not executable; please verify execution flags for httpd:
# ls -l /.../httpd
=> verify it contains an 'x' for the user starting the script, which normally is root

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