Add

How to install LAMP in Ubuntu


LAMP stands for Linux Apache MySQL PHP (or Perl, Python). There is also a Windows version is called WAMP.

Installing LAMP on Ubuntu is relatively easy. First to install Apache:

sudo apt-get install apache2

To test the installation you can access:  http://127.0.0.1 .There is a default page in Apache.

The next step is installing PHP5:

sudo apt-get install php5 libapache2-mod-php5

sudo /etc/init.d/apache2 restart

The next step is installing MySQL:

sudo apt-get install mysql-server

Setting the root password for mysql:

mysql -u root

mysql>SET PASSWORD FOR ‘root’@'localhost’=PASSWORD(’parola_pt_root’);

Now we will install and phpMyAdmin:

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

For PHP to work together with MySQL, you need to edit php.ini.

sudo gedit /etc/php5/apache2/php.ini

Somewhere in php.ini must be a line that is commented by default (that begins with “;”). You need to delete the character “;” If there’s this line, you must simply add it.

extension=mysql.so

If you use this tutorial, if you have questions or if you want to say your opinion, please do not hesitate to leave a comment below. Thanks! :)

1 Star2 Stars3 Stars4 Stars5 Stars (15 votes, average: 5.00 out of 5)
Loading ... Loading ...

No comments yet.

Respond

get in on the action.

* Required

Rumanian flagItalian flagEnglish flagGerman flagFrench flagSpanish flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagSwedish flagNorwegian flagSerbian flagSlovenian flagUkrainian flagTurkish flagHungarian flag
By N2H

Random Posts Recent Comments

  • admin Says:

    Amigo, Please formulate your question in english if you really need help! Cheers!...

  • Mauricio Gonçalves Says:

    Boa tarde, Amigo eu não consigo add novo user poderia me ajudar? ele fala que o comando não é ...

  • Flossy Says:

    Zubao0 That's really thinking out of the box. Thanks!...

  • Michael Esch Says:

    I used this tutorial to install Komodo Edit 6 on Ubuntu 10.10; I rate your tutorial 5/5 I hope that...

  • admin Says:

    @dan Am rulat aplicatii create in visual basic si in fox sub wine, deci cred ca nu ar trebui sa fie ...

  • dan Says:

    as dori sa imi spuneti daca un prg de conta sub visual basic ruleaza cu wine sub ubuntu intreb deo...

  • admin Says:

    Thank you all for your comments. As I was busy latelly, I haven't answer to your posts. I hope you u...

  • tcpdump Says:

    Hello, I also faced the error "It appears as though you do not have permission to view informatio...

  • Ali Says:

    awesome!!!...

  • Schedule Says:

    You you should make changes to the post subject Split and join files in Ubuntu with lxsplit | EtutsR...

Tag Cloud