|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
Thanks alot! now, just how to turn on this register_globals...
|
|
#4
|
|||
|
|||
|
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?
|
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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?
|
|
#7
|
|||
|
|||
|
Ok I got it working, i have another question about PHP that i will start on another thread.
|
|
#8
|
|||
|
|||
|
That's Nice - but could you please SHARE your solution as others have shared with you??
Quote:
|
|
#9
|
|||
|
|||
|
In PHP.ini, change error_reporting to E_ALL & ~E_NOTICE.
|
|
#10
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > MySQL, PHP, Apache Setup Locally, HELP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|