Sunday, May 10, 2015

Install Wordpress on Oracle Linux 7

Wordpress is a popular blogging tools used for many different purposes. People use Wordpress as a blogging tool, a content management system, and even as a website management tool.
This tutorial will go over installing Wordpress on Oracle Linux 7.
Basics:
Install Oracle Linux 7.1 (follow articles describing cloning a base Linux install with Virtual Box or install the software directly)
Downloads: Wordpress
Additional Tools: Filezilla or other ftp client, SecureCrt/Putty or other ssh client
Steps:
1. Follow the steps to clone a new Linux Server.
2. Edit the hostname to a hostname you will understand
vi /etc/hostname
wordpress.simplepsider.com
3. Set the hostname the imp address to a static ip address. This will avoid problems in the future with connecting to clients after reboots.
ip addr
vi /etc/sysconfig/network/*/ifcfg-*
4. Patch your OS. Always patch your OS before installing web applications.
yum update
5. Reboot your system
reboot
6. Enable yum repo for mysql
vi /etc/yum.repos.d/public-yum-ol7.repo
find the ol7_MySQL56
change enabled to 1
YumMysqldEnable 
7. Install software for wordpress.
#Web Server
yum install mod_ssl openssl httpd -y
# Php
yum install php php-mysql -y
# Database
yum install mysql-server -y
#install ftp server
yum install vsftpd -y
# Additional Tools zip program, locate program
yum install unzip -y
yum install mlocate -y
yum install wget -y
# Additional php libraries for wordpress tools
yum install php-gd -y
yum install php-xml -y
InstallSoftware
8. Start and enable database.
systemctl start mysqld
systemctl enable mysqld
9. start and enable web server
systemctl start httpd
systemctl enable httpd
StartamndEnableServices
10. Secure mysql database
mysql_secure_installation
Current Password (enter for none):
Set Password = Y
Enter Strong Password
Renter Password
Remove Anonymous user? = Y
Disallow root login remotely? = Y
Remove Test Database? = Y
Reload Prvileges? = Y
SecureMysql
11. Create the wordpress database and account user.
-- Use a string password do not use MyPassword1 this is just an example
mysql -u root -p
CREATE DATABASE simplespider_prod;
GRANT ALL PRIVILEGES ON simplespider_prod.* TO
[email protected];
SET PASSWORD FOR
[email protected] = PASSWORD('MyPassword1');
FLUSH PRIVILEGES;
exit
CreateDatabaseandUser
12. Download the latest version of wordpress.
cd ~
wget
https://wordpress.org/latest.zip
13. Unzip wordpress
ls –lrt
unzip latest.zip
cd wordpress
cd /var/www/html

rm –rf *
cp ~/wordpress/* /var/www/html -R
CopyWordpresstoWebRoot
14 Configure wordpress to connect to your database
cd /var/www/html
cp wp-config-sample.php wp-config.php
vi wp-config.php
define('DB_NAME', 'simpleprider_prod');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', 'MyPassword1');
define('DB_HOST', 'localhost');
ConfigureWordpressDB
15. Disable firewall Note Later we can change rules to just allow port 80 and 443 through
systemctl stop firewalld
systemctl disable firewalld
DisableFirewall
16. Finish Wordpress set up through browser.
Enter the Ip you used on the network configuration into a browser.
This will redirect you to the wordpress admin page.
WordPressInstallScreen
17. Enter your wordpress information
Title
Admin username
Password
Email
Click Install Wordpress
WordPressConfigure
18. The completion screen will show up and you will be ready to start admining your new site.
Success
19. After Login you will be taken to the Wordpress Admin screen
Dashboard

12 comments:


  1. Great blog.you put Good stuff.All the topics were explained briefly.so quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.Any coures related details learn...
    Oracle course in chennai

    ReplyDelete
  2. Thanks for sharing this sort of remarkable article! I found your website is best for my wishes. It consists of wonderful and helpful posts. If anyone has a wordpress web hosting related to this post.

    ReplyDelete
  3. Extremely helpful post. This is my first time i visit here. I discovered such a large number of intriguing stuff in your blog particularly its exchange. Truly its extraordinary article. Keep it up.  seo calgary

    ReplyDelete
  4. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
    ecommerce website development in chennai

    ReplyDelete
  5. Windows 10 is Microsoft’s latest Operating System which is still in Technical Preview phase at the time of this writing. Windows 10 comes with a lot of new features and enhancements. It seems like Microsoft is listening to its users and making changes in Windows 10 that were not liked in Windows 8 plus a lot more. windows 10 32 bit iso

    ReplyDelete
  6. Since WordPress is dynamic, it could slow down your site while trying to update content every now and then from the database. tentų gamyba

    ReplyDelete
  7. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
    ecommerce website development in chennai

    ReplyDelete
  8. Install Oracle Linux 7.1 (follow articles describing cloning a base Linux install with Virtual Box or install the software directly) C_ARSCC_19Q1 exam question

    ReplyDelete
  9. Thank you so much for the post you do. I like your post and all you share with us is up to date and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. clean wordpress site

    ReplyDelete
  10. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. wordpress virus remova

    ReplyDelete