PDA

View Full Version : Web sharing won't start up.


skalie
01-01-2003, 10:51 AM
I altered the /etc/httpd/httpd.conf file to allow the .htaccess to work using the terminal.

It didn't seem to affect the directories with the .htaccess files so I tried turning off the sharing from the system preferences, thinking reboot.

The webserver doesn't want to restart, it just says "Web sharing starting up..."

Trying...... sudo apachet1 start ...... in the terminal returns "command not found".

Anyone have any ideas as to what I have manged to mess up?

I'm only using localhost btw, playing around with php and all that.

Thanks in advance.

nosaj56
01-01-2003, 10:54 AM
The command should be "sudo apachectl start." :cool:

skalie
01-01-2003, 11:09 AM
aha, thanks, although I got this.......

dyld: /usr/sbin/httpd can't open library: /usr/lib/libiodbc.2.1.6.dylib (No such file or directory, errno = 2)
/usr/sbin/apachectl start: httpd could not be started

Dogcow
01-05-2003, 02:09 AM
The makers of Apache (knowing that you would screw this up...) had the foresight to have Apache install backup httpd files just for this scenario. ;)

If you haven't done too much work on your altered httpd.conf file, I recommend trashing it and reverting to a backup.

From the terminal:

sudo rm /etc/httpd.conf

sudo cp /etc/httpd.conf.bak /etc/httpd/httpd.conf

-Dogcow "moof!"
"Reduce overpopulation, please spay and neuter your children."

skalie
01-10-2003, 11:23 AM
I wish you'd posted that a little earlier.

In the mean time I've deleted the /etc/http file with the intention of downloading Apache again, unfortunately I've come across all sorts of compatability problems with Apache and Mac OSX 10.1

Next plan is to re-install 10.1, I'm just waiting till I'm able to backup everything.

Most of the advice I had from other forums was along the lines of "why haven't you upgraded to Jaguar?"

sjoshi
01-10-2003, 01:21 PM
Do the following step, and it will tell you of any errors in the httpd.conf file:

sudo apachectl configtest

Here is an older thread (http://forums.macosxhints.com/showthread.php?s=&threadid=7596) that discusses similar problems.

christo
01-24-2003, 01:31 AM
I am also in a simular hell... I am trying to run PHP and mySQL for the first time... yes I am a newbie... and I was getting this error:

RTSP/1.0 400 Bad Request
Server: QTSS/4.1.1 (Build/412.38; Platform/MacOSX)
Cseq:
Connection: Close

so then I thought maybe I have to have personal file sharing on- only to find out it wont turn on at all!!!

when I ran some of the test mentioned here I came up with these errors:
_______________________________
sudo apachectl configtest =
_______________________________
Syntax error on line 239 of /etc/httpd/httpd.conf:
API module structure `php4_module' in file /usr/libexec/httpd/libphp4.so is garbled - perhaps this is not an Apache module DSO?
_______________________________

- in which line 239 of httpd.conf (I have not altered this file at all yet) reads:

LoadModule php4_module libexec/httpd/libphp4.so
_________________________________

I havent altered the httpd because that file does exist... yea I know I should have stayed away from all this- ...
anyway can someone help me realize what is happening? The problem I think is that I installed Apache from:
http://www.phpmac.com/articles/view.php?id=111&PHPSESSID=82d6e0c99d58486b3c243a7e640c3213&PHPSESSID=82d6e0c99d58486b3c243a7e640c3213

and I am assuming now I might have two versions if Jaguar comes with one pre-installed...
so my main question is: Can I fix this, and how?
or
How can I delete Apache, PHP, MySql and start from scratch?

thanks!!!!

skalie
01-24-2003, 02:08 PM
I feel your pain Christo, my experience has been that setting up a webserver with OSX is dead easy, fixing it after rodgering it with a few typo's or whatever is less than pleasurable experience.

The only solution I found after days of searching, subscribing to forums etc, was a re-install, leading to back up issues etc., Even the re-install took a bit of coaxing to find out the best way to do it.

Good news is that you're running Jaguar, a large percentage of the reply to my pleas of help (other forums) questioned my ongoing usage of 10.1

Good luck.

christo
01-24-2003, 02:17 PM
I am wondering now if its possible to simply replace the HTTPD file or files from a clean version of Jaguar. Will that bring Apache back to the original config?

(Ironically I am trying to set this up to tweak the same forum software that is being used for this particular site- in which I want to do it locally before uploading to a dedicated server.)

skalie
01-24-2003, 03:15 PM
Did you try out the method (in this thread) suggested by Dogcow?

christo
01-24-2003, 03:50 PM
yes- when typing:

sudo rm /etc/httpd.conf
I get a no such file or directory error

christo
01-24-2003, 04:12 PM
I dont know if I am getting closer or farther away-
I commented out the first error:

Syntax error on line 239 of /etc/httpd/httpd.conf:
API module structure `php4_module' in file /usr/libexec/httpd/libphp4.so is garbled - perhaps this is not an Apache module DSO?

and then ran apachectl configtest and received this:
__________________________________
Syntax error on line 240 of /etc/httpd/httpd.conf:
API module structure `hfs_apple_module' in file /usr/libexec/httpd/mod_hfs_apple.so is garbled - perhaps this is not an Apache module DSO?
__________________________________
so I commented that line out and recieved this:
___________________________________
Syntax error on line 281 of /etc/httpd/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules
__________________________________
again with the comment and then:
__________________________________
apachectl configtest
Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/billy.conf
Processing config file: /private/etc/httpd/users/brandarella.conf
Processing config file: /private/etc/httpd/users/cpawl.conf
Processing config file: /private/etc/httpd/users/guest.conf
Syntax error on line 1060 of /etc/httpd/httpd.conf:
API module structure `php4_module' in file /usr/libexec/httpd/libphp4.so is garbled - perhaps this is not an Apache module DSO?
_________________________________

which is a virtual hosting line... now what... man this whole thing is WAY over my head.

I'm not even looking to fix it anymore- now I want to DELETE IT ALL so the advice I seek is if that is possible and how. Next time I will hire someone!!!!!!