PHP Install

Discussion in 'Web Design and Development' started by sbryan, Jan 13, 2010.

  1. sbryan macrumors member

    Joined:
    Jun 6, 2007
    #1
    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?
     
  2. wishiwasmissing macrumors newbie

    Joined:
    Mar 30, 2006
    #2
    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?
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    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?
     
  4. sbryan thread starter macrumors member

    Joined:
    Jun 6, 2007
    #4
    -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.
     
  5. sbryan thread starter macrumors member

    Joined:
    Jun 6, 2007
    #5
    PHP.INI seems to reside in two places:

    C:\PHP
    and
    C:\Program Files\PHP
     

Share This Page