Jza Posted October 9, 2005 Report Share Posted October 9, 2005 I use web applications for my personal desktop use. However when I tried to change mandriva 2006 I format my root partition and then I realized that I have delete everything on my /var/www/html. I dont wan't to happen that again and I want to move my DocumentRoot to a remote harddrive. So I want to know how can I do this. I want to change the httpd_conf however I haven't had any success. Can anyone give me an advice on how to set up my web apps on my home. I also went through the mcc and chose the apache server configuration but didn't have much luck around that. Because I choose to use public_html but I still couldnt publish my thing. Quote Link to comment Share on other sites More sharing options...
crac Posted October 10, 2005 Report Share Posted October 10, 2005 I also went through the mcc and chose the apache server configuration but didn't have much luck around that. Because I choose to use public_html but I still couldnt publish my thing. <{POST_SNAPBACK}> The problem here could be some permission rights you have to set. Apache is configured by default to allow the usage of ~/public_html. Be aware that apache user has to be able to read that directory. Either you chown -R YOUR_USER:apache ~/public_html or chmod g+rx ~/public_html (and make sure all files are readable by apache) You can gather more information about your specific problem by analyzing /var/log/httpd/error_log. Quote Link to comment Share on other sites More sharing options...
Guest matthiar Posted October 26, 2005 Report Share Posted October 26, 2005 I just did the same thing. You can: 1.create a directory www_root under you home directory 2. chown to apache/apache 3. open it wide up 777 4. comment out these lines from /etc/httpd/conf/commonhttpd.conf #Restricted set op options Comment out Line 36-42 5. Set your DocumentRoot to /home/myName/www_root in these two files:httpd2-perl.conf and httpd.conf Worked for me Of course only recommended for usage at home, not for running a public server, but that's another topic. btw This used to be a lot easier@! Quote Link to comment Share on other sites More sharing options...
geekbrains Posted October 27, 2005 Report Share Posted October 27, 2005 Dude, There are a couple of ways to overcome this situation, 1. To have a separate /var partition defined (useful when your log files @ /var/log eat up your hdd and leave your machine unbootable) 2. As suggested by matthiar n crac, share your home directory with a special folder for www. 3. In my home I'm running a couple of test sites each mounted on an individual HDD (for large database testing and good I/O) and the document root appropriately set on apache httpd.conf. The possibilities are countless in Linux:D :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.