javascript - When writing a website using the thinkphp framework locally, an error occurred when it was placed on the server.
我想大声告诉你
我想大声告诉你 2017-07-03 11:40:43
0
4
748

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.

我想大声告诉你
我想大声告诉你

reply all(4)
洪涛

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!