Building Websites with PHP/Nuke
上QQ阅读APP看书,第一时间看更新

Testing the Installation

Finally, we are ready to go.

Open up your web browser and navigate to http://localhost/nuke/. You should see the following screen:

If this is what you see in your browser, then you are ready to go, and you can move on to the next chapter. If you see something different from this image in your browser, we may have to perform some troubleshooting. Here we'll look at some of the more common problems that users encounter with their PHP-Nuke installations.

Database Connection Problem

If you see this in your browser:

then there might be a problem with your database server or, more likely, your connection information. If the MySQL server is running (navigate to http://localhost/phpMyAdmin/ to see if phpMyAdmin is working), then it's likely that you specified the wrong database name, wrong username, or possibly the wrong password in the config.php file, so go back and check them.

No Data in the Database

You might get a blank screen or receive error messages like these in the browser window

Warning: main(language/lang-.php): failed to open stream: No such
WarningWarning failed to open stream, error messagesfile or directory in \xampp\htdocs\nuke\mainfile.php on
line 183 ...
Fatal error: Call to undefined function: themeheader() in
 \xampp\htdocs\nuke\header.php on line 47 

This probably means that your database is actually empty. Ensure you have added the data as we did earlier. Another possibility is that you have incorrectly specified the table prefix in the file config.php file. That line should look like this:

$prefix = "nuke";

Still Having Problems?

If PHP-Nuke is still not working, and you have followed the steps in this chapter, then there is something wrong elsewhere, but it is likely that you will find the answer by scouring the forums at http://www.nukecops.com/forum2.html. This is the Installation for Newbies forum on nukecops. This contains many questions (and solutions) from new users attempting to get their site running.