Installing Wordpress on CentOS 7 Minimal
-
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
-
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
My install guide is written for Fedora
-
@scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
My install guide is written for Fedora
Is that here on ML?
-
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
My install guide is written for Fedora
Is that here on ML?
Yes. I think it is in two parts. One for the stack then another for WP. Since one is standard without the other.
-
Just use this guide but install Fedora instead of CentOS. You will get PHP 7
-
I've actually been playing around with @scottalanmiller's Salt writeups to do this.
But there is still a bunch to do from this guide as well.
-
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
I'm all about Fedora as well... even Fedora Desktop for personal use, moreso than Korora.
So make that 3 votes.
-
@Tim_G I'm not running fedora instead of korora as welll
-
@brianlittlejohn said in Installing Wordpress on CentOS 7 Minimal:
@Tim_G I'm not running fedora instead of korora as welll
No, he IS running Fedora instead of Korora.
-
@scottalanmiller lol... m a little drunk...I'm running fedora as well
-
@brianlittlejohn said in Installing Wordpress on CentOS 7 Minimal:
@scottalanmiller lol... m a little drunk...I'm running fedora as well
As long as it is only a little. Don't want anyone to have to carry you home.
-
@scottalanmiller no one carried me home last time...I was just singin Vanilla Ice
-
@scottalanmiller and everyone else was walking slow
-
@scottalanmiller said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
@JaredBusch said in Installing Wordpress on CentOS 7 Minimal:
@BRRABill said in Installing Wordpress on CentOS 7 Minimal:
Going back through this today.
What did we ever decide on PHP 5.X versus 7.X
Since WordPress seems to be recommending the move to 7.X, is it reasonable and desired to install that instead? Even if it is not in the official repositories? (I am, just asking for future reference for others.)
I would install this on Fedora today. If you want to be on CentOS 7, then install the Remi repo and enable the PHP 7.1 repo.
That's two votes for Fedora,then. I know @scottalanmiller is also a fan.
My install guide is written for Fedora
How are you getting logs into Elastic Stack or whatever you're using now?
-
@jaredbusch said in Installing Wordpress on CentOS 7 Minimal:
setenforce permissive;
Setup SELinux permissionssemanage fcontext -a -t httpd_sys_content_t '/opt/yourdomain(/.*)?' restorecon -R /opt/yourdomain semanage fcontext -a -t httpd_sys_rw_content_t '/opt/yourdomain/wp-content(/.*)?' restorecon -R /opt/yourdomain/wp-content
I run my servers with SELinux running in Enforcing mode, not permissive.
So if it's in enforcing, WordPress will not run correctly. Example, you can't update, and the Add Plugins page gives a connection error (it's because httpd can't write correctly due to selinux enforcing).
Instead of running SELinux in permissive system-wide, you can keep it in Enforcing mode, and issue the following command:
semanage permissive -a httpd_t
The reason I use that one instead of by directory, is because I don't know how to do that... well I do, but I didn't have time yet to see what all directories need to be written to for updating and plugins pages and such to work correctly. I'll add that here some other time when I get a chance to look in to it more.
-
@tim_g said in Installing Wordpress on CentOS 7 Minimal:
@jaredbusch said in Installing Wordpress on CentOS 7 Minimal:
setenforce permissive;
Setup SELinux permissionssemanage fcontext -a -t httpd_sys_content_t '/opt/yourdomain(/.*)?' restorecon -R /opt/yourdomain semanage fcontext -a -t httpd_sys_rw_content_t '/opt/yourdomain/wp-content(/.*)?' restorecon -R /opt/yourdomain/wp-content
I run my servers with SELinux running in Enforcing mode, not permissive.
So if it's in enforcing, WordPress will not run correctly. Example, you can't update, and the Add Plugins page gives a connection error (it's because httpd can't write correctly due to selinux enforcing).
Instead of running SELinux in permissive system-wide, you can keep it in Enforcing mode, and issue the following command:
semanage permissive -a httpd_t
The reason I use that one instead of by directory, is because I don't know how to do that... well I do, but I didn't have time yet to see what all directories need to be written to for updating and plugins pages and such to work correctly. I'll add that here some other time when I get a chance to look in to it more.
The uploads directory requires write access.
-
@black3dynamite said in Installing Wordpress on CentOS 7 Minimal:
@tim_g said in Installing Wordpress on CentOS 7 Minimal:
@jaredbusch said in Installing Wordpress on CentOS 7 Minimal:
setenforce permissive;
Setup SELinux permissionssemanage fcontext -a -t httpd_sys_content_t '/opt/yourdomain(/.*)?' restorecon -R /opt/yourdomain semanage fcontext -a -t httpd_sys_rw_content_t '/opt/yourdomain/wp-content(/.*)?' restorecon -R /opt/yourdomain/wp-content
I run my servers with SELinux running in Enforcing mode, not permissive.
So if it's in enforcing, WordPress will not run correctly. Example, you can't update, and the Add Plugins page gives a connection error (it's because httpd can't write correctly due to selinux enforcing).
Instead of running SELinux in permissive system-wide, you can keep it in Enforcing mode, and issue the following command:
semanage permissive -a httpd_t
The reason I use that one instead of by directory, is because I don't know how to do that... well I do, but I didn't have time yet to see what all directories need to be written to for updating and plugins pages and such to work correctly. I'll add that here some other time when I get a chance to look in to it more.
The uploads directory requires write access.
Is that it? I thought I tried that and it still had issues.
I'll try it again later.
-
@tim_g said in Installing Wordpress on CentOS 7 Minimal:
@jaredbusch said in Installing Wordpress on CentOS 7 Minimal:
setenforce permissive;
Setup SELinux permissionssemanage fcontext -a -t httpd_sys_content_t '/opt/yourdomain(/.*)?' restorecon -R /opt/yourdomain semanage fcontext -a -t httpd_sys_rw_content_t '/opt/yourdomain/wp-content(/.*)?' restorecon -R /opt/yourdomain/wp-content
I run my servers with SELinux running in Enforcing mode, not permissive.
So if it's in enforcing, WordPress will not run correctly. Example, you can't update, and the Add Plugins page gives a connection error (it's because httpd can't write correctly due to selinux enforcing).
Instead of running SELinux in permissive system-wide, you can keep it in Enforcing mode, and issue the following command:
semanage permissive -a httpd_t
The reason I use that one instead of by directory, is because I don't know how to do that... well I do, but I didn't have time yet to see what all directories need to be written to for updating and plugins pages and such to work correctly. I'll add that here some other time when I get a chance to look in to it more.
I only said that for install message you remove it back to enforcing