your administration page: Use http://
/wp-admin/
https://oneinstack.comOneinStack.com 《WordPress on LEMP Image Guide》
12.2 About the PHP opcode cache
by default,in order to reduce PHP compile time,improve performance(Opcache is
recommended for production environments),The PHP environment loads the
Opcache module by default(PHP7.1,7.0,5.6,5.5),Please refer to the principle:
《In-depth understanding of PHP Opcode caching principles》
But this will appear PHP code updates, take 2 to 3 minutes to take effect,This
affects the efficiency of the site during the commissioning phase suggest that you
close or refresh the cache every time there is a code update(Recommended
method two)
Method 1:Uninstall Opcache
cd /root/oneinstack #Must enter the directory execution under oneinstack
./addons.sh
https://oneinstack.comOneinStack.com 《WordPress on LEMP Image Guide》
Method 2: Refresh the PHP cache
Access http:///ocp.php,
Or direct access http:///ocp.php/ocp.php?RESET=1
As shown below:
https://oneinstack.comOneinStack.com 《WordPress on LEMP Image Guide》
12.3 Proper permissions for files/folders
Web site root permissions to follow:
file 644, folder 755 ,Permissions Users and groups www
If there is a file permissions problem, execute the following three commands:
chown -R www.www /data/wwwroot/
find /data/wwwroot/ -type d -exec chmod 755 {} \;
find /data/wwwroot/ -type f -exec chmod 644 {} \;
https://oneinstack.comOneinStack.com 《WordPress on LEMP Image Guide》
12.4 About Redis and Memcached
Redis default port:6379
Memcached default port:11211
default only listen IP:127.0.0.1
1. How to increase the maximum memory size of Redis
vi /usr/local/redis/etc/redis.conf
maxmemory 1024000000 #
service redis-server restart # restart the redis for changes to take effect
2. How to increase the maximum memory size of memcached
vi /etc/init.d/memcached
CACHESIZE=256 #
service memcached restart # restart the memcached for changes to take
effect
3. How to change the listening port for redis
vi /usr/local/redis/etc/redis.conf
bind 127.0.0.1 changed to bind 0.0.0.0
service redis-server restart # restart the redis for changes to take effect
4. How to change the listening port for memcached
vi /etc/init.d/memcached
OPTIONS="-l 127.0.0.1" changed to OPTIONS=""
service memcached restart # restart the memcached for changes to take
effect
https://oneinstack.comOneinStack.com 《WordPress on LEMP Image Guide》
12.5 About iptables Firewall
By default, iptables firewall is not running.
https://oneinstack.com">