If your stuff worked on development it should be working in production also. There's a setting or something you're missing.
Answer this what is url
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
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.
Show me your folder structure that you have in development
htdocs/what
can you give me your facebook id .i will send you entire zip file of my project???if it does not bother you.
htdocs/name of the project/
It's not finding your auto loaded files try to fix correctly.
You should have in development something like
htdocs/somefolder
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);
}
htdocs/somefolder(name of the project)
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.
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.
/../bootstrap.these two dotes are meant for????inside htdocs /laravel/project name???
http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/ here they are discussing the same problem i guess.
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.
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.
@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!
Can i ask the hosts to do something about it or there are no options left???@Snapey.
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.
DO you permission for folder:
bootstrap,
bootstrap/service.php,
storage/*
...
@quanghuy bro in the cpanel permissions automatically are 755 for folder and 644 for files.
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.
@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??
Do yourself a favour and use a VPS.
@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?
i am using ewebguru comapny for shared hosting.
Please or to participate in this conversation.