Xampp - Ubuntu - cant access my project in lampp/htdocs

后端 未结 5 1862

I have installed xampp to Ubuntu 12.04. I have put my project in the folder /opt/lampp/htdocs/project_is_here

When I type in the browser localhost/soap/php

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 18:32

    1. In the linux terminal navigate to your lampp directory.

      cd /opt/lampp
      
    2. In the command line type:

      sudo chmod 777 -R htdocs
      

    The problem should be solved.

    1st Edit:

    What you just did was:

    You navigated to the directory containing the protected directory. Your problem was that it was a folder that was access protected by your system. When you commanded chmod 777 -R htdocs, what you did was set the permissions for everyone on your computer to read/write/execute - allowed.

    Now, you know what each digit means. It says who the number is about. Now each number from 0-7 sets a permission level. I will simply provide you a link for that.

    http://www.pageresource.com/cgirec/chmod.htm

    I forgot to add why there is a '-R'. '-R' makes the command recursive and will affect htdocs as well as all subdirectories of htdocs and all subdirectories of those etc.

提交回复
热议问题