Tech Support Forum banner

.htaccess troubles

1363 Views 6 Replies 3 Participants Last post by  Krak
I have a server running the typical Apache (v1.3.26), PHP (v4.1.2), MySql (3.23.49) setup on Linux (dunno which distro).

Im having a hard time getting .htaccess files to work.

I talked to the guy that owns/runs the server, hes a friend of mine, and he said all I had to do was add the necessary stuff in my .conf file. The server is home to a few people, and I have a few sites on it. When I log in there is a "etc" and "sites" folder. The "sites" folder is where all my web files go...the "etc" is where the dns setting files and the .conf's for all my sites are.

I have a development server that I run at home (Apache2, PHP v4.3.11, MySQL v3.23.49 on Windows XP)....So I edited the "mywebsite1.conf" file and added the same values I have in my home Apache .conf file to try and get .htaccess to work.

No go. They still dont work on my website. There is no CPanel or anything like that, but I did have him restart Apache after I uploaded my changed .conf file.

In all of my "Directory" tags on all of my Virtual Hosts I have:

Code:
    <directory "/users/myname/sites/mysite/htdocs">
		IndexOptions +FancyIndexing +FoldersFirst
		IndexOrderDefault Ascending Name
	        options indexes multiviews
                allowoverride all
                order allow,deny
                allow from all
    </directory>
Which is what I have at home, and it works just fine. What am I doing wrong? Is there a master .conf file that has to be edited? And if so, what specific line/code has to be added or changed?

Thanks.
See less See more
Status
Not open for further replies.
1 - 7 of 7 Posts
I'm no master at this, but I do know that .htaccess needs mod_rewrite installed on you server to work. So if there is some way for you to check on what MODs your have installed, look for mod_rewrite.

I just got Apache2Triad and it came with it.
www.apache2triad.net
Yeah, I just checked my php info page...

Loaded Modules: mod_rewrite is listed in the box.
apache2triad is awesome...it comes with everything, and a nice configuration gui to configure it all at once. On top of that, it's running nice and stable on my 2000 box, and all I had to do was change my public_html dir (because I installed on my D drive, not my C)
Im not having issues on my home machine...And the web server works just fine, has for years, I just need some help with getting .htaccess files to be used.

I figure it is probably a setting in a .conf file, but which one? I have changed mine to reflect what works on my home machine. Is is a setting in the "master" .conf? I need to know what has to be changed, specifically, before I pester my server admin with changes I need.

I have used things like Triad and those others, and I dont care for them. Id rather install Apache, PHP, and MySQL manually. Which is what I do... You have way more control over the setup, and you might actually learn something in the process. Instead of just clicking a box in the GUI.
Krak said:
Im not having issues on my home machine...And the web server works just fine, has for years, I just need some help with getting .htaccess files to be used.

I figure it is probably a setting in a .conf file, but which one? I have changed mine to reflect what works on my home machine. Is is a setting in the "master" .conf? I need to know what has to be changed, specifically, before I pester my server admin with changes I need.

I have used things like Triad and those others, and I dont care for them. Id rather install Apache, PHP, and MySQL manually. Which is what I do... You have way more control over the setup, and you might actually learn something in the process. Instead of just clicking a box in the GUI.
I've installed it manually before...it doesn't make it any better. On top of that triad is easier to configure and get running.

Regardless, if there is a conf file you need to edit to get your htaccess files working, it's httpd.conf that's the only configuration file you should ever really need to configure (unless it's something for php or mysql).
I got it sorted out. Was using the wrong wording in some wrong spots.
1 - 7 of 7 Posts
Status
Not open for further replies.
Top