Home Linux How to install Apache together with PHP5 on Ubuntu?
 
 
 

How to install Apache together with PHP5 on Ubuntu?

PDF Print E-mail

Question: How to install Apache together with PHP5 on Ubuntu? This becomes very handy if you wish to do some PHP development on Ubuntu.

 

Answer:

  1. Open a new terminal window (CLI)
  2. Execute the following commands:
     
    sudo apt-get install apache2
    sudo apt-get install php5
    sudo apt-get install libapache2-mod-php5
     
  3. Now we need to restart Apache so that our changes can take effect. There are two commands for you to choose from
    sudo /etc/init.d/apache2 restart
    or

    sudo service apache2 restart
+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!