![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
htaccess not working in sub directories, why?
I have a site on my server that required php4 (uses custom CMS), so the webroot is set to php4 for it. By the default my server is php5.2 and when trying to run a php5 script under a sub directory it does not process. I can't seem to get php4 and php5 scripts to run under the same webroot in separate sub directories. Is there something in my httpd.conf that I need to change? i'm running apache2.2..
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
if you have set up /path/site to php4
/path/site/subfolder will also be php4
__________________
Make a bank with Chaturbate - the best selling webcam program ![]() ![]() ![]() Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
correct, but i want /path/site/subfolder1 to be php5 i've set a .htaccess with AddHandler application/x-httpd-php5 .php in it, but its not accepting the change. still reading as php4
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
|
Talk to your host about it.. I doubt you can solve it in an htaccess file.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
As a general note: the first .htaccess has priority ...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
I think it has something to do with the AllowOverride setting in httpd.conf but I'm only seeing Satisfy All under <FileMatch "^\.ht"> and when adding AllowOverride All I receive a warning. Apache 2.2 split up the httpd.conf settings so I'm not sure which include holds the correct settings. From doing some research if .htaccess aren't processing in sub directories then AllowOverride is set to None and needs to be set to All.
was trying to avoid having to submit a ticket to my datacenter but i guess i'll do that |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,405
|
Maybe it'd be easier to fix the issues in the CMS to work with PHP5...
Can't wait for 6. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
We had a problem with a promo tool that uses rewrites in .htaccess subdirectories. Code:
Note: There may be a long file like httpd.conf that may contain your domain's configuration. Edit your domain configuration; pico /etc/apache2/sites-available/doc_root Set the Overide for your domain configuration Paste with your path; <Directory "/home/user_name/www/public_html/domain"> AllowOverride All </Directory> Then; Cntl+X Y enterkey Then restart the Apache server This was part of the manual fix instructions I did. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Too lazy to wipe my ass
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,550
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
cool
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |