introduction h2>
project cannot be accessed after porting to the new VPS. Error message:
Warning: Unknown: failed to open stream: Permission denied in on line 0
Fatal error: Unknown: Failed opening required ‘/ var/WWW/project/index. PHP’ (include_path = ‘. :/usr/share/PHP ‘) in the Unknown strong> on line 0 strong>
p>
solution h2>
key information: failed to open stream — Permission denied Permission
reason: the project folder as a whole does not have read/write permissions, so PHP cannot parse
solution:
cd /var/www/project/
sudo chmod -R 0755 ./
is the same as 0755 or 0777
Read More:
- move_uploaded_file() failed to open stream: Permission denied
- An idea to solve Warning move_uploaded_file, failed to open stream in the process of php uploading files
- php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)
- Android has applied for permission and still prompts open failed: eacces (permission denied)
- Solve the problem of dynamically applying for permission, but still reporting an error of open failed: eacces (permission denied)
- php Error failed to open stream: HTTP request failed!
- Unknown error (SQLite code 14): could not open database (How to Fix)
- Unhandled rejection Error: EACCES: permission denied, open ‘/Users
- error: cannot open .git/FETCH_ Head: permission denied resolved
- failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
- session_ start(): open(SESSION_ FILE, O_ Rdwr)) failed: processing of permission denied (13)
- Fabric appears when trying to use application call: Unknown: access denied: Channel [mychannel] creator org [org1msp]
- Developing in Android java.net.SocketException : socket failed: eacces (permission denied) reported an error
- Maven of springboot project pom.xml Unknown error in the first line of the file
- Solve the problem of the C compiler identification is unknown or the cxx compiler identification is unknown in the process of using cmake
- Permission error: [errno 13] permission denied: ‘… ” xxx.pyd ‘
- Java 8 Stream – Read a file line by line
- Failed to open stream: http request failed!
- Permission denied error: unable to index file .vs/Trip2015/v15/Server/sqlite3/db.lock fatal: adding
- Winscp failed to upload the file to the server, indicating permission denied with return code 3