sexta-feira, 18 de junho de 2010

Apache + Mysql + Php Resumido em Freebsd

cd /usr/ports/lang/php5
make install clean


cd /usr/ports/lang/php5-extensions
make config
make install clean

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

copy /usr/local/etc/php.ini-recommended or /usr/local/etc/php.ini-dist to /usr/local/etc/php.ini


apachectl start 

/usr/local/etc/rc.d/mysql-server forcestart
mysqladmin -u root password novopassword
mysql -u root -p


:)

Nenhum comentário: