D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] php



On Saturday 03 Jan 2004 7:30 pm, paul sutton wrote:
I have attached the output from grep php httpd.conf as this displays all
references to php within this file

? blank

For some reason wheni start httpd with titpd start (as root)

i get

[warn] module php4_module is already loaded, skipping

You've got multiple levels of config in Apache and one of the higher level 
files is importing php4_module and then it comes across another file with the 
same. It's no odds. 

not sure if this significant, in addition i created a new user, httpd, and
made the home directory /srv/www/ so ican login and edit files as a non
root user,

No need to do this, Paul. The root directory of any Apache installation 
doesn't need to be touched. The simplest thing to do is add whichever 
directory you want to use as a virtual host. It can be in your normal user 
space and Apache will serve it up to anyone able to connect.

Look for the section VirtualHost and add
NameVirtualHost IP:80
as per the documentation.

<VirtualHost>
ServerName myweb
DocumentRoot /home/paul/web
</VirtualHost>

Now enter myweb as an alias of the main IP of that machine in /etc/hosts or in 
the DNS if you are running DNS locally.

http://myweb/

Alternatively, follow the documentation in httpd.conf / commonhttpd.conf to 
activate the /home/user/public_html/ webspace and simply use that:
http://localhost/~user/


-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00061.pgp
Description: signature


Lynx friendly