Jump to content

Configuring Apache for users


Jza
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

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.

Link to comment
Share on other sites

  • 3 weeks later...
Guest matthiar

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 :banana:

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@!

Link to comment
Share on other sites

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

 

:)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...