Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by nothe View Post
    Hello!
    Hi!

    What I'm trying to do now is to connect ftp program so I can access any folder I also accessible via http.
    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.

    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
    Try to access it using a URL formed like this:
    Code:
    ftp://<username>@<ip_address>
    You should then be prompted for a password.

    Even if I chmod home, erik and public_html to 777, I get '404 Not found' via http.
    Change this back! You don't want to give everyone write (or even read) access to your home dir!
    Last edited by atreyu; 09-23-2012 at 11:40 PM. Reason: fixed parens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •