Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old August 30th, 2004, 08:55 AM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
MySQL, PHP, Apache Setup Locally, HELP

Ok, i setup an Apache Web Server, PHP, and MySQL, all on my PC. this is so i can test php, SQL, scripts on my computer, I am trying to run php-nuke, and I installed it on the webroot, and it gets the following errors:

Code:
Notice: Undefined variable: HTTP_USER_AGENT in C:\webroot\html\mainfile.php on line 28

Notice: import_request_variables(): No prefix specified - possible security hazard in C:\webroot\html\mainfile.php on line 51

Notice: Undefined variable: forum_admin in C:\webroot\html\mainfile.php on line 79

Notice: Undefined variable: inside_mod in C:\webroot\html\mainfile.php on line 82

Notice: Undefined variable: inside_mod in C:\webroot\html\db\db.php on line 44


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

We should be back shortly.


I've determined this is due to the fact that i need to upload nuke.sql to the mysql database, so I setup phpMyAdmin to help me do that, but now I run into another problem, I can't determine my MySQL username/password, and how to properly configure PHPMyAdmin to allow me to connect to the MySQL database.

Reply With Quote
  #2  
Old August 30th, 2004, 10:01 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,282 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 16 m 26 sec
Reputation Power: 744
Your errors are most likely caused by the PHP setting register_globals. It is probably off if you've installed a new version of PHP. It appears however that php-nuke requires them to be on. Follow the second link my sig, read, follow links from the pages you read, read more.

If you have a fresh MySQL install, your username should be "root" and there should be no password. There is a help / installation page included with phpMyAdmin that has all of the setup information in it. Usually though, all you need to do is read through the comments in config.php (I think that's the file).
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old August 30th, 2004, 10:14 AM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks alot! now, just how to turn on this register_globals...

Reply With Quote
  #4  
Old August 30th, 2004, 01:51 PM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK, i got PHPMyAdmin to work, but only by using cookies, and I set that register_globals flag on, But my question now is how to setup PHP Nukes' Nuke.SQL file to work with MySQL?

Reply With Quote
  #5  
Old August 30th, 2004, 07:36 PM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
PHPmyAdmin Works

PHPMyAdmin works now, i uploaded nuke.sql, but i still get errors [when running http://localhost/html/index.php] , these are the errors:

Notice: Undefined variable: HTTP_USER_AGENT in C:\webroot\html\mainfile.php on line 28

Notice: import_request_variables(): No prefix specified - possible security hazard in C:\webroot\html\mainfile.php on line 51

Notice: Undefined variable: forum_admin in C:\webroot\html\mainfile.php on line 79

Notice: Undefined variable: inside_mod in C:\webroot\html\mainfile.php on line 82

Notice: Undefined variable: inside_mod in C:\webroot\html\db\db.php on line 44

Reply With Quote
  #6  
Old August 31st, 2004, 05:15 PM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok, so I figured out those problems where do to an error in config.php i needed to input phpnuke as the dbname instead of just nuke, now everything loads.. except i have like a million different errors on the page, they are all undefined or undeclared variables, anybody have an idea?

Reply With Quote
  #7  
Old August 31st, 2004, 06:48 PM
Ryan Lewis Ryan Lewis is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 8 Ryan Lewis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ok I got it working, i have another question about PHP that i will start on another thread.

Reply With Quote
  #8  
Old September 7th, 2004, 08:44 PM
taiter taiter is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Calgary, AB
Posts: 5 taiter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That's Nice - but could you please SHARE your solution as others have shared with you??

Quote:
Originally Posted by Ryan Lewis
Ok, so I figured out those problems where do to an error in config.php i needed to input phpnuke as the dbname instead of just nuke, now everything loads.. except i have like a million different errors on the page, they are all undefined or undeclared variables, anybody have an idea?

Reply With Quote
  #9  
Old October 25th, 2004, 01:16 PM
bleyd bleyd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 bleyd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In PHP.ini, change error_reporting to E_ALL & ~E_NOTICE.

Reply With Quote
  #10  
Old October 25th, 2004, 01:20 PM
bleyd bleyd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 bleyd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's not recommended to turn on Register_globals as per the PHP official website. If you just change the PHP.ini variable of error_reporting to E_ALL & ~E_NOTICE then you get all the error messages minus the notices which are basically meaningless messages.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > MySQL, PHP, Apache Setup Locally, HELP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway