ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can someone help me set up my apache i have it up and running but when i try to access my home directory it gives me a 403 Forbidden error also i can i set it up when i create a new user on the box it will add there public_html folder auto? thanks toxic~
You don't need an htaccess file.
Do an "ls -la" on the directory where you put your web documents - eg:
ls -la /var/www/html
or
ls -la /home/httpd/html
total 12
drwxr-xr-x 3 root root 4096 Jul 31 11:40 .
drwxr-xr-x 7 root root 4096 Jul 31 11:40 ..
drwxr-xr-x 2 webalizer root 4096 Sep 28 03:13 usage
but like when i create a new user like /home/newuser/public_html
is that the directory it reads from? im trying to give my friend a account to host a site for him
I had this problem last week where I would put the page in public_html and then it gave me the forbidden message.
check this
ls -l /home
you should have directories with at least read and execute chmod 755 /home/username chmod 755 ~/public_html
after that I was able to access the page.
like Blink_Fluid said, the home directory has to have permission of 755, the public_html directory must have 755 permissions and also you have to make sure you have setup apache to allow users to have web directories (usually just uncomment a section to allow it and do a killall -1 httpd to re-read the config file).
vsftpd comes with redhat 9. I tend to run it in standalone mode. Edit vsftpd.conf and uncomment the lines specifiec for standalone mode at the bottom. Then to make the service run on boot:
chkconfig --levels 345 vsftpd on
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.