If Not True Then False

Install WordPress 4.1.1 on Fedora 21/20, CentOS/RHEL 7/6.6/5.11 - Comment Page: 4

This is guide, howto install WordPress 4.1.1 with Nginx or Apache on Fedora 21/20/19, CentOS 7/6.6/5.11 and Red Hat (RHEL) 7/6.6/5.11 servers. WordPress needs web server with PHP and MariaDB or MySQL database. This guide uses Apache web server with PHP 5.6 or Nginx web server with PHP 5.6 (PHP-FPM) and MariaDB 10/5.5 database server or Mysql 5.6 database server. If you want to install WordPress...


Leave a Comment

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

Input your comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.


Hi. I have WordPress installed and I can login to the admin. However, I am unable to a) Update WordPress, b) upload media, and c) install plugins. Clearly a permissions issue, so I tried sudo chown -R apache wp-content/ so that apache has write access for the directory. Then double-checked my httpd.conf file and everything looked fine. Restarted apache and the mysql daemon, logged back into the WordPress admin and tried to run updates and install plugins etc and I got this message:

The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.: wp-admin/includes/update-core.php

Odd because I didn’t change any file permissions. That’s went I went searching for a solution and stumbled upon your article. Read through some of the other comments above, tried a couple of their solutions and still no luck. Frustrating as I’ve never had this issue with WordPress on other linux distros. Also hesitant to mess with the selinux configuration (which might be the problem).

Localhost Details: Fedora 20 LAMP stack

reply Reply

Well, I solved it:

You must add these lines

define(‘DISALLOW_FILE_MODS’, false);

before the line

/* That’s all, stop editing! Happy blogging. */

in wp-config.php

reply Reply

Hi JR,

Thanks a lot for this step to step tutorial and the time you take to answer all the questions, it helps a lot.
Like rowbust I’ve been reading a lot of comments and tried some solutions, but unfortunately I wasn’t more lucky.

I’ve installed wordpress on Centos with apache.
I can reach wordpress, but wp-admin/plugins.php and wp-admin/themes.php are not working (browser error message : no data received with chrome)
My log isn’t showing anything..

I tried
sudo chown -R apache wordpress/
I also gave the correct rights to wordpress directory and subdirectories.

I’ve added an .htaccess file

#BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

this is my wordpress.conf

DocumentRoot /var/www/html/wordpress
DirectoryIndex index.php

AllowOverride All
Order Deny,Allow
Allow from all

ErrorLog /var/log/wordpress-error_log
CustomLog /var/log/wordpress-access_log combined

Any idea of what I’m doing wrong?
Sorry if it’s a little bit muddled…

reply Reply

Hi Steeve,

A few things that came to my mind.

Did you tested it with any other browsers? (Just make sure, that it’s not problem with browser)

Did you checked wordpress-error_log, wordpress-access_log and httpd logs?

Do you have SELinux enabled? If yes, could you also check /var/log/audit/audit.log?

reply Reply

Database Error
Error establishing a database connection

following step by step Your guide that’s the result on my box… I use fedora 24.

reply Reply

Nice post, thank you so much .. it worked like a charm .. no issue at all
You need a mariadb operating with no issue
I know I will have issue accessing from local network if the IP adr of site is external one..
You can test it from outside using proxy like geopeeker.com, if all ok on GoePeeker it’s definitively related to network/routing issue

reply Reply