Jump to content

Php 4 To Php 5


Guest bwyatt

Recommended Posts

Posted

We tried to upgrade our server to php 5, but all the php on my forum wouldn't parse, the browser just tried to download it. Is there a setting(s) I need to change that tells IPB that we're now using php 5? Any tips on migrating to mysql 5 while we're on the subject would be nice too. :)

Thanks for any help.

Posted

are you on apache [cgi / mod ??] ?
did you check your webservers config-file and did you reload [invoke-rc.d apache2 restart] the configuration file/s?

for me it seems that your apache(2?) config file was not properly setted up...

i

Posted

are you on apache [cgi / mod ??] ?


did you check your webservers config-file and did you reload [[i]invoke-rc.d apache2 restart[/i]] the configuration file/s?



for me it seems that your apache(2?) config file was not properly setted up...



i

Posted

in your apache httpd.conf file [debian: apache2.conf] check for something like this:

AddType application/x-httpd-php .php .php3 .php4 .phtml

did you customize your (new) php.ini?

did you remove php4 before you installed php5?

really, you should ask your admin to have a look on your server...

Posted

Okay, I've got my server provider to do it.

Will IPB work with it fine straight away, or will it need to be changed or told to use php 5 instead of php 4?

Posted

I know it's not IPB, I just can't find a guide to correctly configure the server at all. I've found no guides to go from php 4 to php5...

  • 2 months later...
Posted

My host is 1and1 and they recently advised me that I must move to PHP4 from PHP3 as they were removing PHP3. They also suggested moving to PHP5 if I could to gain security benefits.

Their advice was this:

guarantee that PHP 4 scripts will function 100% correctly under PHP 5. Please note that in contrast to PHP 4, the default for the variable RegisterGlobals is "off". By default Apache uses PHP 4 for .php extension. If you don't want to rename all your scripts to .php5 you can do the following: Create a .htaccess file and place the following line AddType x-mapp-php5 .php in it. This will tell Apache to use PHP 5 instead of PHP 4 for the extension .php in the directory the .htaccess is placed and all sub-directories under it.

While the PHP developers have done their utmost to ensure compatibility, we cannot













As it was only one file I tried it, place the .htaccess file at the root of my forum directory and am now running on PHP 5.2.4.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...