Installing PHP, MySQL, phpmyadmin nginx on Ubuntu Server (part 2)

Next step, we are going to install phpmyadmin on ubuntu server. Type this command to install on your server sudo apt-get install phpmyadmin Please follow the instruction and if you find an option to choose the server (apache/lighthttpd), just choose one of them as you want.

After that, We can use one of the two options here to make your phpmyadmin can be accessed from browser.

The first option #

After completed the installation, we have to make a symlink from phpmyadmin directory to nginx root directory by typing this command sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/www/. Done! You’ve just finished your phpmyadmin installation, you can access it on your browser by using your server url http://your-ip-or-domain/phpmyadmin.

The second option #

After completed the installation, we have to change the nginx configuration. Open /etc/nginx/sites-available/default and add these following lines in your server block.

# .... begin phpmyadmin block

location /phpmyadmin/ {
    alias /usr/share/phpmyadmin;
}

# ... end of phpmyadmin block

then restart your nginx sudo /etc/init.d/nginx restart and access it from your browser.

I hope it can helps your work!!

 
0
Kudos
 
0
Kudos

Now read this

Using High Voltage to Serve Static Page Without Database and Controller in Rails App

When we create an app that provide some static pages, sometimes we use a resource called Page, save it in the table and call it from controller. Now, we have an alternative to make it without a database even without a controller by using... Continue →