1024programmer Java Godaddylinux space dreamweaver DedeCMS generated file permission 0600 cannot be accessed solution

Godaddylinux space dreamweaver DedeCMS generated file permission 0600 cannot be accessed solution

I found a problem like the title in the godaddy linux space. DedeCMS cannot be accessed after generating static files. Log in to ftp to check that the file is indeed generated. I saw that the permissions were 0600 and manually changed them to 0777. The problem was solved. It can be accessed normally. Wait for the next release. When writing the article, I found that the problem came again. Do you need to set permissions through ftp every time you publish an article? Hey, it’s a bit troublesome. Try modifying the program so that dede can automatically modify the permissions after generating the file. The test was successful. Let’s share the solution to the problem

Godaddy linux space dreamweaver DedeCMS generated file permission 0600 cannot be accessed solution

First find the file include/arc.archives.class.php

Find $this->dtp->SaveTo($TRUEfilename) at about line 420;

Add chmod($TRUEfilename,0777);

The problem will be solved in the following line. There is no need to manually modify permissions after each generation.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/768494

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索