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

Hadayat's avatar

No there is no configration about that, this is my .htaccess file

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag track_errors Off
</IfModule>
<IfModule lsapi_module>
   php_flag track_errors Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

ajithlal's avatar

@hadayat Are you sure you uploaded the vendor folder also? If not then you can run composer install from the terminal provided in your cpanel. On your cpanel you can search for terminal on your cpanel. A prompt will appear for the first time. click understood. Go to your project path and run composer install. If you already have a vendor folder delete it and run the command

ajithlal's avatar

@hadayat Small suggestion, don't put your project file inside the public_html folder. That is because We can easily access our .env file from the URL. you can check your env file like http://yourdomain.com/UOM/.env. That's not good at all. You can move your UOM folder outside the public_html folder and move the files inside the public folder to public_html and update the autoload and bootstrap path in your index.php

ajithlal's avatar

@hadayat If composer install didn't work, try enabling the extensions php-intl, php-mbstring

Hadayat's avatar

@ajithlal When I am running the composer install it says you are running 5.2 version of PHP

You are right this issue is happening from my PHP version, I changed in PHP in and server but still it's not changing on the server

Can you please suggest me the permanent way of update configuration on the server?

Hadayat's avatar

@ajithlal Now i run this command forcely, composer install --ignore-platform-reqs

composer says no update is require everything is updated and throw an error like above I mentioned

Parse error: syntax error, unexpected ':', expecting '{' in /home4/truepower/public_html/UOM/vendor/symfony/polyfill-php80/bootstrap.php on line 23
ajithlal's avatar

@hadayat if you updated the php version you have to close the currently open terminal and open it again

Hadayat's avatar

@ajithlal can you please drop your email id then we will connect with each other using teamviewr and solve the problem, If you have some time

Jsanwo64's avatar

Try the following;

  1. php artisan config:cache
  2. php artisan route:cache

Then proceed to the live server and create a folder called UOM at the same level where you have public_html.

you should have this after you have created the folder

 
.cpanel
 
.cphorde
 
.htpasswds
 
.razor
 
.softaculous
 
.spamassassin
 
.subaccounts
 
.trash
 
etc
 
UOM
 
logs
 
mail
 
public_ftp
 
public_html
 
ssl
 
tmp

Upload everything you have in your project folder to the UOM except the public folder to the UOM folder. After doing this upload everything in your public folder to the public_html folder.

when done with this go to your index.php file which located in your public_html

make this line


require __DIR__.'/../vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';


look like this

require DIR.'/../UOM/vendor/autoload.php';

/* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight our users. | */

$app = require_once DIR.'/../UOM/bootstrap/app.php';

Jsanwo64's avatar

make those lines look like this


require __DIR__.'/../UOM/vendor/autoload.php';


$app = require_once __DIR__.'/../UOM/bootstrap/app.php';


siangboon's avatar

43 messages still not able to find out the issue, i think it may better to screenshot the phpinfo() to let others know and confirm your web server is using php version 7...

Hadayat's avatar

@siangboon Thanks for your support. Actually I update the PHP version of my subdomain but when I run this

phpinfo() it says your version is 7.4.9.

The issue is that it does not turn off the allow_url_include. How can I solve this Issue?

My Other domains are running PHP 5.4 version. Even I change my domain version and sub-domain version but it still threw the same error.

siangboon's avatar

seek the support from your hosting provider... can consider remove php 5 and convert all to php version to 7 since php 5.4 had been end of life even the security fixes already stopped for years

Previous

Please or to participate in this conversation.