Home > apache, autoposting, docs, freebsd, install, installasi, mysql, php, server > Install Apache 1.3 with mod_ssl and mod_watch, Mysql 4.1, PHP 5 on FreeBSD 7.2

Install Apache 1.3 with mod_ssl and mod_watch, Mysql 4.1, PHP 5 on FreeBSD 7.2


ok, check more below for complete information

same as previous posting, we have installed apache 2 , mysql 5.x and php 5. On this posting now, we’ll try install apache 1.3 with mod_ssl and mod_watch, MySQL 4.1 and PHP 5.

Installation:

Apache 1.3

to install apache 1.3 with mod_ssl :

# cd /usr/ports/www/apache13-modssl
# make install clean

to start just type

# /usr/local/sbin/apachectl start

to enable apache on boot add apache_enable=”YES” following file /etc/rc.conf

check apache on your browser type localhost / 127.0.0.1 / ip address

install mod_watch

# wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/mod_watch318.tgz
# tar -xzvf mod_watch318.tgz
# cd mod_watch
# make install-dynamic

.

PHP 5

# cd /usr/ports/www/lang/php5

make sure to build Apache module is checked

add these option on file /usr/local/etc/apache/httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

create file php.ini by copy php.ini-dist

# cd /usr/local/etc/
# cp php.ini-dist php.ini

and then restart apache

# /usr/local/sbin/apachectl restart

create file php on /usr/local/www/apache22/data/

<?php phpinfo();?>

save as test.php

now test on your browser http://127.0.0.1/test.php

.

MySQL 4.1

# cd /usr/ports/databases/cd mysql41-server/

create database

# /usr/local/bin/mysql_install_db

change owner and group as mysql

# chown -R mysql /var/db/mysql/
# chgrp -R mysql /var/db/mysql/

run mysql daemon

/usr/local/bin/mysqld_safe –user=mysql &

change mysql password

/usr/local/bin/mysqladmin -u root password newpass

to automatic msyql enable when boot add /etc/rc.conf:

mysql_enable="YES"

Install PHP5-MySQL Module

cd /usr/ports/databases/php5-mysql
make install clean

create file php to check it

<?php
$test=mysql_connect("localhost","mysql","");
if(!$test)
{
print "cant connect";
}
else
{
print "connected";
}
?>

save as test-db.php on /usr/local/www/apache22/data/ and go to your browser http://localhost/test-db.php

done.

Reference:

1. previous post

Advertisements
  1. June 21, 2009 at 12:43 pm

    wiiww….mantabs kali kk….
    dapet ilmu lagi nih….makaci…makaciii… :rofl:

    • June 25, 2009 at 10:40 pm

      yo.. pdoo2 😀

  2. May 2, 2012 at 5:25 pm

    I’m a partner in http://eciliecome.blog.free.fr/ almost naked bbs teen did anyone noticed those big teeth she has???I know my man had his cock raw for like about a week…fo sho…

  3. May 3, 2012 at 12:52 am

    I’m a member of a gym http://dytifynehe.de.tl sexymodelssite Dayum! She has a nice booty with like–zero celluite…very nice indeed,and she knows how to bounce it nicely. Where do these girls come from???!! Because I need to move there haha

  1. June 20, 2009 at 11:16 pm
  2. June 21, 2009 at 5:04 am

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