Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dipti's avatar

Index page is not coming / showing

I am using Ubuntu 14.04LTS. Here is what i have done till now:

  1. I have installed composer using curl,
  2. move this composer.phar file to usr/local/bin directory
  3. Created project laravel in my root folder i.e. var/www/html
  4. Change the permission of app/storage folder.
  5. Created the file name as laravel.conf like 000-default.conf in etc/apache2/site-avaliable directory.
  6. edit that laravel.conf file from terminal and save that file.
  7. disable 000-default.conf file and enable laravel.conf file.
  8. restarted the apache2 service.

Here is my problem: now i am trying to run it from my localhost but it does not show index.php page of my project laravel.

Any help to sort this, will be highly appreciated.

0 likes
3 replies
willvincent's avatar

your laravel.conf apache vhost config file should point to the public directory of your laravel project as it's document root.

dipti's avatar

DocumentRoot /var/www/html/laravel/public

    <Directory /var/www/html/laravel/public>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow, deny<Directory /var/www/laravel/public>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride All
     Order allow,deny
      allow from all 
      </Directory>

this is my directory from laravel.conf file. should i do some changes in this?

willvincent's avatar

Not sure if you double pasted there or something, as the syntax there is faulty. Anyway you should be able to simply do this:

DocumentRoot "/home/vagrant/projects/myapp/public"
<Directory "/home/vagrant/projects/myapp/public">
  AllowOverride all
</Directory>

You'll also want to be sure mod_rewrite is enabled so that the .htaccess file works, and you get clean urls and whatnot.

Please or to participate in this conversation.