Install Apache,PHP,dan Mysql (1)

Kemaren sih udah pernah nyoba,sekarang nyoba lagi. Untuk paket-paket installasi,saya download yang terbaru.
1. Apache –> httpd-2.2.9.tar.gz
2. PHP –> php-5.2.6.tar.gz
3. Mysql –> klo yang ini saya install lewat Port, karena pada saat installasi pake yg terbaru, eh error deh.. Untuk Mysql saya liat di pkg_info –>mysql-server-5.0.2
4. OSnya –> FreeBSD 5.4
Paket-paket tersebut saya simpan pada /home/rody

A. Install Apache
ns-rody# cd /home/rody
ns-rody# tar -xzvf httpd-2.2.9.tar.gz
ns-rody# cd httpd-2.2.9

ns-rody# ./configure –prefix=/usr/local/apache2 –enable-rewrite –enable-dav –enable-vhost-alias –with-included-apr –enable-ssl –with-ssl=/usr/local  && make && make install

B. Install Mysql

ns-rody# cd /usr/ports/databases/mysql50-server/
ns-rody# make install clean
saya coba jalankan mysql-nya :
ns-rody# /usr/local/bin/mysqld_safe –user=root &
Lalu saya tambahkan password pada user root
ns-rody# /usr/local/bin/mysqladmin -u root password blablabla
ns-rody# /usr/local/bin/mysqladmin -u root -h ns-rody.rody-ngoprek.net password blablabla

C. Install PHP
ns-rody# cd /home/rody
ns-rody# tar -xzvf php-5.2.6.tar.gz
ns-rody# cd php-5.2.6
ns-rody# ./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql=/usr/local/lib –with-config-file-path=/usr/local/etc –with-png-dir=/usr/local/lib –with-jpeg-dir=/usr/local/lib –with-gd –with-gettext –with-libxml-dir=/usr/local/lib –with-zlib –with-mcrypt –enable-mbstring && make && make install
Copy dan rename php.ini-dist pada direktori /home/rody/php-5.2.6 ke /usr/local/etc/php.ini
—-Bersambung

Advertisements

Web Hosting Murah | Shared Hosting Murah | Registrasi Domain Murah

my tweet

Badge

blog-indonesia.com

RSS my tumblr

  • An error has occurred; the feed is probably down. Try again later.

instagram

There was an error retrieving images from Instagram. An attempt will be remade in a few minutes.

Blog Stats

  • 86,452 hits

%d bloggers like this: