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

davy_yg's avatar
Level 27

PHP Version error in certain folder

Hello,

I have two folder zws_framework_2 (in file manager root folder) and public_html on the server.

Now, I am trying to recreate the: storage link but failed.

I typed this on the terminal:

[advancew@sjc02 zws_framework_2]$ php artisan storage:link Composer detected issues in your platform:

Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.2.34.

I was adviced to do this: https://pastebin.com/Br5RG9Ma

I already create my empty public folder in zws_framework_2/public/.htaccess and add that code but still failed.

0 likes
1 reply
davy_yg's avatar
davy_yg
OP
Best Answer
Level 27

It finally works after I changed the whole php version into php 7.4

Please or to participate in this conversation.