Comments on How to Install Wordpress on CentOS
How to Install Wordpress on CentOS Wordpress is a fairly popular free open source website and blogging tool that works by using PHP and MySQL. In this tutorial, we shall learn the process of installing Wordpress on CentOS
10 Comment(s)
Comments
Thanks for short and simple how-to. I wanted to save some typing with a little cut-and-paste, and this fit the bill.
One error: you create the database wordpress1 but then grant privileges on wordpress (without the "1"). I also doubt that the restart of httpd is needed, unless required by the install of php-gd (which was already installed on my system) or things were changed in the preliminary steps. Of note, if you move the directory instead of copying it (as I did) and have SELinux enabled you will probably have to correct the security context (and possibly ownership) of the files.
Imagine I have a Server where there are several customers' Domains hosted. I would like to have WP installed not under each Domain which needs to use it, but at Server top level, so that it can be used by domain-a.com, domain-c.com, domain-whatever.com. Questions:
. Is it possible, or I have to install WP under each of them?
. What is the way that hosting services usually do?
. It it is possible to work this way, what would be the complete tutorial for this?
. Do I need to give FTP access to such a customer?
. If I give him this FTP access couldn't it be dangerous by making possible to install plugins that could bring risk to the whole Server?
. Does WP updates itself automatically whenever there is an atualization for the product or someone has to be concerned about apllying this?
Thanks a lot in advance.
Mario LIma./
For a hosting server with multiple customers you would use a setup like this: https://www.howtoforge.com/perfect-server-centos-7-apache2-mysql-php-pureftpd-postfix-dovecot-and-ispconfig3
followed your instruction and ended up with the white screen of death
this is the most helpful page for wordpress instalation.
link Correction
Fails: wget http://wordpress.org/latest.tar.gz
Works: wget https://wordpress.org/latest.tar.gz
I think
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser1@localhost IDENTIFIED BY 'password123';
should be changed to
GRANT ALL PRIVILEGES ON wordpress1.* TO wordpressuser1@localhost IDENTIFIED BY 'password123';
since the database created was wordpress1. Otherwise it may result in "Error establishing database connection"
you are right. Thank you for this notice.
Thank you for this guide. Everything has gone smoothly except I get a databse connection error on the install page. I have tried everything and checked the wp-config and database name, user and password are correct.
I am at a loss.
Against off
GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser1@localhost IDENTIFIED BY 'password123';
use this
GRANT ALL PRIVILEGES ON wordpress1.* TO wordpressuser1@localhost IDENTIFIED BY 'password123';