Skip to content
Tags

how to Install PHP5 and Apache on Ubuntu

July 2, 2010

If you are working any kind of PHP development, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu box.ubuntu

First, you’ll want to add the extra repositories to Ubuntu’s sources.list file.

By running Below Command

# apt-get update

From a command root shell, mean as a root super user you will run the following commands:

# apt-get install apache2

# apt-get install php5

# apt-get install libapache2-mod-php5

# /etc/init.d/apache2 restart

Note that if apache is already installed you can omit the first line. Your web files will now be found in /var/www/

Advertisements

From → Apache, Linux

One Comment
  1. seo place permalink

    After looking into a few of the articles on your
    web site, I truly like your technique of writing a blog.

    I saved it to my bookmark webpage list and will be checking back in the near future.
    Please visit my web site as well and let me know what you think.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: