Creating new tmp folder for PHP to use?

前端 未结 2 629
既然无缘
既然无缘 2021-01-26 10:25

I think I\'m having problems using PHP sessions because I\'ve got cPanel installed on the same server and I believe it has additional security in place that prevents write acces

2条回答
  •  渐次进展
    2021-01-26 10:57

    /tmp should always be accessible. You can of course create a new "tmp" folder somewhere near you application. Just make sure it does not reside within the web root. Give it read/write permissions and chown it to the user of the webserver.

    You then need to change the session_save_path to your new "tmp" folder.

提交回复
热议问题