1.Apache web server
2.Mysql server
3.php 5 or newer version
By default apache and mysql server is already installed in slackware.we need to only start their scripts.
well then for installing php you need to download the source code from
http://in3.php.net/get/php-5.2.9.tar.bz2/from/a/mirror
After downloading just extract the file :
tar jxf /where_php_tarfile_is/php-5.2.9.tar.bz2
Now the next thing you need to do is just change the directory to php-5.xx
cd php-5.x.x
./configure
make
make install (do as root )
Now php is installed .The next step is to enable apache to parse php file
Open the file "/etc/httpd/httpd.conf" in any text ditor
search the line
#Include /etc/httpd/mod_php.conf
just comment out this line.
Also you need to uncomment the line
#AddType text/html .shtmland add .php to it
AddType text/html .shtml .php
save the file and exit.
start the apache server by issuing command:
[user@slackware]$ sudo /etc/rc.d/rc.httpd start
The second stage is to enable mysql server
just type "su mysql" as root
[root@slackware]# su mysql
[root@slackware]#mysql_install_db
Now you need to set the password for the root user
[root@slackware]# /usr/bin/mysqladmin -u root password "new password"
If all done well ,then you need to start the mysql daemon
type
[user@slackware]$sudo /etc/rc.d/rc.mysqld restart