News:

Join the Facebook Fan Page.

Main Menu

About upgrading PHP

Started by truongcoi, November 16, 2019, 07:23:37 AM

Previous topic - Next topic

truongcoi

Hello,

Our SMF 2.0.15 forum is hosted at godaddy and our website is built with WordPress. Wordpress is telling me I need to upgrade php to 7.3 I have run a comatibility check on our theme and plugins and it looks like 7.0 is compatible. Is ther anything I need to worry about as far as SMF with PHP7?

Thanks

Arantor

PHP 7.0 and 7.1 should be fine with SMF 2.0.15 (mods may vary), but for 7.2-7.3 you'll need to wait for SMF 2.0.16.

drewactual

you can run your WP on 7.3, but the directory that houses SMF should have either a php.ini or user.ini (likely better to use php.ini as it will cascade into/impact the directories within SMF where i'm not sure if user.ini does that) to use 7.0/7.1 for that directory/its children only

i did this with an install and it worked fine, though i'm sure there is some cost in terms of speed/function that you wouldn't face if everything was set the server httpd (if everything could use the same engines). 

i'm pretty sure the syntax is different, slightly, between an htaccess file and an .ini file.  if you choose to do so with either user.ini or php.ini, the syntax is (for php7.1):


AddHandler application/x-httpd-php71 .php


if you choose to do it in an htaccess file, which i would avoid as that definitely slows things down, google the proper syntax...

the server has to have 70/71 available, i think, but most do or at least can, especially during periods of transition such as this 70/71/72 EOL event.

best of luck!

Advertisement: