0

/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411

This error above I've faced on a free hosting service that uses PHP 5.3

I'm trying also on another paid service with PHP 5.3 and I'm getting the 500 Internal Server Error, and I made sure my routes and paths are good to go. (The index.php in the public folder, and the /bootstrap/path.php files are good to go with DIR URIs).

Now I'm sure I will keep getting these kind of errors and my app won't work unless I host it on a service with PHP 5.6, but I was hoping there would be a way that I could downgrade my Laravel version or PHP version for some kind of Backward Compatibility.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

My files are in the root directory, and there isn't any folder named public_html and so the files originally in the Laravel/public folder are dispersed in the root directory and my other application files and folders are in a folder in the root directory.

Any suggestions or help would really be much appreciated.

4

2 回答 2

1

Laravel 4.2 需要 PHP 5.4。

Laravel 4.2 需要 PHP 5.4 或更高版本。这个升级后的 PHP 要求允许我们使用新的 PHP 特性(例如特征)为 Laravel Cashier 等工具提供更具表现力的接口。与 PHP 5.3 相比,PHP 5.4 还带来了显着的速度和性能改进。

请参阅此以获取更多信息: http: //laravel.com/docs/4.2/releases

您的问题很不清楚,因为您首先声明您在使用 PHP 5.6 时收到 500 Internal Server Error(在标题中,并且假设在标签中),但随后您说“[the] 应用程序将无法工作,除非 [你] 将它托管在使用 PHP 5.6" 的服务上。

于 2015-01-15T14:14:31.360 回答
0

.htaccess我在编辑服务器文件夹中的文件时遇到了这个问题/public_html

或者

通过使用cPanelRedirects并使其将服务器重定向到

domain.com/{if it's inside a folder inside the public_html}/index.php

然后所有路线和链接都工作得很好。

如果您想更改URL并使用,Pretty URLs参阅Configuration.

于 2015-01-19T14:20:10.947 回答