How to Install LAMP in Ubuntu 14.04

Download How to Install LAMP in Ubuntu 14.04

Post on 22-Nov-2014

53 views

Category:

Education

4 download

Embed Size (px)

DESCRIPTION

Hello Everyone, How to Reset New Root Passwd or Fix Broken Sudo....... Errors that you are getting.......... Error 1:- you may notice an error saying you're not in the sudoers file and the incident is going to be reported. Error 2:- sorry user usuario is not allowed to execute '/usr/bin/passwd root' as root on. Cause and symptoms :- the /etc/sudoers file has been altered to no longer allow users in the admin group to escalate privilege the permissions on the /etc/sudoers file are changed to something other than 0440 a user who should not have been has been taken out of the admin group. By above error and cause can be done by following steps..... To Reset Root Passwd step1 :- Restart your server or desktop step2 :- press continue shift untill boot menu show step3 :- select ubuntu generic second option press Enter step4 :- then select root shell press Enter step5 :- type mount -o rw,remount / step6 :- sudo passwd root or passwd root assign passwd and then repeat again the same passwd Note :- inplace of root you can set your name,hostname any name that u assign during installation OR Login. You can also Create NEW USER step7 :-sudo adduser ubuntu and give new passwd Thanking You

TRANSCRIPT

<ul><li> 1. 1. Installation of Apache</li></ul> <p> 2. Hello Everyone,In this tutorial,let us Install LAMP Server (Apache, MySQL, PHP)on Ubuntu 12.04/14.04 Server. 3. What is Lamp?LAMP is a combination of operating system andopen-source software stack. The acronym LAMPis derived from first letters of Linux, ApacheHTTP Server, MySQL or Maria DB database, andPHP/Perl/Python. 4. What is Apache ?Apache is an open-source multi-platform webserver. It provides a full range of web serverfeatures including CGI, SSL and virtual domains.Website link for Apache: httpd.apache.org/ 5. I'm running all the steps in this tutorial with rootprivileges, so make sure you're logged in asROOT 6. Update Ubuntu repositories by givingthe below command 7. sudo apt-get update &amp; sudo apt-getupgrade -y 8. sudo apt-get install apache2 9. Testing for Apache Working or Nothttp://localhost/orhttp://server-ip-address/. 10. 2. Installation of MySQL 11. What is MySQL ?MySQL is a relational database managementsystem (RDBMS) that runs as a server providingmulti-user access to a number of databases,though SQLite probably has more totalembedded deployments.Website link MySQL: http://www.mysql.com/ 12. sudo apt-get install mysql-server mysql-clientorsudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql 13. You can verify the MySQL server status usingcommandsudo service mysql statusSample output:mysql start/running, process3470 14. 3. Installation of PHP 15. What is PHP ?PHP (recursive acronym for PHP: HypertextPreprocessor) is a widely used open-sourcegeneral purpose scripting language that isespecially suited for web development and canbe embedded into HTML.Website phpMyAdmin: www.phpmyadmin.net 16. sudo apt-get install php5 php5-mysqllibapache2-mod-php5 17. Test PHP Create a sample testphp.php file inApache document root folder.sudo nano /var/www/html/testphp.phpAdd the following lines. 18. Restart apache2 service:sudo service apache2 restartor/etc/init.d/apache2 restart 19. Testing testphp(e.g. localhost:testphp orhttp://192.168.0.100/testphp.php)If you want to install all php modules enter thecommandsudo apt-get install php* and restart theapache2 service. 20. To verify the modules, open web browser andnavigate tohttp://server-ip-address/testphp.php.You will able to see all installed php modules 21. 3. Installation of phpMyAdmin 22. phpMyAdmin is a free open-source webinterface tool used to manage your MySQLdatabases. It is available in the Official Debianrepositories. 23. sudo apt-get install phpmyadmin 24. Web server to reconfigure automatically:</p>