LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-29-2004, 12:23 AM   #1
larsenmtl
LQ Newbie
 
Registered: Feb 2004
Posts: 23

Rep: Reputation: 15
Apache Qs: Moving Document Root and PHP with Apache2


Linux Gurus;

I've been messing around with apache and have two questions.

1.) Is it a bad idea to move your document root? I changed mine to a directory in my home so that I may more easily edit files / ftp files. To get this to work, I had to specify my username in httpd.conf under the user/group section. Does this open up any risks?

2.) I've read that mixing Apache2 and PHP is unstable. What's the straight dope on this?

Thanks,

LarsenMTL
 
Old 09-29-2004, 06:15 AM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
1) So apache is running with your username? The only thing to remember is that apache now has the same permissions you do - if you could delete any important data with your login, so too can apache when set up this way. It would be better to put apache back the way it was, give the group write access to the files you need to edit, and make yourself a member of that group instead.

2) I haven't seen any stability problems on my machine, but what this usually means is that it's not nearly as well-tested as apache1 with PHP, or that there are still known bugs to work out. If you feel comfortable testing it, go ahead, but be prepared to switch to apache1 if any problems occur for you.
 
Old 09-29-2004, 06:25 AM   #3
sashhoney
Member
 
Registered: Jul 2003
Distribution: Red Hat, Fedora, Debian
Posts: 85

Rep: Reputation: 15
1.) Is it a bad idea to move your document root? I changed mine to a directory in my home so that I may more easily edit files / ftp files. To get this to work, I had to specify my username in httpd.conf under the user/group section. Does this open up any risks?
Well if u r shifhting it to ur home directory than it is a very very bad idea. It certainly increases lots of entry points
Generally document root is moved only to guarantee that size of the /var dir doesnot affect the functionality of ur web server.

2.) I've read that mixing Apache2 and PHP is unstable. What's the straight dope on this?
well this is somewhat debatable topic. i m using this mixture for very long time. although there r some major concerns like environment variables and session management, but it works mfine if u take care of all these
 
Old 09-29-2004, 09:31 AM   #4
larsenmtl
LQ Newbie
 
Registered: Feb 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks guys. Looks like I'll be moving it back.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - change document root? squall14716 Linux - Software 2 01-20-2010 11:16 AM
How do I change document root in apache2 in Ubuntu? leemoreau Linux - Networking 4 03-30-2005 07:18 AM
Apache 2: won't allow document root to be changed, plus more QtCoder Linux - Networking 1 11-06-2004 05:44 PM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 07:10 AM
Apache Document Root Path bowen Linux - General 8 11-29-2002 03:13 AM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration