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.
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.
- Take the LAMPP in home folder
- Open terminal and write
sudo su
- Extract the LAMPP using this command
tar xvfz xamp-linux-version.tar.gz -C /opt
- Change htdocs folder permission, so we don't need root permission when edit the website
chmod -R 777 /opt/lampp/htdocs
- To start the service write
sudo /opt/lampp/lampp start
- To stop the service write
sudo /opt/lampp/lampp stop
- 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 |
- Create a database name, for example mmbasik
- I prefer to add new user, check all previlege and go.
add new user |
check all previlege |
0 comments