Home>Article>CMS Tutorial> Solution to phpcms unable to load style sheet
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.
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:
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:
query("UPDATE ".DB_PRE."member SET password = '$password' WHERE username = '$username'"); $db->query("UPDATE ".DB_PRE."member_cache SET password = '$password' WHERE username = '$username'"); echo 'ok'; ?>
Change 123456 in the above code to the new password you want to change
$password = '123456';
phpcms Change the user name for the previous backend management Complete the modification for admin
$username = 'phpcms';
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!