Configure WordPress, mysql 8, nginx on CentOS 8

It is not easy to setup wordpress, mysql, nginx on CentOS.

Following are the uri resources I collected when I tried to setup wordpress site.

https://upcloud.com/community/tutorials/install-wordpress-lemp-centos-8/

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-centos-8

https://www.thegeekdiary.com/how-to-transfer-files-securely-using-scp-command-in-linux/

https://www.rosehosting.com/blog/how-to-install-wordpress-with-lemp-stack-on-centos-8/

https://www.linuxtechi.com/install-vsftpd-server-centos-8-rhel-8/

Issues

Most of the issues can be troubleshooted in nginx log. /var/log/nginx

  1. Missed Json Module

Missed to install php-json module when install the php.

2. Cannot connect to wordpress.org

https://wordpress.org/support/topic/error-curl-error-7-3/

setsebool -P httpd_can_network_connect true

4. Cannot to add or update plugins or themes, and ftp sign form popup

Add code: define('FS_METHOD', 'direct'); into wp-config.php .

3. Permalink not work, update the nginx conf file as

location / { 
    try_files $uri $uri/ /;
}

2 Replies to “Configure WordPress, mysql 8, nginx on CentOS 8

Leave a Reply

Your email address will not be published. Required fields are marked *