Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

musmanpak0's avatar

Changing PHP version of Laravel.

Hosting - Hostgator I need to run the 'composer update'. All dependencies required minimun php -v of 5.5.9. I have manualy Upgrade the php version of Project directory to 5.6 from cpanel using 'Php configration' plugin. But when i logged in using ssh, then i got the php -v of 5.4.45. Ofcourse It is targeting the deafult php version of the server. Is there any way to update php to 5.6 or above on ssh also. No root user access. No help from support team also

0 likes
5 replies
SaeedPrez's avatar

There might be two different PHP version, one for CLI and one for the web server.

musmanpak0's avatar

And as I've mentioned the issue is I can't have root access.

SaeedPrez's avatar

Have you tried to contact Hostgator? Even if they can't upgrade that server, maybe they have a server with newer version of PHP they can move you to. Otherwise find a web host that fits your needs or get VPS (DigitalOcean is like $5/mo).

Please or to participate in this conversation.