D&C GLug - Home Page

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

Re: [LUG] apache web server adding pages as a normal user

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Sutton wrote:
> 
> 1.  I have set up apache and my doc root is /var/www/
> 
> Now, as I am normally logged in as myself I can't save files to this
> folder,  what is the proper way to allow me to add file

Any way that works will do. Typically you want the Apache user to have
read (but usually not write - there are exceptions).

> on a development point of view, I could develop stuff, locally. then
> move the final set of files, to /var/www/
> (this can be done with a simple shell script, run as root under su )
> 
> According to the read me user directories are enabled, only I can't find
> public_html, within my user directory,  should I create this,

Yes - just do it.

> once I have doen this I take it it's just a case of pointing mozilla at
> my local public_html directory.

Usually http://hostname/~username/ will get the public_html directory of
"username".

> If I want to do as tom is doing, which is to build a intranet server, 
> whats the best way of doing this, clearly I think there should be an
> easy way to get a directory to store html files along with related
> support files (cgi, perl, php, java etc)

The easy way as Tom is trying is to avoid thinging about files, but
install some sort of content management system (Wikis are cool), and
just put content there using the tool. You'd only need to think about
files and database from a back-up or install perspective.

        Simon
-----BEGIN PGP SIGNATURE-----
Comment: Encryption...is a powerful defensive weapon for free people.
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqg9YGFXfHI9FVgYRApL9AJ95IcW3enr2aXI4TLmp5099SAFPKQCguXdG
aWgTLlt4NyIZ/3oKGesgZbY=
=6vMl
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html