PhpNuke on Windows XP

Heres how I got a PhpNuke server running on Windows XP.




Use WinZip to install MySQL. Install it to the default directory c:\mysql

See the documentation in c:\mysql\docs for configuration info.

Start the MySQL service. Open a DOS window and type

cd \mysql\bin
mysqld-nt –install
net start mysql

Start and stop the MySQL service with these commands:

C:> NET START mysql 
C:> NET STOP mysql

If you don’t want to start mysqld-nt as a service, you can start it as follows:

C:> C:\mysql\bin\mysqld-nt --standalone

You can test whether or not MySQL is working by executing the following commands:

C:\mysql\bin\mysqlshow -u root mysql  
C:\mysql\bin\mysqladmin version status proc  
C:\mysql\bin\mysql test

The default privileges on Windows give all local users full privileges to all databases without specifying a password. To secure MySQL you should set a password for all users and remove the row in the mysql.user table that has Host='localhost' and User=''.

You should also add a password for the root user. The following example starts by removing the anonymous user that can be used by anyone to access the test database, then sets a root user password:

C:\mysql\bin\mysql mysql  
mysql> DELETE FROM user WHERE Host='localhost' AND User='';  
mysql> QUIT  
C:\mysql\bin\mysqladmin reload  
C:\mysql\bin\mysqladmin -u root password your_password

After you’ve set the password, if you want to take down the mysqld server, you can do so using this command:

mysqladmin --user=root --password=your_password shutdown


Run the installer, select the web server youre using, and youre done.

You may need to make the following edits to C:\Windows\php.ini

magic_quotes_gpc = Off
include_path = ".;c:\www\"
doc_root =
extension_dir = "./;c:\www\php"
safe_mode_gid = Off  
safe_mode_include_dir =  
register_globals = On
pgsql.auto_reset_persistent = Off 


Use WinZip to uncompress PHP-Nuke to a temporary folder. Copy all the files and folders under the html directory to where you want them in your web site, usuall the root folder of your web site since PHP-Nuke will manage your whole site.

To create Nukes database, open a DOS window and enter the following commands, change the directory names as required.

copy nukedirsqlnuke.sql c:/mysql/bin
cd mysqlbin
mysqladmin create nuke
mysql nuke

At the top of config.php

Tags: No tags

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.