0
votes

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

2
You need to upload your vendor folder.Marwelln
But i upload it and all of his sub foldersxfirebg

2 Answers

0
votes

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

$ cd www/     
$ git clone https://github.com/ME/MY-PROJECT.git .

2) Get Composer:

$ curl -sS https://getcomposer.org/installer | php -- --filename=composer

3) Update all dependencies (/vendor)

$ composer update

4) Move the /public/.htaccess to the root

$ mv public/.htaccess .

That'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 or DigitalOcean, the process would be much easy, just add the source origin, and most of things will be done automatically.

0
votes

Make sure the PHP version in your computer and the PHP version in the cpanel of your hosting site is the same. I also had the same problem and this helped me.