You have a full slackware installed and you want to use it as a LAMP server? here is a basic setup with phpmyadmin, if you like pretty interfaces for database administration (optional), in some easy steps (as root).

This is a superquick guide, for more informations consider reading mRgOBLIN excellent article.

let’s start πŸ™‚

– make executable the init scripts of httpd (apache) and mysql

chmod +x /etc/rc.d/rc.{mysqld,httpd}

– initialize the database and create standard mysql tables (I suggest to read output on screen, it’s interesting)

mysql_install_db --user=mysql

– start the database daemon and execute a post initialization script: you need to input some data for setup (I suggest to accept defaults to questions)

/etc/rc.d/rc.mysqld start
mysql_secure_installation

– edit /etc/httpd/httpd.conf: uncomment a line to enable mod_php and add index.php to the DirectoryIndex directive

Include /etc/httpd/mod_php.conf
DirectoryIndex index.php index.html

– get phpmyadmin from slackbuilds.org, build the package and install it

wget http://slackbuilds.org/slackbuilds/13.37/network/phpmyadmin.tar.gz
tar xf phpmyadmin.tar.gz
cd phpmyadmin
wget $( grep tar.xz phpmyadmin.info | cut -d\" -f2 )
chmod +x phpmyadmin.SlackBuild
PKGTYPE=txz ./phpmyadmin.SlackBuild
installpkg /tmp/phpmyadmin-*.txz

– start the webserver

/etc/rc.d/rc.httpd start

congratulations, your LAMP server is up and running! πŸ˜€

your DocumentRoot is /var/www/htdocs/, put your stuff in there.

you are also free to look around in your phpmyadmin: use the root credentials setted during the mysql_secure_installation step

links http://localhost/phpmyadmin/

if you are on another host you can substitute localhost with the output of this command on the server

/sbin/ifconfig | grep "inet addr" | grep -v "127.0.0.1" | cut -d: -f2 | cut -d' ' -f1