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

jlrdw's avatar

If your stuff worked on development it should be working in production also. There's a setting or something you're missing.

anmol's avatar
Level 2

ok so there was a auto generated error_log file inside public_html

[22-Mar-2017 04:27:17 Asia/Kolkata] PHP Fatal error:  require(): Failed opening required '/home/tncpscouriers/public_html/../bootstrap/autoload.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:27:56 Asia/Kolkata] PHP Warning:  require(/home/tncpscouriers/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:27:56 Asia/Kolkata] PHP Fatal error:  require(): Failed opening required '/home/tncpscouriers/public_html/../bootstrap/autoload.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:29 Asia/Kolkata] PHP Warning:  require(/home/tncpscouriers/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:29 Asia/Kolkata] PHP Fatal error:  require(): Failed opening required '/home/tncpscouriers/public_html/../bootstrap/autoload.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:33 Asia/Kolkata] PHP Warning:  require(/home/tncpscouriers/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:33 Asia/Kolkata] PHP Fatal error:  require(): Failed opening required '/home/tncpscouriers/public_html/../bootstrap/autoload.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:34 Asia/Kolkata] PHP Warning:  require(/home/tncpscouriers/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:34:34 Asia/Kolkata] PHP Fatal error:  require(): Failed opening required '/home/tncpscouriers/public_html/../bootstrap/autoload.php' (include_path='.:/opt/cpanel/ea-php55/root/usr/share/pear') in /home/tncpscouriers/public_html/index.php on line 22
[22-Mar-2017 04:40:28 Asia/Kolkata] PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /home/tncpscouriers/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 480
[22-Mar-2017 04:41:12 Asia/Kolkata] PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /home/tncpscouriers/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 480
[22-Mar-2017 04:42:23 Asia/Kolkata] PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /home/tncpscouriers/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 480

anmol's avatar
Level 2

my url is simply domain name because there is no flder all the files have kept inside the public_html i have not kept them inside the folder.

jlrdw's avatar

Show me your folder structure that you have in development

htdocs/what

anmol's avatar
Level 2

can you give me your facebook id .i will send you entire zip file of my project???if it does not bother you.

anmol's avatar
Level 2

htdocs/name of the project/

jlrdw's avatar

It's not finding your auto loaded files try to fix correctly.

You should have in development something like

htdocs/somefolder

anmol's avatar
Level 2

in the error logs it is talking about parse error line no 480 in helpers.php but isn't that a built in framework file.but still the code of line 480 is

    {
        return app('events')->dispatch(...$args);
    }
anmol's avatar
Level 2

htdocs/somefolder(name of the project)

jlrdw's avatar

If you had this working in development and you put it on the production the same exact way it should be working but there are a couple of settings you may have to change in production such as database credentials and that sort of thing. Normally you have a project folder name under htdocs, like

htdocs/myproject

or whatever you name it.

anmol's avatar
Level 2

thats how i named it.htdocs/project name.and now just for the sake of chehcking i even tried htdocs/laravel/myproject(inside where laravel was installed and it still sin't picking up anything just blank page.

anmol's avatar
Level 2

/../bootstrap.these two dotes are meant for????inside htdocs /laravel/project name???

jlrdw's avatar

They are explaining how to properly install which is similar to article I gave but you have to adjust your paths correctly. Learn how to get the path correctly. You have to play with the stuff sometime until you get it right. But yes that is also a good article and that is what everyone has been trying to tell you to do exactly like that article says nothing else.

Snapey's avatar

I hate to tell you this, but

[22-Mar-2017 04:42:23 Asia/Kolkata] PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /home/tncpscouriers/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 480

is a sure sign that you have the wrong PHP version.

bashy's avatar

@Snapey And worse yet, because people installing it on 'shared hosting' don't use composer, they don't get the warning about the PHP version!

1 like
anmol's avatar
Level 2

Can i ask the hosts to do something about it or there are no options left???@Snapey.

anmol's avatar
Level 2

i talked to the tech support and they said you will only get these three versions with this hosting plan for the 5.6.4 version you need to buy a v.p.s or dedicated server plans.i was wondering how different 5.6 and 5.6.4 is????does is make suge a huge difference.

quanghuy1294's avatar

DO you permission for folder:

bootstrap,
bootstrap/service.php, 
storage/*
...
anmol's avatar
Level 2

@quanghuy bro in the cpanel permissions automatically are 755 for folder and 644 for files.

Snaker's avatar

Hm, when I was used to upload my last Laravel 5.4 project on shared, all I have to do is to upload all files at one level higher then public_html folder, and then make minor changes in App\Providers\AppServiceProvider:

public function register()
    {
        $this->app->bind('path.public', function() {
            return base_path().'/public_html';
        });
    }

It works fine for me. And yes, PHP >= 5.6.4 required.

anmol's avatar
Level 2

@snaker by all the files do you mean all the files and folder or all the files only.like do i need to bring all the public files one step up also??

jontee's avatar

@anmol What's your directory structure like? From your error log it shows your hosting company doesn't support Laravel (or possibly they've disabled some modules). Just call or mail their support. By the way, what company are you hosting with?

anmol's avatar
Level 2

i am using ewebguru comapny for shared hosting.

Previous

Please or to participate in this conversation.