Home » Categories » Multiple Categories |
How To Install Wordpress on Arch Linux |
Article Number: 215 | Rating: Unrated | Last Updated: Sun, Dec 29, 2013 at 6:22 AM
|
About WordpressWordpress is a free and open source website and blogging tool that uses php and MySQL. It was created in 2003 and has since then expanded to manage 22% of all the new websites created and has over 20,000 plugins to customize its functionality.Step One—Download WordPressMake sure that wget is installed on your server:sudo pacman -S wgetWe can download Wordpress straight from their website: wget http://wordpress.org/latest.tar.gzThis command will download the zipped wordpress package straight to your user's home directory. You can unzip it the the next line: tar -xzvf latest.tar.gz Step Two—Create the WordPress Database and UserAfter we unzip the wordpress files, they will be in a directory called wordpress in the home directory.Now we need to switch gears for a moment and create a new MySQL directory for wordpress. Go ahead and log into the MySQL Shell: mysql -u root -pLogin using your MySQL root password, and then we need to create a wordpress database, a user in that database, and give that user a new password. Keep in mind that all MySQL commands must end with semi-colon. First, let's make the database (I'm calling mine wordpress for simplicity's sake; feel free to give it whatever name you choose): CREATE DATABASE wordpress; Query OK, 1 row affected (0.00 sec)Then we need to create the new user. You can replace the database, name, and password, with whatever you prefer: CREATE USER wordpressuser@localhost; Query OK, 0 rows affected (0.00 sec)Set the password for your new user: SET PASSWORD FOR wordpressuser@localhost= PASSWORD("password"); Query OK, 0 rows affected (0.00 sec)Finish up by granting all privileges to the new user. Without this command, the wordpress installer will not be able to start up: GRANT ALL PRIVILEGES ON wordpress.* TO wordpressuser@localhost IDENTIFIED BY 'password'; Query OK, 0 rows affected (0.00 sec)Then refresh MySQL: FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)Exit out of the MySQL shell: exit Step Three—Setup the WordPress ConfigurationThe first step to is to copy the sample wordpress configuration file, located in the wordpress directory, into a new file which we will edit, creating a new usable wordpress config:cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.phpThen open the wordpress config: sudo nano ~/wordpress/wp-config.phpFind the section that contains the field below and substitute in the correct name for your database, username, and password: // ** MySQL settings - You can get this info from your web host ** // /** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'wordpressuser'); /** MySQL database password */ define('DB_PASSWORD', 'password');Save and Exit. Step Four—Copy the FilesWe are almost done uploading Wordpress to the server. The final move that remains is to transfer the unzipped WordPress files to the website's root directory.sudo cp -r ~/wordpress/* /srv/http/Additionally, make sure that PHP can connect to MySQL. Open up the php.ini file: sudo nano /etc/php/php.iniFind the line and remove the semi-colon: ;extension=mysql.soThe line should now look like this: extension=mysql.soRestart Apache: sudo /etc/rc.d/httpd restartUPDATE: Since the introduction of systemd, the proper way of restarting Apache is by running the following command: sudo systemctl restart httpdFrom here, WordPress has its own easy to follow installation form online. Step Five—RESULTS: Access the WordPress InstallationOnce that is all done, the wordpress online installation page is up and waiting for you:Access the page by adding /wp-admin/install.php to your site's domain or IP address (eg. example.com/wp-admin/install.php) and fill out the short online form |
Attachments
There are no attachments for this article.
|
How To Create Data Queries in PostgreSQL By Using the Select Command
Viewed 14374 times since Mon, Dec 30, 2013
How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Debian
Viewed 7756 times since Thu, Dec 26, 2013
How To Install Wordpress on Ubuntu 12.04
Viewed 2610 times since Tue, Dec 24, 2013
How To Write a Linux Daemon with Node.js
Viewed 10188 times since Sun, Dec 29, 2013
How To Install Z Shell (zsh) on a Cloud Server
Viewed 2676 times since Fri, Dec 27, 2013
How To Use a Simple Bash Script To Restart Server Programs
Viewed 3237 times since Fri, Dec 27, 2013
How To Create, Remove, & Manage Tables in PostgreSQL on a Cloud Server
Viewed 3282 times since Mon, Dec 30, 2013
How To Set Up Apache Virtual Hosts on Ubuntu 12.04 LTS
Viewed 3512 times since Mon, Dec 23, 2013
How To Set Up Apache Virtual Hosts on Debian 7
Viewed 3272 times since Fri, Dec 27, 2013
How To Install nginx on Ubuntu 12.04 LTS
Viewed 2792 times since Tue, Dec 24, 2013
|