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.
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.Read and write permissions for the runtime directory. It should be a permissions issue
No permission,
chmod -R 755
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