Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sbryan

macrumors member
Original poster
Jun 6, 2007
96
0
So I have two websites running from the same box and same directory.

ex:

websites/website1

websites/website2

Both websites use PHP. One is a Wordpress blog with heavy PHP, another is a Flash page with a PHP formmail parser.

For whatever reason, PHP works for website1, but not for website2. I placed a test.php file in each directory with phpinfo(); and ran it. One website was able to process the command while another wasn't.

NOTE: PHP was installed on my root drive, so it's outside of these website folders.

I don't remember specifying which directories could use PHP, nor can I find any specific references in my PHP installation.

Does anybody have an idea of what may be going on?
 
have you changed anything in your php.ini file / where does this reside?
what about your htaccess file?

what program are you using to host these sites?
 
Have you checked the Apache and PHP logs to see if any errors are there that may lend a clue? One the part that doesn't work, what shows up, plain text version of the PHP file?
 
-This is an IIS6 environment -- not by my choice. It was a real nightmare to setup Wordpress permalinks.

-Not sure about htaccess. Will have to check into that.

I will check on the location of PHP.ini and logging features. I'm working through the company's IT department, which ties my hands on immediate deployment and testing and pretty much requires my physical presence.
 
PHP.INI seems to reside in two places:

C:\PHP
and
C:\Program Files\PHP
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.