Deploying WordPress on CentOS 7 LAMP
-
In the above example, we deployed into the standard Apache root directory at /var/www/html and used the directory wordpress. This is fine in some cases, but is very generic and odd for most use cases. If your server will be serving out only one site and you want it to be this one, you will likely want to change where Apache looks for its default site. In some cases you will want to make HTTPS headers point to different folders for different names. These are pretty easy modifications but better suited to more Apache-focused articles.
To deploy more WordPress here or to change the name of the folder that you navigate to in order to see your WP install, you can simple rename the wordpress folder. For example, if your site was about tropical fish you might do this...
mv /var/www/html/wordpress /var/www/html/ilovetropfish
And then you could navigate to http://myserveripaddress/ilovetropfish/ to see your site.
Likewise, you could install wordpress many times following the same procedure as above but simply naming each folder something unique in order to have many sites hosted on the same Apache server.
-
This is a much better way: http://wp-cli.org/
-
@aaronstuder said in Deploying WordPress on CentOS 7 LAMP:
This is a much better way: http://wp-cli.org/
I don't see info about installing WP using that tool, only managing it.
-
I wrote this 2 years ago when @scottalanmiller posted his LEMP challenge thing.
https://jaredbusch.com/2014/08/11/how-to-install-wordpress-on-centos-7-minimal/
I should update it for SSL and post it here.
-
@JaredBusch said in Deploying WordPress on CentOS 7 LAMP:
I wrote this 2 years ago when @scottalanmiller posted his LEMP challenge thing.
https://jaredbusch.com/2014/08/11/how-to-install-wordpress-on-centos-7-minimal/
I should update it for SSL and post it here.
Please do!
-
-
-
@scottalanmiller Do you have a guide on securing CentOS 7?
-
@aaronstuder said in Deploying WordPress on CentOS 7 LAMP:
@scottalanmiller Do you have a guide on securing CentOS 7?
NOt yet, will likely be part of my series, eventually.
-
@scottalanmiller Add virualhosts to the list too