Results 1 to 2 of 2
Hello!
I am new to Linux and gave me than to set up a LAMP server. I'm running CentOS.
I got all LAMP components to function. Then I went on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-23-2012 #1Just Joined!
- Join Date
- Sep 2012
- Posts
- 1
Apache 404/403 problem
Hello!
I am new to Linux and gave me than to set up a LAMP server. I'm running CentOS.
I got all LAMP components to function. Then I went on FTP and read my way to vsftp works fine, so I installed it.
What I'm trying to do now is to connect ftp program so I can access any folder I also accessible via http.
Following the instructions, I have created user in the FTP program that allows me to access the folder / home / erik via ftp. It works fine now.
But I can not access it via http. I try to access it via 192.168.1.64 / ~ erik
For a while it was 403 No. permissions. Then when I changed chmod on the home or erik folder (do not know which one triggered faults) I no longer got error 403 but '404 Not found'. Even if I chmod home, erik and public_html to 777, I get '404 Not found' via http.
How can it worth by increasing the rights?
How can I resolve it?
Grateful for answers.Last edited by nothe; 09-23-2012 at 11:48 AM.
- 09-23-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,683
Hi!
Before I go any further, let me say: don't do this. Don't use FTP. It is insecure. It sends authentication (username/password) in clear text. There is a great alternative that is much more feature rich (and secure, obviously): SFTP. It is part of the OpenSSH suite of applications and is likely already on your system.What I'm trying to do now is to connect ftp program so I can access any folder I also accessible via http.
Try to access it using a URL formed like this:Following the instructions, I have created user in the FTP program that allows me to access the folder / home / erik via ftp. It works fine now.
But I can not access it via http. I try to access it via 192.168.1.64 / ~ erik
You should then be prompted for a password.Code:ftp://<username>@<ip_address>
Change this back! You don't want to give everyone write (or even read) access to your home dir!Even if I chmod home, erik and public_html to 777, I get '404 Not found' via http.Last edited by atreyu; 09-23-2012 at 11:40 PM. Reason: fixed parens


Reply With Quote

