1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: Finding Apache Config file

Discussion in 'Web Design & Development' started by mike.allemande, Mar 28, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. mike.allemande

    mike.allemande Thread Starter

    Joined:
    Oct 2, 2007
    Messages:
    13
    Hi

    I have just purchased my first web hosting package and and have installed PHPList
    with Fantastico. I tried to setup confirmation emails but got the following message:
    ----------------------------------
    Error: please make sure that index.php is your default document for a directory
    If you have just installed PHPlist and get this message, make sure that your Apache
    configuration has somewhere: DirectoryIndex index.php index.html
    or that at least index.php is mentioned before index.html
    -----------------------------------
    I am not sure how to get into the Apache Config file
    I know it is probably httpd.conf but I have looked all over the site and cannot find

    Can someone point me in the right direction
    Thanks
    Mike
     
  2. Sequal7

    Sequal7

    Joined:
    Apr 14, 2001
    Messages:
    2,382
    Hello, your provider will have access to the httpd.conf file, not you.

    You can set that using an .htaccess file, you more than likely already have one, just have to edit it by adding the following

    Code:
    DirectoryIndex index.php index.htm index.html index.cgi
     
  3. mike.allemande

    mike.allemande Thread Starter

    Joined:
    Oct 2, 2007
    Messages:
    13
    Hi

    I have a problem in that I now can't access my site and don't know what to do
    I can get into cPanel
    I did as you suggested and put the line of code into .htaccess file which now reads

    --------------------------------------------------------------
    DirectoryIndex index.php index.htm index.html index.cgi

    <FilesMatch "\.(php|inc)$">
    Order allow,deny
    deny from all
    </FilesMatch>
    <FilesMatch "(index.php|dl.php|ut.php|lt.php|download.php)$">
    Order allow,deny
    allow from all
    </FilesMatch>
    --------------------------------------
    I wondered if there was a problem from before when I installed PHPList
    from Fantastico. It wouldn't install because there were two files that were
    wrong. I deleted these files .htaccess and an images folder
    Could that have been the cause. The files are still in the Trash folder, so
    I could get them back.

    I have been looking at lots of tutorials online and am learning a lot
    and I suppose experience helps one get familiar but it does seem
    a minefield.

    Any suggestions gratefully received
    Mike
     
  4. mike.allemande

    mike.allemande Thread Starter

    Joined:
    Oct 2, 2007
    Messages:
    13
    Hi
    Just another thought
    It seems like things have got in a mess for me.
    I think I probably made the mistake of changing things around.
    I just don't understand what all the folders are doing there
    on the site.

    How would it be to do a re-install and have another go
    But I don't even know how to do that.

    The print world is so much easier!!

    Thanks for your help
    Mike
     
  5. Sequal7

    Sequal7

    Joined:
    Apr 14, 2001
    Messages:
    2,382
    Just remove the line then, your .htaccess file will be back to original, and your site should be accessible.

    As a note, this file should reside in your public_html folder.
    You would need an index.htm or index.html .or index.php file there too in order for your site to be accessible.

    The file structure in your root folder should remain the same, and the .htaccess file should not be in the root.

    Also, that is your complete htaccess file in the public_html folder?
     
  6. mike.allemande

    mike.allemande Thread Starter

    Joined:
    Oct 2, 2007
    Messages:
    13
    Hi Sequal

    I am starting to get there.
    I now have index.html coming up and I can get into admin

    I changed the code and put index html first
    "DirectoryIndex index.htm index.html index.php index.cgi"
    So, I think have have soved this problem

    If you don't mind I have one further question
    I am assuming the Root folder to be the main folder There are a lot of files
    and folders in there. One folder is public_html and another one is.www
    This .www folder seems to have almost all of the same files as public-html
    and this www folder is outside of public_html and has a .htaccess file
    I don't understand why the www folder is there.

    thanks for your help
    Mike

    I appreciate you help and I wonder if you know of any books or courses to help.
     
  7. Sequal7

    Sequal7

    Joined:
    Apr 14, 2001
    Messages:
    2,382
    The www link is just a shortcut to the public_html so it lists the same content as the other. You should not move it, and there is no need to be concerned about it.
     
  8. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/698158

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice