Hi there i follow this tutorial how to setup on the FreeWebHostingArea com : If your domain is pointed to public_html directory then all content should placed in that directory. How ? let me tell you
Copy all files and folders ( including public folder ) in public html Copy all content of public folder and paste it in document root ( i.e. public_html ) Remove the public folder Open your bootstrap/paths.php and then changed 'public' => DIR.'/../public', into 'public' => DIR.'/..',
and finally in index.php,
Change
require DIR.'/../bootstrap/autoload.php';
$app = require_once DIR.'/../bootstrap/start.php'; into
require DIR.'/bootstrap/autoload.php';
$app = require_once DIR.'/bootstrap/start.php';
but when i load the index i get this error
Fatal error: require(): Failed opening required '/home/vhosts/epernikhardware.eu5.org/vendor/composer/autoload_files.php' (include_path='/home/vhosts/epernikhardware.eu5.org/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/pear:/usr/share/php') in /home/vhosts/epernikhardware.eu5.org/vendor/composer/autoload_real.php on line 47
And can amy one explain me how to easily get this simple site to work is it so hard to publish a few web pages with laravel framework. Please help
I don't know about that hosting but for other hosting service such as
JustHost
,GoDaddy
,BlueHost
,HostGator
... I deploy the Laravel web pretty much easy.1) Access to the host via SSH, get the source code
2) Get Composer:
3) Update all dependencies (
/vendor
)4) Move the
/public/.htaccess
to the rootThat's all, site is ready. Perhaps, there are more steps in configuring the database but it is not necessary to mention here.
If you host your site on
Forge
orDigitalOcean
, the process would be much easy, just add the source origin, and most of things will be done automatically.