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

Uploading images to Cloudinary using Rails and Carrierwave

Sometimes we need to upload our images to cloud storage like Amazon S3, but like me, I have a limitation because I don’t have any credit card or paypal account. Cloudinary gives us a chance to store our images with free plan (and also no... Continue →