Re: Apache2 & MySQL

From: Ben Bettin (bwbettin_at_gmail.com)
Date: 09/01/05

  • Next message: Steve Q?=: "Re: Apache2 & MySQL"
    Date: Thu, 1 Sep 2005 09:41:42 -0400
    To: Steve Å <kru_tch@yahoo.ca>, debian <debian-user@lists.debian.org>
    
    

    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.

    apache2-mpm-prefork
    libapache2-mod-php4
    php4
    php4-cli
    php4-mysql
    mysql-client
    mysql-server

    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
    apache2.

    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.

    Ben

    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"
    >
    >
    > -----BEGIN PGP SIGNATURE-----
    > Version: GnuPG v1.4.1 (GNU/Linux)
    >
    > iD8DBQFDFvC+0TbbxWyNBKURAvL/AJ0arQEC3FXAch1KQ/wLwz6hLlb7SgCeP9Nh
    > EZpui8DMLK0/XWP2KVvMxvU=
    > =r3sS
    > -----END PGP SIGNATURE-----
    >
    >
    >


  • Next message: Steve Q?=: "Re: Apache2 & MySQL"

    Relevant Pages

    • apt-get install php4-mysql
      ... Postgres-DB but now for different reasons, I also wanted MySQL. ... not enable MySQL during the apache installation the first time. ... The following extra packages will be installed: ... When the process was over I restarted Apache and paniced when I ...
      (Debian-User)
    • Re: [SLE] http server setup problem in suse 10.0
      ... downloaded and installed the apache2 and related packages. ... Nevertheless I checked apache installation in the Software ... HTTP server wizard modult that you and others mention? ...
      (SuSE)
    • Re: Apache problem
      ... > few other packages are installed as well as dependent packages of ... The security level was set to 2 during installation. ... if you don't have a valid hostname for apache to use it won't start, ...
      (freebsd-questions)
    • How harmful is pkg_add -f
      ... I have installed apache-1.3.33_1 which required by other packages. ... I am also interested in adding a ssl to apache, ... to force installation ...
      (comp.unix.bsd.freebsd.misc)
    • RE: Not a Debian question, but you guys know this stuff...
      ... the Apache manual is a bit misleading in that it says that ... "uninstall" options - installation of another instance is not an option. ... Katipo and Alvin, feel free to read this procedure and pass it off as your ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)