I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but all these files belong to & quot; www-data & quot ,...
I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but these files belong to "www-data" and do not have the edit permission. Please kindly advise.
Reply content:
I am preparing to build the thinkphp development environment in ubuntu. Now LAMP is installed normally, and thinkphp and index are also downloaded. php is also placed under the website file. After accessing localhost, index. php generates framework files, but these files belong to "www-data" and do not have the edit permission. Please kindly advise.
I used the chown-R username. root/webdir command to solve the problem temporarily.
Try switching the root user?
You shouldn't directly edit the code on the server. If you really need it, run sudo.