cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
New

Set a different php version on a specific directory.

Hello,

I'm using a GoDaddy cPanel shared Linux web hosting account and Php 5.4 globally.

I would like to set Php 7.1 to be limited to a single folder in my account, keeping Php 5.4 version for the rest of my account.

I did various tests with the php.ini    .user.ini   and .htaccess files without results.

I hope somebody can give me some suggestion.

1 ACCEPTED SOLUTION
Helper VI

Hi @daddy (lol),

I don't think it's possible with the current configuration of shared hosting. I think the PHP version is per account.

 

But you can check with support to see what they say.

 

Hope it helps!

 

If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄

View solution in original post

4 REPLIES 4
Helper VI

Hi @daddy (lol),

I don't think it's possible with the current configuration of shared hosting. I think the PHP version is per account.

 

But you can check with support to see what they say.

 

Hope it helps!

 

If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄

View solution in original post

I've contacted the support and they told me that you can't run different php versions at the same time, suggesting to buy on another account to run an additional php version !!!

 

Someone please tell me if there is another hosting that imposes this limitation ...

SiteGround allows you to set the PHP version on a folder-by-folder basis. This should be an option with GoDaddy. Ugh.

 

I agree. It should be an available option.