There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Finding Apache Config file


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
mike.allemande's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Oct 2007
Experience: Intermediate
28-Mar-2008, 11:39 PM #1
Solved: Finding Apache Config file
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
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
28-Mar-2008, 11:50 PM #2
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
mike.allemande's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Oct 2007
Experience: Intermediate
29-Mar-2008, 11:36 AM #3
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
mike.allemande's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Oct 2007
Experience: Intermediate
29-Mar-2008, 11:41 AM #4
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
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
29-Mar-2008, 12:04 PM #5
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?
__________________
Good Luck on your fix

My real hobby..JoyCo
My real Job..(Second Hobby) IAFF Local 1865
Like the sites? My hobby is the one that created them!

Last edited by Sequal7 : 29-Mar-2008 12:35 PM. Reason: another question to answer
mike.allemande's Avatar
Computer Specs
Junior Member with 13 posts.
 
Join Date: Oct 2007
Experience: Intermediate
29-Mar-2008, 03:34 PM #6
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.
Sequal7's Avatar
Computer Specs
Distinguished Member with 2,369 posts.
 
Join Date: Apr 2001
Location: Around the corner!
Experience: Including today?
29-Mar-2008, 07:07 PM #7
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.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:41 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.