❓ Frequently Asked Questions
How to hide the admin login page?
The system does not support directly modifying the admin directory name to hide the login interface. Modification will cause various unexpected problems. If you still want to do this, you can add the following configuration code at the end of the config.php file in the root directory (if it already exists, just modify it).
const ADMIN_PATH_CODE = 'xxx';
- Replace
xxxwith 8-16 alphanumeric characters, no special characters allowed. - After modification, you can only access the backend via:
http://yourdomain/admin/account.php?action=signin&s=xxx - Modification may affect the new user registration function, we do not recommend using this function.
What if I forget my password?
If the email notification function is configured, you can directly use the "retrieve password" function on the backend login page to reset the password.
You can also use the emlog password reset tool to reset the password, follow these steps:
- Download Password Reset Tool, and unzip the downloaded zip package.
- Upload the unzipped
pw.phpfile to the root directory of the emlog site. - Visit in browser:
your-site-domain/pw.phpand follow the prompts to reset the password. Be sure to delete this file after resetting.
How to solve the issue of chaotic homepage style loss?
Enter the admin backend, click Settings in the left system menu, enter the Basic Settings page, and check if the [Site Address] setting is correct. For example, if HTTPS is enabled but it is not changed to start with https, or the domain name is changed but the setting is still the old domain name.
How to solve the "Directory not writable" prompt?
The entire site needs to be writable by the www user (generally set the file owner to www, permissions to 755)
How to configure the server to support URL Rewrite (Pseudo-static rules)?
Nginx
location / {
index index.php index.html;
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php last;
}
}
Apache
The static rule file .htaccess has been configured in the root directory, with the following content:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /
RewriteRule . /index.php [L]
</IfModule>
If the static rules do not take effect, you need to modify the Apache server configuration to enable support for .htaccess. Check the http.conf configuration file:
- Ensure the
mod_rewritemodule is loaded, remove the#comment symbol before the following configuration lineLoadModule rewrite_module modules/mod_rewrite.so - Set the
AllowOverridedirective toAllAllowOverride All
Caddy
Add the following configuration to Caddyfile:
example.com {
# Pseudo-static rules: if the file or directory does not exist, forward to index.php
try_files {path} {path}/ /index.php
}
Windows IIS
IIS6
Find the httpd.ini file (usually located in C:\Program Files\ISAPI_Rewrite\ or the installation directory) and configure it as follows:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteRule /robots.txt(.*) /robots.txt$1 [L]
RewriteRule /rss.php(.*) /rss.php$1 [L]
RewriteRule /tb.php(.*) /tb.php$1 [L]
RewriteRule /favicon.ico /favicon.ico [L]
RewriteRule /xmlrpc.php(.*) /xmlrpc.php$1 [L]
RewriteRule /wlwmanifest.xml /wlwmanifest.xml [L]
RewriteRule /(t|m)$ /$1/ [R] RewriteRule /(admin|content|include|t|m)/(.*) /$1/$2 [L]
RewriteRule /install.php(.*) /install.php$1 [L]
RewriteRule /up(d.d.d)to(d.d.d).php(.*) /up$1to$2.php$3 [L]
RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]
IIS7/8/10
Create a web.config file in the site root directory and fill in the following content
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="emlog Rewrite" stopProcessing="true">
<match url="^(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="/index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
How to change the default 🌵 browser icon?
- Check if the theme settings provide a function to change the browser icon. If so, you can modify it directly.
- Find the
favicon.icofile in the root directory and replace it with your own file of the same name. Remember to clear the browser cache after replacement. It is recommended to use online tools to create your own site icon, such as: https://www.logosc.cn/logo/favicon
How to set up CDN?
emlog is a dynamic site and does not support full-site CDN caching. If forced enabled, various functional abnormalities may occur. It is recommended to configure rules to enable CDN caching only for static resources such as images, videos, and download files, and not to enable CDN caching for other dynamic requests.
But this does not mean that CDN is useless for emlog. Some CDNs provide security protection functions such as frequency control in addition to caching functions, which can continue to be used, just pay attention to the rules and do not cache dynamic requests.
How to prevent search engines from indexing the site?
Modify the robots.txt file in the root directory, delete all original content, and change it to the following content. After modification, most search engines will comply with the robot protocol and stop crawling your site.
User-agent: *
Disallow: /
How to solve 502 error?
502 is usually caused by abnormal PHP execution. Check if PHP is started normally completely. You can try to restart PHP. If restarting still cannot solve it, you can try to install other versions of PHP (such as 7.4, 8.1), then switch the PHP version used by the website, or try uninstalling and reinstalling PHP.
Application installation failed, prompt: Please install php Zip extension, how to solve?
If PHP is installed via Bt Panel, you can try switching the PHP version to 7.4 or 8.1 to solve it. In other cases, you may need to manually install the php zip extension. There are many specific installation methods, you can search for: Install PHP zip extension under xx operating system.
What if the website becomes inaccessible after installing a plugin?
First, it is recommended to switch the PHP version to 7.4 or 8.1 to try to solve it. If it cannot be solved, you can use the plugin disable tool to disable all subsequently installed plugins, follow these steps:
- Download Plugin Disable Tool, and unzip the downloaded zip package.
- Upload the unzipped
em.phpfile to the root directory of the emlog site. - Visit in browser:
your-site-domain/em.phpand follow the prompts to disable plugins. Be sure to delete this file after use.