Home >CMS Tutorial >PHPCMS >Reasons and solutions for server security authentication error when phpcms uploads pictures

Reasons and solutions for server security authentication error when phpcms uploads pictures

王林
王林Original
2019-11-14 14:53:512203browse

Reasons and solutions for server security authentication error when phpcms uploads pictures

Error display picture:

Reasons and solutions for server security authentication error when phpcms uploads pictures

##Cause:

This problem is generally caused by domain name changes and incorrect variable values ​​such as upload_url or app_path.

Solution:

Find "

/caches/configs/system.php" and change the parameters of the previous local path inside to the new ones Domain name, for example:

'upload_url' => 'http://localhost/uploadfile/', //附件路径
'app_path' => 'http://localhost/',//动态域名配置地址

change to:

'upload_url' => 'http://xxx.com/uploadfile/', //附件路径
'app_path' => 'http://xxx.com/',//动态域名配置地址

and then update the cache in the background.

Recommended tutorial:

phpcms tutorial

The above is the detailed content of Reasons and solutions for server security authentication error when phpcms uploads pictures. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn