1. Use dselect and install imp (this is a webmail product which fixes a lot of php config files) . When asked for dependencies when installing imp, remove all postgresql files and select the available mysql and php3 files that appear instead.
2. (optional) apt-get install sendmail - if you want mail to work.
3. In /etc/apache/mime.types, change the line ;
application/x-httpd-php phtml pht php
to
application/x-httpd-php3 phtml pht php
4. mysqladmin -u root password newmysqlrootpassword - Put this password in /etc/mysql/my.cnf
5. mysqladmin create nuke
6. mysql nuke LESSTHANSIGN /var/www/sql/nuke.sql [or /var/www/html/sql/nuke.sql for version 5 beta]
7. chmod 777 /var/www/html (the insecurity of this scares me, but it works)
8. In /var/www/html/config.php, change;
$dbpass = "";
to
$dbpass = "newmysqlrootpassword"
9. (optional) Note that creating a specific mysql user for the db is more secure and absolutely necessary when giving others access to PHP-Nuke config files - using mysql_setpermission to set up a db specific user is more secure. You will need to change /var/www/html/config.php in this case.
10. Go to http://localhost/html/ for the frontpage
or http://localhost/html/admin.php for admin logging in as;
user: God
pass: Password. "
Tidak ada komentar:
Posting Komentar