Home > CMS Tutorial > PHPCMS > body text

Solution to phpcms unable to load style sheet

藏色散人
Release: 2020-07-18 10:48:42
Original
2719 people have browsed it

Solution to the problem that phpcms cannot load the style sheet: first open the corresponding PHP script file; then modify the new password in the code, and change the user name of the background management to admin; finally, change "fan.php" Just upload it to the root directory of the website using the binary method.

Solution to phpcms unable to load style sheet

phpcmsThe problem that the css style cannot be loaded after the domain name of the program's website is changed

The company’s website was built using phpcms2008. Later, the company required to change the domain name and change the original domain name www.it165.net to ebooks.it165.net. You only need to change the header in the nginx host header. After restarting nginx, I found that the css style could not be loaded when accessing the website ebooks.it165.net:

Solution to phpcms unable to load style sheet

After struggling for a long time, I saw it built by phpcms from the Internet When a website changes its domain name, in addition to changing the domain name of the server, it also needs to update the domain name in the background to operate normally. At first, the problem came again. I didn’t know the password of the website’s background. Later, I found a script on the Internet and put it in the root of the website. directory, the script is as follows:

<?php
include &#39;./include/common.inc.php&#39;;
$password = &#39;123456&#39;;
$username = &#39;phpcms&#39;;
$password = md5(PASSWORD_KEY.$password);
$db->query("UPDATE ".DB_PRE."member SET password = &#39;$password&#39; WHERE username = &#39;$username&#39;");
$db->query("UPDATE ".DB_PRE."member_cache SET password = &#39;$password&#39; WHERE username = &#39;$username&#39;");
echo &#39;ok&#39;;
?>
Copy after login

Change 123456 in the above code to the new password you want to change

$password = &#39;123456&#39;;
Copy after login

phpcms Change the user name for the previous backend management Complete the modification for admin

$username = &#39;phpcms&#39;;
Copy after login

and save the file.

Rename the text document .txt to: fan.php

Then upload fan.php to the root directory of the website using the binary method.

Visit http://ebooks.it165.net/fan.php and you will see it.

The above is the detailed content of Solution to phpcms unable to load style sheet. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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