HostOnNet Blog

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

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.