![]() |
Re: Server Questions - Anybody Feeling Brave?
Quote:
__________________ Quote:
Cheers scastle. __________________ Ok, new problem :( Apache was running fine..... Installed PHP and now the damn thing doesn't want to know. The Apache service won't start (I get an error 1 in the System event logs) and I can't get the php page to show through my browser (get a 404). "net start apache2" doesn't work, but then I suppose it won't will it? I had a look on Google and apparently "error 1" is caused by there already being a service listening on the same port as Apache. Did netstat -a and nothing else is showing on port 80 (or 8080), I think those are the right ports? Any ideas anybody? |
Re: Server Questions - Anybody Feeling Brave?
Quote:
In netstat -a you would see '<server>:http' with a status of listening. The Services mmc, or Net Start, would show whether IIS is running. Otherwise, try telneting to port 80 from DOS and see if anything responds and what headers it returns. HTH |
Re: Server Questions - Anybody Feeling Brave?
Quote:
Active Connections Proto Local Address Foreign Address State TCP caramon:epmap caramon:0 LISTENING TCP caramon:microsoft-ds caramon:0 LISTENING TCP caramon:1025 caramon:0 LISTENING TCP caramon:1026 caramon:0 LISTENING TCP caramon:1054 caramon:0 LISTENING TCP caramon:netbios-ssn caramon:0 LISTENING UDP caramon:microsoft-ds *:* UDP caramon:isakmp *:* UDP caramon:1044 *:* UDP caramon:4500 *:* UDP caramon:ntp *:* UDP caramon:ntp *:* UDP caramon:netbios-ns *:* UDP caramon:netbios-dgm *:* Quote:
Hmm, not sure I did the telnet correctly, got: Connecting To 192.168.1.100:80...Could not open connection to the host, on port 23: Connect failed __________________ Oh, and I just realised the irony of using the word Brave in the thread title when we're talking about Apache so much!! |
Re: Server Questions - Anybody Feeling Brave?
Quote:
|
Re: Server Questions - Anybody Feeling Brave?
Nope, "Could not open connection to the host, on port 80: Connect failed"
|
Re: Server Questions - Anybody Feeling Brave?
Can you cut/paste the Apache error from the sys log?
__________________ Looks like IIS isn't running then and nothing owns port 80. |
Re: Server Questions - Anybody Feeling Brave?
Event Type: Error
Event Source: Service Control Manager Event Category: None Event ID: 7024 Date: 15/03/2005 Time: 13:36:27 User: N/A Computer: CARAMON Description: The Apache2 service terminated with service-specific error 1 (0x1). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Sorry, just realised I'm in "invisible" mode - how rude. Apologies guys :( __________________ I'm going to reverse the steps I took to install PHP and the uninstall the program. Then I'll re-install and see how I get on. Thanks to all for your help so far. |
Re: Server Questions - Anybody Feeling Brave?
Did some quick googling - one hit suggested :
Quote:
HTH |
Re: Server Questions - Anybody Feeling Brave?
Ok, with all the changes to the conf files undone and the .dll files removed I can get the service to start again.
It must therefore be a problem with the way that PHP was set up. I'll go back through the steps and see what happens. Maybe I naused something up last time..... |
Re: Server Questions - Anybody Feeling Brave?
All you need to add to your default httpd.conf are these lines:
Quote:
|
Re: Server Questions - Anybody Feeling Brave?
Quote:
Open up "c:\Apache2\conf\httpd.conf" in Notepad then add the following line at the bottom of the file: LoadModule php4_module c:/windows/system32/php4apache2.dll AddType application/x-httpd-php .php Find this line: DirectoryIndex index.html index.html.var Change it to: DirectoryIndex index.html index.php Save and close the file. Do I still need to do the DirectoryIndex bit? TBH, I followed the text guide to the letter and everything stopped working:( __________________ Is there anything I need to do before I start going through the changes in the text guide. I didn't actually go through the install.txt file that comes with PHP, maybe I missed something? |
Re: Server Questions - Anybody Feeling Brave?
Aah yeah you will need the DirectoryIndex set to that, that doesn't affect the PHP installation though.
Have you tried with a standard PHP.ini copied to c:/windows/? |
Re: Server Questions - Anybody Feeling Brave?
Followed the steps:
Copy "php.ini-recommended" to "c:\windows", rename it to "php.ini" then open it up in Notepad. Scroll roughly halfway down until you see: (etc) Would it still work if I didn't modify the php.ini file at all? |
Re: Server Questions - Anybody Feeling Brave?
Solved it :D
It's this bit: Quote:
Copied the .dll file asked for in the LoadModule statement and now it appears to work ok (the phpinfo.php page is visible in the browser anyway ;) ). Right, got to go and get on with the housework that I've been neglecting all day. Thanks very much for the help guys. I'll be back later to learn about how to set up that Server Status thingy if you don't mind ;) Thanks again. |
Re: Server Questions - Anybody Feeling Brave?
I told you the article needed updating. :D
I'll do it when I have some free time. |
| All times are GMT. The time now is 03:15. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum