/var/log/step2k

May 1, 2008

Install Apache-PHP5-MySQL via FreeBSD Port

Filed under: Freebsd, MySQL, PHP, Linux, Database - Salman Teguh @ 1:53 am

## Apache
cd /usr/ports/www/apache22
make install clean
echo ‘apache22_enable=”YES”‘ >> /etc/rc.conf

## PHP5
cd /usr/ports/lang/php5
make install clean
echo ‘AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml’ >> /usr/local/etc/apache22/httpd.conf

## PHP5 Extension
cd /usr/ports/lang/php5-extension
make config install clean

## MySQL
cd /usr/ports/databases/mysql50-server && make install clean
/usr/local/bin/mysql_install_db
chown -R mysql:mysql /var/db/mysql
/usr/local/bin/mysqld_safe &
/usr/local/bin/mysqladmin -u root password “password-root-mysql”
/usr/local/bin/mysqladmin -u root -h ip.server “password-root-mysql”
echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf

Comments »

The URI to TrackBack this entry is: http://step2k.blogsome.com/2008/05/01/install-apache-php5-mysql-via-freebsd-port/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Get free blog up and running in minutes with Blogsome
Theme designed by Alex King