Linux
Slax webstack
Go to http://www.slax.org/en/modules.php
Download:
1760-php.sb
1189-mysql.sb
531-libaio.sb
1192-httpd.sb
456-apr.sb
1193-apr-util.sb
Copy downloaded modules to /slax/modules
groupadd mysql
useradd mysql
Restart Slax computer
Start File manager Dolphin, go to folder /etc/httpd
Open httpd.conf in a text editor
To enable PHP, uncomment the line Incude /etc/httpd/mod_php.conf
Save change and close the text editor
Start the command shell Konsole and do:
apachectl start
setup mysql: Open the command shell Konsole and copy appropriate configuration file to /etc (example: cp /etc/my-medium.cnf /etc/my.cnf)
Then do:
ln -s /var/run/mysql/mysql.sock /tmp/mysql.sock /usr/bin/mysql_install_db chown mysql /var/lib/mysql/* chown mysql /var/lib/mysql/mysql/*
Start the mysqld daemon:
/usr/share/mysql/mysql.server start
Secure mysql, manage users:
mysqladmin -u root password 'toor'
(to set the mysql root password to toor)
mysql -u root -p
To stop the mysqld daemon:
/usr/share/mysql/mysql.server stop
More info:
How to setup apache php5 and mysql in slax