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



 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):



For any other question please post in in the Forum

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
Have you found this script useful? Please support author by PayPal donation.
Filed under: Linux/Unix
Tags: ,

Leave a Reply