HostOnNet Blog

Local dev site shows a blank page. How do I fixed it

I was trying to configure hostonnet.test site on localhost. For that I added the below lines in etc/hosts file

127.0.0.1 hostonnet.test

and updated vhosts.conf with following

<VirtualHost 127.0.0.1:80>
        ServerName hostonnet.test
        DocumentRoot /home/tom/www/hostonnet
        <Directory "/home/tom/www/hostonnet">
            Options All
            AllowOverride All
            Require all granted
            Order allow,deny
            allow from all
        </Directory>
</VirtualHost>

Then I accessed hostonnet.test thorugh google chrome. But it was a blank page.

I installed composer

apt install composer

Then run the below from hostonnet folder

cd www/hostonnet
composer install

Now hostonnet.test started to working


About Sibi Antony

Bootstrap and Android LOVER. I've been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.
Posted in Linux