Apache

From wiki
Jump to: navigation, search

Contents

Installing Apache

- sudo apt-get install mysql-server mysql-client
- sudo apt-get install apache2
- sudo apt-get install php5 libapache2-mod-php5

Restart the apache service with:
- sudo service apache2 restart

Testing PHP5 / Getting Details About Your PHP5 Installation

Create a info.php to test to see if apache and php works
Create a info.php
- vi /var/www/info.php

Inside the new document called Info.php
- <?php phpinfo(); ?>

Getting MySQL Support In PHP5

apt-get install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Restart Apache:
sudo service apache2 restart


Installing phpMyAdmin

apt-get install phpmyadmin

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox