Install LAMP in slackware 13

by
Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0

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

 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

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+0Twitter0LinkedIn0Reddit0StumbleUpon0