You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This is a mock MOC website on wordpress. After the set up, almost all administration can be done through its web frontend. In order to run wordpress locally we need L(inux)AMP or M(ac)AMP stack.(A)PACHE, (M)ySQL, (P)HP. Follow the steps to get wordpress installed locally
This git repo consists of the theme used to create the website. If you already have wordpress running locally skip to step 5.
Now allow Apache through firewall in case fireall is running on your system. You might need to run the command with sudo privilages. Simply put sudo before the commands if needed. You'll need the password for sudo user.
Now run MySQL security script to set the root password, remove anonymous users, remove test databases,and disable remote login. If root password is already set enter the password instead of enter and do the rest of the steps. The script and the steps will be the same for both fedora and Mac.
mysql_secure_installation Enter current password for root (enter for none): Press ENTER ... Set root password? [Y/n] <y> New password: <STRONGPASSWORD> Re-enter new password: STRONGPASSWORD ... Remove anonymous users? [Y/n] <y>. ... Disallow root login remotely? [Y/n] <y> ... Remove test database and access to it? [Y/n] <y> ... Reload privilege tables now? [Y/n] <y>
Login to MariaDB using the password set in step 2.
mysql -u root -p
Then use the following command to create Wordpress database
create database mocsite;
Create Database user with all the privileges granted. After that, reload grant tables and quit.User=Admin
grant all privileges on mocsite.* to admin@localhost identified by 'PASSWORD'; flush privileges; quit;
STEP # 5 Configure database for Wordpress website
Here you'll have to go into the wp-config.php file of wordpress to configure the database you made in the above steps.Navigate to wp-config.php. The path should be /wordpress/wp-config.php
/** The name of the database for WordPress */ define('DB_NAME', 'database_name_here'); [Change the database name made above. "mocsite" /** MySQL database username */ define('DB_USER', 'username_here'); [Change the user name= Admin] /** MySQL database password */ define('DB_PASSWORD', 'password_here'); [Change the password] /** MySQL hostname */ define('DB_HOST', 'localhost'); [No change needed]
STEP # 6 CLONE THIS GITHUB REPO IN YOUR WP-THEME
Here you'll have to go to themes directory of wordpress and clone this github reposiroty there. The path should be /wordpress/wp-content/themes
Follow the steps to create a site. You now have a locally running wordpress.Choose the theme MOC-pipeline and now you are successfully running the latest MOC-WEBSITE