Setting up a Lamp stack on Slackware 12.
httpd -k start
httpd -k stop
apachectl startor edit your config files to start the daemon on boot.
#Include /etc/httpd/mod_php.confand uncomment it, i.e remove the # at the start of the line. also you need to uncomment the line
#AddType text/html .shtmland add the type php, so that it now reads '
AddType text/html .shtml .php
mysql_install_dbIf all goes well you should see something like:
Installing all prepared tables
Fill help tables
To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h valkyrie password 'new-password'
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting the MySQL database./usr/bin/mysqld_safe &then issue the following command:
/usr/bin/mysqladmin -u root password 'new-password'