Differences between revisions 7 and 8
Revision 7 as of 2005-05-06 09:14:58
Size: 1762
Editor: anonymous
Comment:
Revision 8 as of 2006-03-30 16:35:30
Size: 1818
Comment:
Deletions are marked like this. Additions are marked like this.
Line 53: Line 53:
See http://www.onlamp.com/pub/a/onlamp/2001/01/25/lamp.html and really, all of http://www.onlamp.com for more on LaMp. -- MichelIvey See http://www.onlamp.com/pub/a/onlamp/2001/01/25/lamp.html and really, all of http://www.onlamp.com for more on LaMp. -- MichaelIvey

LAMP, Linux Apache Mysql(tm) (PHP||Perl||Python)


Instalation

Alternatively, for a "brighter LAMP," Linux Apache Middleware ["PostgreSQL"]. (Where Middleware would be scripting languages such as Perl, Python, PHP, Ruby, Tcl, etc.)

Installing the PHP subset of LAMP in Debian is quite simple, you just type this as root in an console (the # is the root prompt symbol):

 # apt-get install apache mysql-server php4 php4-mysql

Alternatively:

 # apt-get install apache postgresql php4 php4-pgsql

If you prefer Perl, then you might consider:

 # apt-get install apache libdbd-pg-perl postgresql

If you prefer Python, then you might consider:

 # apt-get install apache python-psychopg postgresql

Configuration

Apache: /etc/apache/httpd.conf

You may need to uncomment (remove the #) in front of the module relevant to your favorite scripting language in /etc/apache/httpd.conf. Or configure apache the debian way with:

 # dpkg-reconfigure apache

Or

 # apache-modconf apache enable php4

Read apache-modconf manual page for more info (man apache-modconf)

PHP: /etc/php4/apache/php.ini

A usual issue with php configuration is to enable mysql. Just edit the file and uncomment the following line (tip: search for mysql)

extension=mysql.so

MySql : /etc/mysql/my.cnf

You can find configuration examples in /usr/share/doc/mysql-server/examples

See also

About configuration take a look at http://www.cryptio.net/~ferlatte/config/

See http://www.onlamp.com/pub/a/onlamp/2001/01/25/lamp.html and really, all of http://www.onlamp.com for more on LaMp. -- MichaelIvey

See also: ?LampPackagingBestPractices