Friday, February 09, 2007

Installing LAMP

Linux
Gawd, where to even begin?

If you are fairly non-techie like myself (lol, this blog is deceptive!) I would strongly recommend you go with one of the following distros.
http://www.ubuntu.com
http://www.xandros.com


Apache
./configure --prefix=/usr/local/apache2
make
make install


MySQL
./configure --prefix=/usr/local/mysql
make
make install
groupadd mysql
useradd -g mysql mysql
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .


PHP
./configure --prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-debug \
--enable-maintainer-zts
make
make install

No comments: