The development is window, and the server is Godaddy's window host. I wrote a test index.php to call the server's database, and the data prints normally.
But when I upload the project, an error is reported.
unable to write file G:\PleskVhosts\xxx\httpdocs\test/Runtime/Cache\wrt595831ce44a5e
TP prompts that the file cannot be written. What is the problem?
There are also locally developed projects. What should you pay attention to when putting them on godaddy?
Seek the guidance of the great God.
PHP中文网2017-07-03 11:42:43
Windows host, there is no way to execute chmod
. Pay attention to the slashes and backslashes in the path, and then look at the permissions issue.
高洛峰2017-07-03 11:42:43
Read and write permissions for the runtime directory. It should be a permissions issue
迷茫2017-07-03 11:42:43
Set the permissions of the runtime folder to the permissions of the WEB server. If you are using apache, chown -R apache:apache Runtime. If you are using nginx + php-fpm, chown -R www-data:www-data Runtime