Giter Club home page Giter Club logo

ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl's Introduction

ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl

A Shell Script to Auto install LAMP(Apache,MySQL,Php),PhpMyAdmin,Kubuntu Desktop,Wine,Wordpress,SSL Certificate

This is a Shell Script (Bash) with & without UI (user interface) to automatically install all above packages for Ubuntu 18.04/Bionic O.S.

If you are using an older version of Ubuntu like 16.04 or 14.04, then Remote Desktop(XRDP) facility would not work for you.

With Kubuntu-desktop, the script will also install WINE package to run Windows apps on your Linux system.

Letsencrypt.org verifies SSL and initially, it would provide a 3-month Certificate. The certificate would be auto-renewed after every 60 days by "Certbot" app, which will also be installed in your system :)


Requirements

A SSH client such as putty

A VPS or Dedicated server with Ubuntu 18.04(preferred) OS Installed.

Either should have access of root user OR run with su (super user)


Optional

After Downloading "mediabots_ui.sh" file via wget, one can change Default PhpMyAdmin & MySQL password to his/her own choice.

Default MySQL user 'root' password is: mysql_PASSWORD And Default 'phpmyadmin' password is: phpmyadmin_PASSWORD

COMMAND TO CHNAGE DEFAULT PASSWORDS:

sudo sed -i 's/phpmyadmin_PASSWORD/NewPassword/g' mediabots_ui.sh

sudo sed -i 's/mysql_PASSWORD/NewPassword/g' mediabots_ui.sh

Run them before running the Script.


How to Run the Script

Just run below four commands one after another :

su

wget https://raw.githubusercontent.com/mediabots/ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl/master/mediabots_ui.sh

chmod +x mediabots_ui.sh

./mediabots_ui.sh

If you opt for Kubuntu-Desktop installation, then it would take around 1 hr 15 mins to complete all the process.

Otherwise, it would take more or less 10 minutes.


Security

Since this script would pass your MySQL & PhpMyAdmin password through command lines

So it is a good practice to change those password after processing the script.

Just go to http://SITE_IP_OR_URL/phpmyadmin and log in with default/chosen passwords.

MySQL user id is root

PhpMyAdmin user id is phpmyadmin

After logged into PHPMyAdmin, click on "user accounts". Then click on "Edit privileges" link from Action column corresponding to User name root & phpmyadmin (one by one). After that click on "Change password", put a secure password. Finally, click on the 'Go' button.

All set :)

Demo Video

Auto installation of LAMP(Apache,MySQL,Php),PhpMyAdmin,Kubuntu Remote Desktop,Wordpress,SSL Certificate

Conclusion

The script would take care of all common issues of Wordpress installation, such as Directory & User Permission, Redirection/Rewrite rules, .htaccess, etc.

The script would create an individual directory for each domain name such as/var/www/html/YourDomainName

Moreover, it would also create an individual host file for each domain name such as/etc/apache2/sites-available/YourDomainName.conf

That offers you to add the unlimited number of websites in your Server.

The Certbot would automatically renew SSL for your domain name. So you don't have to worry about that thing too.

Reference

askubuntu.com, stackexchange.com, stackoverflow.com, ubuntuforums.com, Lynda.com,eff.org, tecmint.com

ubuntu_-_lamp-kubuntu_desktop-wordpress-ssl's People

Contributors

mediabots avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.