[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2 & MySQL

I just reinstalled my LAMP (Linux/Apache/Mysql/PHP) development server
at my office.  I'm keeping track of -everything- I do while setting it
up so my coworkers can have some idea how to do it themselves.  I
installed the following packages (selected via aptitude), and then
installed any "recommended" packages as well.


That assortment of packages should do it for you, and allow you to use
php4 and mysql at the command line as well.  The rest comes down to
setting up the config files for each of them;
/etc/php4/apache2/php.ini for php4, /etc/mysql/my.cnf for mysql,
/etc/apache2/apache2.conf and /etc/apache2/sites-available/default for

I also installed phpmyadmin because I like administering things
remotely, and php4-sybase because some of the sites I develop connect
to an mssql database on another server.


On 9/1/05, Steve Å <kru_tch@yahoo.ca> wrote:
> I'm familiar with how Apache 1.3.x is to be setup, but confess I don't
> understand Apache 2 well.
> I'm doing a new Sarge installation (offsite) on a box which won't be on the
> Internet. I installed Apache 2 and PHP 4. PHP is working fine, however in
> checking my configuration via phpinfo(); I notice that PHP-MySQL isn't enabled.
> I have installed anything related to MySQL and PHP4 found via 'aptitude search'.
> I have searched the archives via Google, I'm not finding anything on how to
> enable MySQL for Apache 2 specifically. Shouldn't this be set up automatically
> when the relevant modules are installed via aptitude ?
> Suggestions ?
> --
> Steve <http://sweetpig.dyndns.org:1000/>
> -----------------------------------------------
> Thursday Sep 01 2005 08:05:01 AM EDT
> -----------------------------------------------
> Every cloud engenders not a storm.
>                 -- William Shakespeare, "Henry VI"
> Version: GnuPG v1.4.1 (GNU/Linux)
> iD8DBQFDFvC+0TbbxWyNBKURAvL/AJ0arQEC3FXAch1KQ/wLwz6hLlb7SgCeP9Nh
> EZpui8DMLK0/XWP2KVvMxvU=
> =r3sS

Reply to: