HOME
|   Thursday, May 23, 2013
Users Online
1 Guests Online ·

IP Address : 54.224.75.101
Recent Articles
How to Create New User ... ·
Setting Webserver Virtu... ·
Installing FTP Server o... ·
Cara Mudah Password Rec... ·
How to Fix Flash Player... ·
Top Articles
Geronimo ·
Public DNS Server List ... ·
Installing Windows XP o... ·
Youtube Video Downloading ·
Meta Tags Explained ·
Articles Topics
Articles Home » Linux » Installing Apache2 PHP5 in Ubuntu
Installing Apache2 PHP5 in Ubuntu
· by pakdhetimin on 03/11/2008

*Now we can install Apache 2*

Type in terminal/console this command:

sudo apt-get install apache2 apache2-common apache2-doc apache2-mpm-prefork apache2-utils libapr0 libexpat1 ssl-cert

*Now we install PHP 5 (add any php libs you need; although, this covers most.)*

sudo apt-get install autoconf automake1.4 autotools-dev libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php-pear php5-ldap php5-mhash php5-mysql php5-mysqli php5-snmp php5-sqlite php5-xmlrpc php5-xsl php5-imap php5-mcrypt php5-pspell

Edit apache2 configuration, type this command in console:

sudo gedit /etc/apache2/apache2.conf

Locate DirectoryIndex and make sure index.php is in the list. Should look like this:

DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.pl index.xhtml

Close the file, and now type this command in console:

sudo gedit /etc/apache2/ports.conf

and add port 443 for SSL Should look like this:

Listen 80
Listen 443

At the command line again type these commands one at a time in this order (Login as root):

$ a2enmod ssl
$ a2enmod rewrite
$ a2enmod suexec
$ a2enmod include
$ apache2 force-reload

You should be ready to go...

Your server root is here: /var/www/ /var/www/apache2-default/  

For installing MYSQL database server, go to this article.

Comments
Shoutbox

Shoutbox Widget
Access denied for user 'root'@'localhost' (using password: NO)Access denied for user 'root'@'localhost' (using password: NO)Access denied for user 'root'@'localhost' (using password: NO)Access denied for user 'root'@'localhost' (using password: NO)