![]() |
Now serving 103 guides. |
|
Apache, PHP, and MySQL General Information This guide will teach you how to set up a basic web server with Apache, PHP support, and MySQL for the database.There are a couple of ways to do this, but this guide will use the easier method with the ports system. Requirements
Installation Section A -- Apache
Note: For Apache2 users: Use the following instead.
Section B -- PHP
Section C -- MySQL
Configuration Now we need to make sure Apache is configured for your website and that the PHP module is configured in the Apache config file.
Author: Jon LaBass Find this guide useful?
Support the author: 4 Comments Posted by j79zlr1 on November 16, 2005 at 7:50:36 am EET
Just a side note, if you install mod_php4 with MySQL 4.1.x, you need to simlink in /usr/local/lib/mysql
ln -s libmysqlclient.so.14 libmysqlclient.so.12 because of the dependency of mod_php4 on MySQL 4.0 Posted by csarlee on November 16, 2005 at 7:50:36 am EET
This simlink should be reversed! i.e. ln -s libmysqlclient.so.12 libmysqlclient.so.14 'cos libmysqlclient.so.12 exists, so cannot simlink it!
Posted by VooDooNOFX on November 16, 2005 at 7:50:36 am EET
For those of you who are using PHP5 instead of PHP4, don't forget to add the following to your httpd.conf file:
AddType application/x-httpd-php .php AddType application/x-httpd-php .phtml AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php5 AddType application/x-httpd-php-source .phps Posted by ZokiNet on November 16, 2005 at 7:50:36 am EET
this is how you start mysql server:
/usr/local/etc/rc.d/mysql-server.sh start |
Copyright 2003 - 2008 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

