Install LAMP in slackware 13
November 16, 2010 by: upa_kid
LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform that uses Linux as operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language.
In this Simple tutorial we will explain you how to install LAMP server on your Slackware 13.
The installation will be done in 3 steps:
to install Lamp in Slackware13 you have to follow the bellow steps
1. install Apache in Slackware :
root@slackware-13:~# slackpkg install httpd

now start the httpd server under /etc/rc.d/ with
/etc/rc.d/rc.httpd start

the index page is under /var/www/htdocs
you can change the index file like
#uname -a > /var/www/htdocs/index.html
open your browser http://ip
2- install mysql :
Type this command to install mysql
#slackpkg install mysql

before you start mysql daemon please apply the foloowing commands
cp /etc/my-small.cnf /etc/my.cnf /usr/bin/mysql_install_db chown -R mysql:mysql /var/lib/mysql
Now restart mysql
/etc/rc.d/rc.mysqld restart

make a secure password for your mysql :
#mysqladmin -u root password unixpass
3- Install PHP :

To make php known in apache pages , we have to make some changes in /etc/httpd/httpd.conf and
Include /etc/httpd/mod_php.conf
and
open
vi /etc/httpd/mod_php.conf
and add
Add AddType application/x-httpd-php .php .php3 .php4
Now add to the php script
vi /var/www/htdocs/info.php
and add
<phpinfo; ?>
save exit and restart your httpd deamin
open the browser and type (change ip with your current ip adress):
http://ip/info.php
Enjoy
For any other question please post in in the Forum
Have you found this script useful? Please support author by PayPal donation.- Installing Apache2 With PHP5 And MySQL Support On CentOS 5.3 (LAMP)
- Installing Apache2 With PHP5 And MySQL Support On Fedora 12 (LAMP)
- Howto: Install Lamp and phpmyadmin on Ubuntu
- How to install LAMP and Phpmyadmin in opensuse 11.3
- Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.04 (LAMP)
- Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.04 (LAMP)
- Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.04 (LAMP)
- How to install Lamp and Phpmyadmin in Fedora 13
- Installing Apache2 With PHP5 And MySQL Support On Fedora 13 (LAMP)
- Installing Apache2 With PHP5 And MySQL Support On Fedora 14 (LAMP)

