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 with Apache then use a - [Apache] sections and if you want install Wordpress with Nginx then use b - [Nginx] sections.
1. Install Needed Web and Database Servers
[Apache]
1.1a Install the whole LAMP environment with following guide
LAMP (Linux/Apache/MySQL/PHP) on Fedora, CentOS/Red Hat...
Thanks for the step-by-step instructions – this will save me a lot of time and frustration on my next wordpress install!
Hi Team,
Yesterday i have configured wordpress on the centos6.6 and after change setting of dashboard like URL setting and domain setting it is not accessing.
and also i am not able to access in Lan network, what should i change for lan network access.
Please hemp mee
Hi varun,
So you WordPress installed, but you can’t access it?
Could you post your Apache or Nginx server config (virtual host) for this wordpress installation?
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
I have exactly the same problem. What a pity
Well, I solved it:
You must add these lines
define(‘DISALLOW_FILE_MODS’, false);
define(‘AUTOMATIC_UPDATER_DISABLED’, false);
before the line
/* That’s all, stop editing! Happy blogging. */
in wp-config.php
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…
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?
Database Error
Error establishing a database connection
following step by step Your guide that’s the result on my box… I use fedora 24.
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
Jbat.
I am having this problem “Your PHP installation appears to be missing the MySQL extension which is required by WordPress” when I’m upgrade the php from version 5.6 to 7.2. Turns out that mysql extension is no longer supported in php version 7.2. It is now using mysqli extention. I am using old version of wordpress which still using mysql extension so the problem existed. So what I did is upgraded the wordpress to the core. I used the latest version of wordpress and used filezilla to put the new version to the site. I only overwrite the folder wp-includes and wp-admin and replace all the files in the root folder with the new files