[Solved] Change default DirectoryIndex file

Discussion in 'Installation/Configuration' started by anark10n, Jul 28, 2022.

  1. anark10n

    anark10n Member

    Hey there
    So i'm hosting a site (apache/php) that doesn't use the standard index.html/index.php, and i'd like to change it the file that it uses: server.php. I tried creating a .htaccess file with "DirectoryIndex server.php" in the web folder, but that just produced a white page. Is there something I'm missing, something else I need to configure for ispconfig?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    See error.log of the website for the error message.
     
  3. anark10n

    anark10n Member

    Site error.log as per your request:
    Code:
    [Thu Jul 28 07:24:28.260311 2022] [fcgid:warn] [pid 15910] [client 41.182.1.146:46210] mod_fcgid: stderr: PHP Warning:  require(/var/www/clients/client7/web33/web/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/clients/client7/web33/web/public/index.php on line 24
    [Thu Jul 28 07:24:28.260612 2022] [fcgid:warn] [pid 15910] [client 41.182.1.146:46210] mod_fcgid: stderr: PHP Fatal error:  require(): Failed opening required '/var/www/clients/client7/web33/web/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/clients/client7/web33/web/public/index.php on line 24
    [Thu Jul 28 07:59:12.965910 2022] [fcgid:warn] [pid 16546] [client 41.182.1.146:49876] mod_fcgid: stderr: PHP Warning:  require(/var/www/clients/client7/web33/web/public/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/clients/client7/web33/web/public/index.php on line 24
    [Thu Jul 28 07:59:12.966810 2022] [fcgid:warn] [pid 16546] [client 41.182.1.146:49876] mod_fcgid: stderr: PHP Fatal error:  require(): Failed opening required '/var/www/clients/client7/web33/web/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/clients/client7/web33/web/public/index.php on line 24
     
  4. anark10n

    anark10n Member

    Not too familiar with php so it took me awhile, but i figured out why the nothing was rendering; the problem being the way the paths were being being passed.
     

Share This Page