Lamp Ubuntu

Download Lamp Ubuntu

Post on 27-Nov-2014

125 views

Category:

Documents

5 download

Embed Size (px)

TRANSCRIPT

<p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>Register</p> <p>Login</p> <p>ContributeSearch</p> <p>Subscribe</p> <p>RSS</p> <p>Howtos</p> <p>Forums</p> <p>Contribute</p> <p>Subscribe</p> <p>ISPCong</p> <p>FAQForge</p> <p>News</p> <p>Options For This HowtoFree Support Paid Support</p> <p>Navigation[+] Expand [-] Collapse</p> <p>Howtos Linux Android CentOS Debian Fedora Kernel Mandriva PCLinuxOS SuSE Ubuntu Web Server Apache Cherokee Lighttpd nginx Backup Control Panels ISPConfig DNS BIND MyDNS PowerDNS djbdns Desktop Email Anti-Spam/Virus Postfix FTP High-Availability Monitoring MySQL Programming C/C++ PHP Samba Security Anti-Spam/Virus Storage</p> <p>1 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...30day-trial</p> <p>Virtualization KVM OpenVZ VMware VirtualBox Xen Other FreeBSD Commercial Mini-Howtos Forums Contribute Subscription Login Site Map/RSS Feeds</p> <p>User loginUsername: Password:</p> <p>Remember Me?</p> <p>Log inCreate a new account Request new password</p> <p>FacebookFind us on Facebook</p> <p>HowtoForgeLikeFacebook social plugin</p> <p>Who's onlineThere are currently 10 users and 2400 guests online.</p> <p>HowtoForge ForumsHow do you create a boot up cd with</p> <p>2 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...Linux? Email not function on Centos5.6 x64 SquirrelMail login error Opensource NAS/San deployment Install Bind after ISPConfig3 Centos, Fedora, Debian or Mandriva .htaccess + mod_rewrite automatic domain expiry reminder to clients Mail Warn Log ISPConfig 3 dns doesn't work..</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>News7 of the Best Free Linux GPS Tools Tweeting From The Linux Desktop With Turpial Tweeting From The Linux Desktop With Turpial This week at LWN: Mark Shuttleworth on companies and free software Linux Mint 11 ships with retro GNOME 2.32 UI Attachmate CEO: Were Absolutely Committed to SUSE Linux 64-bit OS written entirely in assembly As netbook sales fall, Intel will slash Atom pricing As netbook sales fall, Intel will slash Atom pricing KDE Commit Digest for 22 May 2011 more</p> <p>Recent commentsRe: from where can i download 13 hours 12 min ago Good chance to get data off partitions with errors 13 hours 21 min ago</p> <p>3 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...Re: Re: Re: Re: Re: Re: Re: about this work 17 hours 59 min ago busy 18 hours 40 min ago Apache2 error after installing ISPConfig3 21 hours 50 min ago IMAP 1 day 2 hours ago Re: pvmove results in error 1 day 3 hours ago Re: Re: Added shell script 1 day 7 hours ago Re: I installed alfresco from 1 day 8 hours ago Excellent article on how to configure SME as a file server. 1 day 11 hours ago</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>NewsletterSubscribe to HowtoForge Newsletter and stay informed about our latest HOWTOs and projects. enter email address</p> <p>Submit(To unsubscribe from our newsletter, visit this link.)English | Deutsch | Site Map/RSS Feeds | Advertise</p> <p>You are here:</p> <p>Home Howtos Linux Ubuntu Installing LAMP On Ubuntu For Newbies</p> <p>Installing LAMP On Ubuntu For Newbies</p> <p>Do you like HowtoForge? Please consider supporting us by becoming a subscriber.Submitted by Cargoship (Contact Author) (Forums) on Fri, 2007-07-13 15:57. :: Ubuntu</p> <p>4 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>Like</p> <p>80</p> <p>Installing LAMP On Ubuntu For NewbiesIn this guide I will show you how to install a LAMP system. LAMP stands for Linux, Apache, MySQL, PHP. The guide is intended to help those who have very little knowlegde of using Linux.</p> <p>Install ApacheTo start o we will install Apache. 1. Open up the Terminal (Applications &gt; Accessories &gt; Terminal). 2. Copy/Paste the following line of code into Terminal and then press enter: sudo apt-get install apache2 3. The Terminal will then ask you for you're password, type it and then press enter.</p> <p>Testing ApacheTo make sure everything installed correctly we will now test Apache to ensure it is working properly. 1. Open up any web browser and then enter the following into the web address: http://localhost/ You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you!</p> <p>Install PHPIn this part we will install PHP 5. Step 1. Again open up the Terminal (Applications &gt; Accessories &gt; Terminal). Step 2. Copy/Paste the following line into Terminal and press enter: sudo apt-get install php5 libapache2-mod-php5 Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this: sudo /etc/init.d/apache2 restart</p> <p>Test PHPTo ensure there are no issues with PHP let's give it a quick test run. Step 1. In the terminal copy/paste the following line:</p> <p>5 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>sudo gedit /var/www/testphp.php This will open up a le called phptest.php. Step 2. Copy/Paste this line into the phptest le: Step 3. Save and close the le. Step 4. Now open you're web browser and type the following into the web address: http://localhost/testphp.php The page should look like this: Test PHP Page</p> <p>Congrats you have now installed both Apache and PHP!</p> <p>Install MySQLTo nish this guide up we will install MySQL. (Note - Out of Apache and PHP, MySQL is the most dicult to set up. I will provide some great resources for anyone having trouble at the end of this guide.) Step 1. Once again open up the amazing Terminal and then copy/paste this line: sudo apt-get install mysql-server Step 2 (optional). In order for other computers on your network to view the server you have created, you must rst edit the "Bind Address". Begin by opening up Terminal to edit the my.cnf le. gksudo gedit /etc/mysql/my.cnf Change the line bind-address = 127.0.0.1</p> <p>6 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>And change the 127.0.0.1 to your IP address. Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal: mysql -u root Following that copy/paste this line: mysql&gt; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); (Make sure to change yourpassword to a password of your choice.) Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a le entitled php.ini open it type the following: gksudo gedit /etc/php5/apache2/php.ini Now we are going to have to uncomment the following line by taking out the semicolon (;). Change this line: ;extension=mysql.so To look like this: extension=mysql.so Now just restart Apache and you are all set! sudo /etc/init.d/apache2 restart</p> <p>The EndQuick note to anyone who encountered problems with setting up the MySQL password, please refer to this page: MysqlPasswordReset I applaud everyone who has taken the time to read this guide. This guide is also my rst ever so I would love to hear back from the public on what you guys think! Just don't be too harsh. ;) If you have questions about installing any part of LAMP just drop them in the comment box and I will do my best to help you out.</p> <p>Copyright 2007 Cargoship All Rights Reserved. add comment | view as pdf | print |</p> <p>7 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>Related TutorialsThe Perfect Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) How To Set Up An Ubuntu/Debian LAMP Server Ubuntu LAMP Server With Torrentux In VMware LAMP Installation On Ubuntu 6.06 For Linux Noobs</p> <p>Please do not use the comment function to ask for help! If you need help, please use our forum. Comments will be published after administrator approval.</p> <p>this guideSubmitted by jonathan young (not registered) on Thu, 2011-05-26 01:20. just wanted to say this is one of the best, most concise and easy to follow guides for doing something incredibly complex, kudos to you folks! thank you!!!</p> <p>reply |</p> <p>One wordSubmitted by kuberprok (not registered) on Wed, 2011-05-18 20:02. Brilliant!</p> <p>reply |</p> <p>Great walk-through, worksSubmitted by Anonymous (not registered) on Thu, 2011-05-12 21:17. Great walk-through, works great! Thanks</p> <p>reply |</p> <p>like having a bottle of beerSubmitted by Pramod (not registered) on Tue, 2011-05-10 19:22. very easy yet very useful thanks a lot :)</p> <p>reply |</p> <p>Very good post. It workedSubmitted by Madhawa (not registered) on Mon, 2011-05-09 07:40. Very good post. It worked for me. Thank you.</p> <p>reply |</p> <p>8 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>easy LAMPSubmitted by tiwigi (not registered) on Sat, 2011-05-07 17:18. thank you, it was totally no pain ;) (in ubuntu 11.04 no need for last steps with mysql extension ... anyway works like a charm)</p> <p>reply |</p> <p>Great job!Submitted by Goga (not registered) on Sat, 2011-04-30 21:43. Great job! Very easy to follow, and straight to the point! Thanks!</p> <p>reply |</p> <p>neat elegant. very well doneSubmitted by Anonymous (not registered) on Sun, 2011-04-17 13:36. neat elegant. very well done indeed!</p> <p>reply |</p> <p>wat a siteSubmitted by dexter (not registered) on Sun, 2011-04-10 15:39. wat a site !!!!!! superb!!!! thnx a lot</p> <p>reply |</p> <p>Lamp installationSubmitted by Ges Scott (not registered) on Tue, 2011-04-05 19:12. Excellent! Thank you so much. You're tutorial is straightforward and so easy to follow. After quite a number of years using WAMP on windows I migrated to Linux using Ubuntu. I was very concerned about using/conguring my development environment. I had searched around for a way to use LAMP. I found you! Everything was/is up and running within half hour just by pasting your commands. Once again thank you very much. More tutorials like this from you please! Ges Scott</p> <p>reply |</p> <p>Thanks a bunchSubmitted by Arun Prasad (not registered) on Thu, 2011-03-31 19:55. It was very helpful. Thanks a lot for this wonderful information. You made my day. :)</p> <p>reply |</p> <p>Awesome GuideSubmitted by Shammancer (not registered) on Thu, 2011-03-31 05:18.</p> <p>9 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>This guide is right at the point and tells you exactly what you need to do. Keep up the good work.</p> <p>reply |</p> <p>thanks a lot !!!Submitted by Anonymous (not registered) on Tue, 2011-03-29 17:11. thanks a lot !!!</p> <p>reply |</p> <p>Excellent!Submitted by Anonymous (not registered) on Fri, 2011-03-25 18:38. This guide was invaluable, my mother in law sponsors a student where I live, and the student needs a machine as she can't aord one*. I have resurrected a 7 year old laptop with XUbuntu into a reasonably decent dev environment, so your altruism has helped people helping others, good karma :-). Went as smoothly as ice, I'm a .net dev by day and I love Linux, but my job keeps me pretty tied to MS operating systems. I only use Linux under VMs to keep my hand in. When my wife buys herself a new lappie, I have plans for the old one :evil grin: * This is why I've remained anonymous.</p> <p>reply |</p> <p>Still an excellent guide, nearly four years on.Submitted by David (not registered) on Thu, 2011-03-24 08:40. From fresh ubuntu installation to running phpmyadmin in about 10 minutes! Thanks</p> <p>reply |</p> <p>Thanks!Submitted by bcow (not registered) on Mon, 2011-03-21 20:24. Excellent guide! Thank you for taking the time to make it!</p> <p>reply |</p> <p>http://localhost/phpmyadmin----showing error 404Submitted by RUBY (not registered) on Sun, 2011-03-20 17:21. recently i switched over to linux mint 10 julia and am facing lot of problem with LAMP INSTALLATION.thati followed up the instructions given in the link http://www.howtoforge.com/ubuntu_lamp_for_newbies and followed each step as mentioned but i skipped the following section -----------------------------------------Step 2 (optional). In order for other computers on your network to view the server you have created, you must rst edit the "Bind Address". Begin by opening up Terminal to edit the my.cnf le. gksudo gedit /etc/mysql/my.cnf Change the line bind-address = 127.0.0.1 And change the 127.0.0.1 to your IP address. -----------------------------------------------</p> <p>10 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>as i am working only in my laptop computer and i don't have ip too; MOREOVER DIALOGUE BOX ASKED ME IF I WANTED TO SET UP A DATABASE NAMED some conf.....(i don't remember clearly) which i said no to;;as i d installed my sql earlier itself;; it showed a couple of dialogue boxes asking to enter your password-which i did;;then the rest of commands;;showed the following errors in the terminal COMMAND-mysql -u root ERROR-ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) COMMAND:mysql&gt; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); ERROR:mysql&gt; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');</p> <p>now that i have restartted the server and server is running;;; it shows the proper:IT WORKS message for::::http://localhost/ and it does show the proper conguration for http://localhost/testph.php</p> <p>but for http://localhost/phpmyadmin its showing ----Not Found The requested URL /phpmyadmin was not found on this server. Apache/2.2.16 (Ubuntu) Server at localhost Port 80----------</p> <p>SOMEBODY PLEASE HELP</p> <p>reply |</p> <p>Re: http://localhost/phpmyadmin----showing error 404Submitted by walker (not registered) on Fri, 2011-04-15 08:17. well, i had the same problem and, i solved it with: use the command like this: mysql -u root -p after that you have to type your password, that is already exist if you add one before. its worked to me ne.</p> <p>reply |</p> <p>Re: http://localhost/phpmyadmin----showing error 404Submitted by Gosmo (not registered) on Tue, 2011-03-22 16:02.</p> <p>11 of 25</p> <p>05/28/2011 05:36 PM</p> <p>Installing LAMP On Ubuntu For Newbies | Howto...</p> <p>http://www.howtoforge.com/ubuntu_lamp_for_ne...</p> <p>You have to follow the next instructions: To set up under Apache all you need to do is include the following line in /etc/apache2/apache2.conf, rst type the following command to open up this le:</p> <p>gksudo gedit /etc/apache2/apache2.confAdd the following line of code inside apache2.conf: Include /etc/phpmyadmin/apache.conf Now restart Apache:</p> <p>sudo /etc/init.d/apache2 restartreply |</p> <p>Re: Re: http://localhost/phpmyadmin----showing error 404...</p>

Recommended

View more >