Configuring Fedora to Run WordPress

0

January 13, 2012 by Al

When installing WordPress on Fedora running SELINUX you need to do some configuring to be able to use all of the features. Most specifically, you need to configure SELINUX so you can work with plugins, themes, and media.

First, make “apache,” or whatever the username of your httpd server is, the owner of your WordPress files. Also, make “apache” the group for all your WordPress files. To do so, go to the base folder of your WordPress installation and issue these commands:
chown -R apache *
chgrp -R apache *

Next, change the SELINUX context of the folders to which you need to upload items, such as themes, plugins, and media.

chcon -R -t httpd_tmp_t plugins
chcon -R -t httpd_tmp_t themes
chcon -R -t httpd_tmp_t uploads
(If your uploads folder is named “upLoads” then make the change in the command.)

Now you should be able to upload themes, plugins, and media to your WordPress site.


0 comments

Sorry, comments are closed.