[plug] simple Apache Q

Ben Jensz jensz at wn.com.au
Fri Jan 4 22:40:40 WST 2002


If you're on the machine which is running Apache, just put "127.0.0.1"
as the ServerName.  Thats doesn't bind it to an interface though, it
makes redirects etc work properly.  If that machine is also connected to
the net directly, I'd bind it to the localhost interface, so it only
listens on 127.0.0.1 so you don't get some "1337 h at x0r" script kiddie
trying to pull something.

Personally I compile both Apache and PHP from source, because there are
a lot of useful bits and pieces in both Apache and PHP that most
packages don't compile in (just make sure you enable mod_so (DSO
support) if you compile Apache from source so PHP works with it).


/ Ben

-----Original Message-----
From: Sol [mailto:solhanna at dingoblue.net.au] 
Sent: Friday, 4 January 2002 10:27 PM
To: plug at plug.linux.org.au
Subject: [plug] simple Apache Q


Hi guys,

I've just been getting stuck into learning some PHP and would like to do

more experimenting on my box. So I read some docs and apt-got 
apache-perl plus the php4 modules so I could parse .php pages locally. 
However, when I tried to connect to http://localhost/ I was refused. 
Investigation led me to (the bleeding obvious) conclusion that the httpd

wasn't running. "apachectl fullstatus" told me that this was because the

"ServerName" in httpd.conf had not been set. I was tempted to change 
this to "localhost" or my localhostname but the docs told me not touch 
this unless I knew what I was doing, which clearly I don't. ;-) I know
that this is supposed to be a proper, registered name and IP 
address for machines serving the internet, but is there a simple way I 
can get this serving locally so that I can save pages to /var/www and 
parse them to the browser client?

Thanks,

Sol



More information about the plug mailing list