search

Home  >  Q&A  >  body text

javascript - When writing a website using the thinkphp framework locally, an error occurred when it was placed on the server.

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.

我想大声告诉你我想大声告诉你2705 days ago768

reply all(4)I'll reply

  • PHP中文网

    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.

    reply
    0
  • 高洛峰

    高洛峰2017-07-03 11:42:43

    Read and write permissions for the runtime directory. It should be a permissions issue

    reply
    0
  • 怪我咯

    怪我咯2017-07-03 11:42:43

    No permission, chmod -R 755

    reply
    0
  • 迷茫

    迷茫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

    reply
    0
  • Cancelreply