Phpnuke and Xxamp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Phpnuke and Xxamp

Postby donkon » 28. June 2006 02:59

Ive been trying to install phpnuke on xxamp, i made a folder in xxamp htdocs folder and uploaded the phpnuke files and then created the sql and called it dogs, then i went into the config.php file and changed dbname to dogs.

When i try going to localhost/dogs i get the following error:



Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500
localhost
06/27/06 21:58:48
Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4

Someone please help
donkon
 
Posts: 3
Joined: 28. June 2006 02:52

Postby Wiedmann » 28. June 2006 03:53

Error 500

Look into the "error.log".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby donkon » 28. June 2006 07:33

This is the error log:

BTW i installed this on the 27th


[Mon May 08 17:02:39 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Mon May 08 17:02:39 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Mon May 08 17:02:39 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Mon May 08 17:02:39 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Mon May 08 17:02:41 2006] [notice] Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.4 configured -- resuming normal operations
[Mon May 08 17:02:41 2006] [notice] Server built: Dec 1 2005 18:36:53
[Mon May 08 17:02:41 2006] [notice] Parent: Created child process 1692
[Mon May 08 17:02:42 2006] [notice] Child 1692: Child process is running
[Mon May 08 17:02:43 2006] [notice] Child 1692: Acquired the start mutex.
[Mon May 08 17:02:43 2006] [notice] Child 1692: Starting 250 worker threads.
[Mon May 08 17:02:43 2006] [notice] Child 1692: Starting thread to listen on port 443.
[Mon May 08 17:02:43 2006] [notice] Child 1692: Starting thread to listen on port 80.
[Mon May 08 17:03:04 2006] [error] [client 127.0.0.1] File does not exist: D:/xampp/htdocs/cgi
[Tue Jun 27 20:54:24 2006] [notice] Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4 configured -- resuming normal operations
[Tue Jun 27 20:54:24 2006] [notice] Server built: May 9 2006 14:08:48
[Tue Jun 27 20:54:24 2006] [notice] Parent: Created child process 5196
[Tue Jun 27 20:54:25 2006] [notice] Child 5196: Child process is running
[Tue Jun 27 20:54:25 2006] [notice] Child 5196: Acquired the start mutex.
[Tue Jun 27 20:54:25 2006] [notice] Child 5196: Starting 250 worker threads.
[Tue Jun 27 20:54:25 2006] [notice] Child 5196: Starting thread to listen on port 443.
[Tue Jun 27 20:54:25 2006] [notice] Child 5196: Starting thread to listen on port 80.
[Tue Jun 27 21:21:30 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:21:50 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:21:52 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:24:07 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:24:16 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:25:20 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:32:11 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:34:33 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:37:52 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:47:52 2006] [error] [client 127.0.0.1] File does not exist: C:/Program Files/xampp/htdocs/xampp/cu
[Tue Jun 27 21:47:59 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Tue Jun 27 21:58:48 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Jun 28 02:29:28 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
donkon
 
Posts: 3
Joined: 28. June 2006 02:52

Postby donkon » 28. June 2006 07:41

Ok i deleted the htaccess.. file i dont know why but it was screwing it up.. Now i have a problem with the database and the site, get this error:

There seems to be a problem with the MySQL server, sorry for the inconvenience.

We should be back shortly.
donkon
 
Posts: 3
Joined: 28. June 2006 02:52

Postby Wiedmann » 28. June 2006 13:37

Ok i deleted the htaccess.. file i dont know why but it was screwing it up..

Read the error.log a second time:
Tue Jun 27 21:21:30 2006] [alert] [client 127.0.0.1] C:/Program Files/xampp/htdocs/cu/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

--> enable mod_rewrite in "httpd.conf"

There seems to be a problem with the MySQL server, sorry for the inconvenience.

No idea. MySQL is working? (eg. the cd database demo).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby LawkSalihCom » 19. August 2006 03:30

Hi, I am having the same problem. I installed phpnuke on xampp and I get the following error:

There seems to be a problem with the MySQL server, sorry for the inconvenience.

We should be back shortly.


Here is my config.php:

Code: Select all
 
$dbhost = "localhost";
$dbuname = "dbname";
$dbpass = "password";
$dbname = "dbname";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$nuke_editor = 0;
$display_errors = false;


Please help!
LawkSalihCom
 
Posts: 12
Joined: 12. August 2006 00:13

Postby Izzy » 19. August 2006 03:54

Wiedmann wrote:
There seems to be a problem with the MySQL server, sorry for the inconvenience.

