Setting WebServer Ubuntu + CodeIgniter


Install package php & apache2

root@webserver:/etc/apache2# dpkg-query -l | grep php
ii libapache2-mod-php5 5.3.10-1ubuntu3.4 server-side, HTML-embedded scripting language (Apache 2 module)
ii php-pear 5.3.10-1ubuntu3.4 PEAR – PHP Extension and Application Repository
ii php5 5.3.10-1ubuntu3.4 server-side, HTML-embedded scripting language (metapackage)
ii php5-cgi 5.3.10-1ubuntu3.4 server-side, HTML-embedded scripting language (CGI binary)
ii php5-cli 5.3.10-1ubuntu3.4 command-line interpreter for the php5 scripting language
ii php5-common 5.3.10-1ubuntu3.4 Common files for packages built from the php5 source
ii php5-curl 5.3.10-1ubuntu3.4 CURL module for php5
ii php5-dev 5.3.10-1ubuntu3.4 Files for PHP5 module development
ii php5-fpm 5.3.10-1ubuntu3.4 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php5-gd 5.3.10-1ubuntu3.4 GD module for php5
ii php5-imagick 3.1.0~rc1-1 ImageMagick module for php5
ii php5-imap 5.3.5-0ubuntu2 IMAP module for php5
ii php5-intl 5.3.10-1ubuntu3.4 internationalisation module for php5
ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt module for php5
ii php5-memcache 3.0.6-1 memcache extension module for PHP5
ii php5-ming 1:0.4.3-1.2ubuntu2 Ming module for php5
ii php5-mysql 5.3.10-1ubuntu3.4 MySQL module for php5
ii php5-ps 1.3.6-6 ps module for PHP 5
ii php5-pspell 5.3.10-1ubuntu3.4 pspell module for php5
ii php5-recode 5.3.10-1ubuntu3.4 recode module for php5
ii php5-snmp 5.3.10-1ubuntu3.4 SNMP module for php5
ii php5-sqlite 5.3.10-1ubuntu3.4 SQLite module for php5
ii php5-tidy 5.3.10-1ubuntu3.4 tidy module for php5
ii php5-xcache 1.3.2-1 Fast, stable PHP opcode cacher
ii php5-xmlrpc 5.3.10-1ubuntu3.4 XML-RPC module for php5
ii php5-xsl 5.3.10-1ubuntu3.4 XSL module for php5
root@webserver:/etc/apache2#

root@webserver:/etc/apache2# dpkg-query -l | grep apache2
ii apache2 2.2.22-1ubuntu1.2 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.22-1ubuntu1.2 Apache HTTP Server – traditional non-threaded model
ii apache2-utils 2.2.22-1ubuntu1.2 utility programs for webservers
ii apache2.2-bin 2.2.22-1ubuntu1.2 Apache HTTP Server common binary files
ii apache2.2-common 2.2.22-1ubuntu1.2 Apache HTTP Server common files
ii libapache2-mod-php5 5.3.10-1ubuntu3.4 server-side, HTML-embedded scripting language (Apache 2 module)

 

root@webserver:/etc/apache2# vim sites-available/default

<Directory />
Options FollowSymLinks
#Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

a2enmod rewrite

root@webserver:/etc/apache2# /etc/init.d/apache2 restart
* Restarting web server apache2 … waiting [ OK ]
root@webserver:/etc/apache2#

 

Advertisements

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

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: