Server Questions - Anybody Feeling Brave?
15-03-2005, 12:39
|
#46
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Server Questions - Anybody Feeling Brave?
Quote:
|
Originally Posted by leggom
For Remote Desktop use UltraVNC and you can set it up so you can connect from your internet browser, all you do is put in your ip:5800 and aslong as your router is setup ok it will work and from that you can launch the viewer on yoru server if you want to conenct into a machine within the network.
|
Cheers for that leggom, sounds interesting - I'll certainly give it a go once everything's running smoothly.
__________________
Quote:
|
Originally Posted by scastle
I used to use a program called Servers Alive for this. The nice thing about SA is its freeware (if you don't use it in a commercial environment), but it can query various kinds of servers in different ways. So, for instance, to test a web server, it can periodically call up a web page. For a Database (Oracle anyway, not sure off hand if it supports MySql, but I think it does), it can run a query against it.
It can also output to a server status page (using it's own predefined templates, or your own), as well as email you or text you if something dies.
The program (and tutorials) is at http://www.brentozar.com/salive/default.php
The program itself is at http://www.woodstone.nu/salive/download.asp
Not as much fun as writing something yourself, but a lot quicker..
|
Now that sounds interesting as well - too many choices
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?
|
|
|
15-03-2005, 13:12
|
#47
|
|
Inactive
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 61
Posts: 3,458
|
Re: Server Questions - Anybody Feeling Brave?
Has PHP inadvertantly turned on IIS?
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
|
|
|
15-03-2005, 13:31
|
#48
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Server Questions - Anybody Feeling Brave?
Quote:
|
Originally Posted by Aragorn
Has PHP inadvertantly turned on IIS?
In netstat -a you would see '<server>:http' with a status of listening.
|
Doesn't look like it:
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:
|
Originally Posted by Aragorn
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
|
Nope, neither of those services are showing.
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!!
|
|
|
15-03-2005, 13:31
|
#49
|
|
Inactive
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 61
Posts: 3,458
|
Re: Server Questions - Anybody Feeling Brave?
Quote:
|
Hmm, not sure I did the telnet correctly
|
Try Telnet caramon 80
|
|
|
15-03-2005, 13:34
|
#50
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Server Questions - Anybody Feeling Brave?
Nope, "Could not open connection to the host, on port 80: Connect failed"
|
|
|
15-03-2005, 13:36
|
#51
|
|
Inactive
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 61
Posts: 3,458
|
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.
|
|
|
15-03-2005, 13:46
|
#52
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
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.
|
|
|
15-03-2005, 13:49
|
#53
|
|
Inactive
Join Date: Apr 2004
Location: Minas Tirith, Gondor
Age: 61
Posts: 3,458
|
Re: Server Questions - Anybody Feeling Brave?
Did some quick googling - one hit suggested :
Quote:
Anyway, to fix this issue, I would like to request you to add the following 2 lines in your web server httpd.conf configuration file.
open httpd.conf , go to the last lines and add
1. any alias directive to have some virtual directories .
for eg:
Alias /caspsamp "c:\Program Files\Sun ONE ASP\caspsamp
|
Another suggested you may get more troubleshooting info in the Apache error log rather than Windows Event logs.
HTH
|
|
|
15-03-2005, 13:50
|
#54
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
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.....
|
|
|
15-03-2005, 14:01
|
#55
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: Server Questions - Anybody Feeling Brave?
All you need to add to your default httpd.conf are these lines:
Quote:
LoadModule php4_module "c:/WINDOWS/php4apache2.dll"
AddType application/x-httpd-php .php
|
|
|
|
15-03-2005, 14:10
|
#56
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Server Questions - Anybody Feeling Brave?
Quote:
|
Originally Posted by Richard M
All you need to add to your default httpd.conf are these lines:
|
Thanks Richard, your orginal text guide said:
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?
|
|
|
15-03-2005, 14:22
|
#57
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
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/?
|
|
|
15-03-2005, 14:24
|
#58
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
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?
|
|
|
15-03-2005, 14:55
|
#59
|
|
Inactive
Join Date: Feb 2004
Location: There's no place like 127.0.0.1
Services: Depends on the person and the price they're offering
Posts: 12,384
|
Re: Server Questions - Anybody Feeling Brave?
Solved it
It's this bit:
Quote:
|
Originally Posted by text guide
Save and close php.ini, navigate into "c:\php\extensions\", then copy "php_gd2.dll" to "c:\windows\system32\".
Also find the files "php4ts.dll" in the "c:\php\" directory, "php4apache.dll" in the "c:\php\sapi\" directory and copy them both to "c:\windows\system32\".
Almost there with PHP, all we have to do now is tell Apache to load PHP when it starts the webserver.
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
|
The LoadModule statement is asking for php4apache2.dll but the bit above it about copying the .dll files to the Windows\System32 directory says to copy php4apache.dll.
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.
|
|
|
15-03-2005, 15:47
|
#60
|
|
Inactive
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 47
Posts: 6,343
|
Re: Server Questions - Anybody Feeling Brave?
I told you the article needed updating. 
I'll do it when I have some free time.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 08:16.
|