Install Lampp and Wordpress on Ubuntu

8:22 AM

As web developer we must have server application in our machine. We can't using hosting server every time. Because we need internet connection and will take long time when we update many code. If we using localhost we can change our web so fast. After finish, we just upload our wen on localhost to our hosting.

Before we start develop website on localhost, we need to get an server application. I am using LAMPP for app server and using wordpress for the website engine. So we need download them before develop it.
After download, we need to install LAMPP first before wordpress. Because wordpress will be run in localhost server. There is step by step installing LAMPP untill wordpress.

LAMPP Installation.

  1. Take the LAMPP in home folder
  2. Open terminal and write
    sudo su
  3. Extract the LAMPP using this command
     tar xvfz xamp-linux-version.tar.gz -C /opt 
  4. Change htdocs folder permission, so we don't need root permission when edit the website
    chmod -R 777 /opt/lampp/htdocs
  5. To start the service write 
    sudo /opt/lampp/lampp start
  6. To stop the service write 
    sudo /opt/lampp/lampp stop
  7. To restart the service write 
    sudo /opt/lampp/lampp restart
     

Create a Database

Wordpress need database, we must create a database before install it. To create database, we need to start lampp service.
  • Check that service is start with open localhost url in a browser.
  • You will get XAMPP logo if the service work properly
  • Open localhost/phpmyadmin
phpmyadmin
phpmyadmin
  • Create a database name, for example mmbasik
  • I prefer to add new user, check all previlege and go. 
add new user
add new user
check all previlege
check all previlege

Wordpress Installation


  • When database ready, open your wordpress folder with browser. For example localhost/wordpress
  • You must fill the form looks below
set database connection
set database connection
  • If you get error notification "Sorry, but I can't write the wp-config.php file", change the wordpress folder permission with
    chmod -R 777 /opt/lampp/htdocs/wpfolder
common problem
common problem

You Might Also Like

0 comments

Popular Posts

Subscribe