Installing PostNuke 0.722 Phoenix

W

wildwood

Guest
Im getting a repeat problem when installing:

Not Good! magic_quotes_gpc is Off.
This can often be fixed using a .htaccess file with the following line:
php_flag magic_quotes_gpc On


When i add an .htaccess file to my root directory, the website doesnt work at all, any ideas on a fix?

Wildwood
 
W

wildwood

Guest
This is the error I get, when i put an .htaccess file in my root directory:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@barrysworld.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.26 Server at hosted.barrysworld.net Port 80
 
J

Jonty

Guest
Hi wildwood

Sorry about the fairly late reply. Basically, by default, magic_quotes_gpc is turned off. This has caused one or two problems in the past, but I think there may be one or two ways to get around it.

I have to admit that I'd never come across the .htaccess solution before, but apparently it may work. Here's what I think you have to do . . .

  1. In Notepad, or similar, type/copy the following ...
    Code:
    php_value magic_quotes_gpc 1
  2. Choose 'Save As' typing '.htaccess' as the file name and ensuring that 'Save as type' is not set to '.txt' etc
  3. Connecting to your BarrysWorld site via FTP, ensuring that you can view hidden files
  4. Go to the relevant directory (you may be able to put it in the root, but I'm not sure) and upload the file in ASCII mode (N.B. if there is already a .htaccess file in the directory, you ought to edit that one to ensure the settings it contains are preserved and not overwritten)

To check the status of 'magic_quotes_gpc' you can use this simple PHP code . . .

Code:
<?php
if (get_magic_quotes_gpc() == 1)
{
  echo "magic_quotes_gpc is currently enabled"; 
}
else
{
  echo "magic_quotes_gpc is currently disabled"; 
}
?>

Just create a blank HTML page, stick the above code in the <body></body> and save with a .php extention. Then simply upload it to the relevant directory.

Unfortunately I'm not at my own computer right now, so I cannot test any of this, thus none of it may work! ;) However I will be sure to check it this afternoon and post my findings.

If you have trouble with any of this, or it simply doesn't work, let me know and we can try and think of something else.

Kind Regards
 
W

wildwood

Guest
Hi Jonty,

Thanks for your reply, I still cant get it to work.

As soon as i drop an .htaccess file into my root directory I get the same error on any page i try to load:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@barrysworld.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Im also having troubles getting <? phpinfo() ?> to show me anything. I have tried it in a plain .php file and embedded into the <body> of an html file with a .php extension.

What version of PHP are BW running currently?

Thanks again
Wildwood
 
J

Jonty

Guest
Back to the drawing board :) Just wanted to clarify with this post that phpinfo() is disabled on BarrysWorld due to the security problems it poses with the information it displays.

You'll often find, though, that there are individual PHP functions for checking certain PHP variables. For instance . . .

Code:
<?php
// This will print out the current PHP version
echo 'The current PHP version is ' . phpversion();
?>

Hope this helps. I'll get back to you soon.
 

Users who are viewing this thread

Top Bottom