Install apache2 + php5 + mysql + ssl

Posted: February 25, 2009 in Debian

Benda yang selalu aku lupoooo nok buat…

Step 1 : install apache2 + php5

aptitude  install apache2 php5 libapache2-mod-php5 php5-gd

a2enmod rewrite

/etc/init.d/apache2 force-reload

Step 2 : install eAccelerator

apt-get install build-essential php5-dev

wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2

tar xvfj eaccelerator-0.9.5.2.tar.bz2

cd eaccelerator-0.9.5.2

phpize

./configure

make

make install

nano  /etc/php5/conf.d/eaccelerator.ini <——— masukkan code ini

extension=”eaccelerator.so”

eaccelerator.shm_size=”16″

eaccelerator.cache_dir=”/var/cache/eaccelerator”

eaccelerator.enable=”1″

eaccelerator.optimizer=”1″

eaccelerator.check_mtime=”1″

eaccelerator.debug=”0″

eaccelerator.filter=””

eaccelerator.shm_max=”0″

eaccelerator.shm_ttl=”0″

eaccelerator.shm_prune_period=”0″

eaccelerator.shm_only=”0″

eaccelerator.compress=”1″

eaccelerator.compress_level=”9″

pah tuh

mkdir -p /var/cache/eaccelerator

chmod 0777 /var/cache/eaccelerator

/etc/init.d/apache2 restart

Step 3 : install MySQL

aptitude install mysql-server mysql-client php5-mysql

Step 4 : install SSL

aptitude install openssl ssl-cert

aptitude install libapache2-mod-php5 php5-cli php5-common php5-cgi

a2enmod ssl

/etc/init.d/apache2 force-reload

openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/ssl/apache.pem -keyout

chmod 600 /etc/apache2/ssl/apache.pem

pico /etc/apache2/sites-available/default

change :

NameVirtualHost *

to :

NameVirtualHost *:80

NameVirtualHost *:443

than put this line in <virtualhost>:

SSLEngine on

SSLCertificateFile /etc/apache2/ssl/apache.pem

SSLCertificateKeyFile /etc/apache2/ssl/apache.pem

than change port in apache2

pico /etc/apache2/ports.conf

Listen 443

/etc/init.d/apache2 reload


Step 5 : install cURL

aptitude  install php5-curl

/etc/init.d/apache2 reload

Comments
  1. […] ( Older post : https://panaharjuna.wordpress.com/2009/02/25/install-apache2-php5-mysql-ssl/) […]

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