Home > CMS Tutorial > PHPCMS > body text

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

王林
Release: 2019-11-14 14:53:51
Original
2168 people have browsed it

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/', //附件路径
Copy after login
'app_path' => 'http://localhost/',//动态域名配置地址
Copy after login

change to:

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

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template