No idea. MySQL is working? (eg. the cd database demo).

Is mySQL working?

Did you create the database and assign a user and password in phpMyAdmin?

Did you enter this database info into your config.php?
Last edited by Izzy on 27. August 2006 01:01, edited 2 times in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby LawkSalihCom » 19. August 2006 13:23

I actually downloaded the PHP folder off my website. I didn't unzip any files. I just want to create a development version of my website on my home computer to test out some themes and do some edits before making them live. So yes, I downloaded the entire php folder off my website which lawksalih.com/php. The I went to PhpMyAdmin on my web server, in this case StartLogic's vDeck, and I asked PhpMyAdmin to export all of my nuke db and I saved into a file.sql. Then through my XAMPP PhpMyAdmin, I clicked on import and I clicked on import to bring in all of the tables and the data. I was able to do this without any errors. Now I need to create that connection for the PHP folder I have under my htdocs and that is why I was getting the error message.
LawkSalihCom
 
Posts: 12
Joined: 12. August 2006 00:13

Postby Izzy » 20. August 2006 11:10

You don't need to use the same database credentials that you use on your main server.

I just tried to install phpNuke and had some wierd results. I will go through them so you might get some ideas of what to do for your situation.

http://localhost/np/admin.php is the url used in all cases below.

1. I created a database, imported the nuke.sql and entered the details in config.php:
Code: Select all
$dbhost = "localhost";
$dbuname = "np";
$dbpass = "pn";
$dbname = "np";
$prefix = "np";
$user_prefix = "np";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;

This netted me a blank page with no errors but nothing on the page either.

2. I didn't create a database and didn't change the default config.php
Code: Select all
$dbhost = "localhost";
$dbuname = "root";
$dbpass = "";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;

This netted me the same error you have above:
There seems to be a problem with the MySQL server, sorry for the inconvenience.

We should be back shortly.

So now I understood that if there was a database connection issue then I would get this error message.

3. I created a database, imported the nuke.sql and using the info in the default config.php but only added my root password.
Root and its password has full priveleges as set up when XAMPP was installed. I left everything else the defaults.
Code: Select all
$dbhost = "localhost";
$dbuname = "root";
$dbpass = "myrootpasswordinhere";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SStgF54$3@+%288-982%/(-derThsR-23";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$nuke_editor = 1;

Finally at last I had the database connection I needed and therefore the admin.php was displayed as intended.

Your error is showing that you don't have a database connection. So I suggest doing Number 3 above and see if you get the same results that I had. Then you can experiment with changing the database details and reflecting them in your config.php till you are still able to connect and dispaly the pages you want to.

I hope you can follow this. Read it a few times if it seems complex.

Good Luck.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby LawkSalihCom » 20. August 2006 15:03

IT WORXXXXXXXX NOW.

THANK YOU ALL VERY VERY MUCH FOR YOUR HELP. NOW I CAN PLAY AROUND WITH PHPNUKE AS MUCH AS I WANT.
LawkSalihCom
 
Posts: 12
Joined: 12. August 2006 00:13

Postby LawkSalihCom » 20. August 2006 15:07

I have a weird problem now.

When a user selects "Notify me when a reply is posted" on the forum section, then get a URL in the email and the URL is something like this:

http://domain.com/modules.php?name=Foru ... ic&p=84#84

The problem is that my nuke is under a folder called PHP since my host company wouldn't allow me to have nuke installed on the root folder so the URL in the email should be like this:

http://domain.com/php/modules.php?name= ... ic&p=84#84

Note the php folder between the domain and the modules.php

Thanks for your help.
LawkSalihCom
 
Posts: 12
Joined: 12. August 2006 00:13

Postby Wiedmann » 20. August 2006 15:27

then get a URL in the email and the URL is something like this:
http://domain.com/modules.php?name=Foru ... ic&p=84#84

The problem is that my nuke is under a folder called PHP ... so the URL in the email should be like this:
http://domain.com/php/modules.php?name= ... ic&p=84#84

That's simple... Install phpNuke not in the DocumentRoot. Instead install it in DocumentRoot/php. Like at your online webserver.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby LawkSalihCom » 20. August 2006 15:34

... but when the user gets the notification, they get it without the /php/ folder then nuke returns them to www.domain.com.
LawkSalihCom
 
Posts: 12
Joined: 12. August 2006 00:13

Postby Wiedmann » 20. August 2006 16:07

You have installed phpNuke in "\xampp\htdocs\php"? (installed not moved to after the installation)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 60 guests