GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess not working in sub directories, why? (https://gfy.com/showthread.php?t=1031527)

acctman 07-24-2011 05:22 PM

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..

HomerSimpson 07-24-2011 06:15 PM

if you have set up /path/site to php4
/path/site/subfolder will also be php4

acctman 07-24-2011 08:41 PM

Quote:

Originally Posted by HomerSimpson (Post 18305097)
if you have set up /path/site to php4
/path/site/subfolder will also be php4

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

Tempest 07-24-2011 09:59 PM

Talk to your host about it.. I doubt you can solve it in an htaccess file.

Barry-xlovecam 07-25-2011 05:32 AM

As a general note: the first .htaccess has priority ...

acctman 07-25-2011 08:20 AM

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

V_RocKs 07-25-2011 08:24 AM

Maybe it'd be easier to fix the issues in the CMS to work with PHP5...

Can't wait for 6.

Barry-xlovecam 07-25-2011 08:30 AM

We had a problem with a promo tool that uses rewrites in .htaccess subdirectories.

Maybe, this might help ...
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.

acctman 07-25-2011 11:12 AM

Quote:

Originally Posted by V_RocKs (Post 18306037)
Maybe it'd be easier to fix the issues in the CMS to work with PHP5...

Can't wait for 6.

I was planning on waiting till 6 before doing anything. I just hope 6 will process 5 scripts with no problem

CurrentlySober 07-25-2011 11:13 AM

Quote:

htaccess not working in sub directories, why?
Because you smell of poo?

acctman 07-25-2011 11:28 AM

Quote:

Originally Posted by Barry-xlovecam (Post 18306049)
We had a problem with a promo tool that uses rewrites in .htaccess subdirectories.

Maybe, this might help ...
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.

thanks, that worked!

Barry-xlovecam 07-25-2011 01:32 PM

cool :thumbsup

fris 07-25-2011 05:24 PM

php4 is pretty new


All times are GMT -7. The time now is 08:22 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123