PHP Problems With IIS 5.0 running vBulletin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thecheesehunter
    New Member
    • Apr 2002
    • 6

    PHP Problems With IIS 5.0 running vBulletin

    I just downloaded vBulletin Lite and I am trying to set it up on a Windows 2000 Server running IIS 5.0. PHP 4.1.2 is installed on the server as an ISAPI module.

    When I try to run the /admin/install.php script to setup up vBulletin Lite, I get the following error:

    Warning: Failed opening 'c:\local\path\to\vbulletin\admin\install.php' for inclusion (include_path='.;c:\php') in Unknown on line 0

    I know this is a problem with the PHP configuration on the server and not vBulletin Lite but I would appreciate some help. What should I set the include_path variable to in php.ini? How do I know what it should be?

    Any help would be appreciated!
    Thanks!
  • nuno
    Senior Member
    • Apr 2001
    • 4346
    • 3.8.x

    #2
    replace it with
    [code]
    ;include_path='.;c:\php'
    [/code]
    You're my Prince of Peace
    And I will live my life for You

    Comment

    • thecheesehunter
      New Member
      • Apr 2002
      • 6

      #3
      Comment it out?

      You think commenting it out will work? I thought that was required.

      Comment

      • nuno
        Senior Member
        • Apr 2001
        • 4346
        • 3.8.x

        #4
        Re: Comment it out?

        [QUOTE][i]Originally posted by thecheesehunter [/i]
        [B]You think commenting it out will work?[/B][/QUOTE]
        yes
        [QUOTE][i]Originally posted by thecheesehunter [/i]
        I thought that was required. [/B][/QUOTE]
        no
        You're my Prince of Peace
        And I will live my life for You

        Comment

        • thecheesehunter
          New Member
          • Apr 2002
          • 6

          #5
          Commenting it out didn't work

          Ok I tried commenting it out but it didn't work. When I commented out that line, the include_path variable got set to c:\php4\pear by default. I now get the error:

          Warning: Failed opening 'c:\local\path\to\vBulletin\admin\install.php' for inclusion (include_path='c:\php4\pear') in Unknown on line 0

          Any ideas now?

          Comment

          • nuno
            Senior Member
            • Apr 2001
            • 4346
            • 3.8.x

            #6
            hmm
            try this
            edit [b][i]php.ini[/i][/b] and replace
            [code]
            include_path='c:\php4\pear'
            [/code]
            with
            [code]
            include_path='c:\path\to\php4isapi.dll'
            [/code]
            You're my Prince of Peace
            And I will live my life for You

            Comment

            • thecheesehunter
              New Member
              • Apr 2002
              • 6

              #7
              Similar Error...

              Ok I tried that and now I get this error:

              Warning: Failed opening 'c:\local\path\to\vBulletin\admin\install.php' for inclusion (include_path='.;c:\php;c:\winnt\system32\php4isapi.dll') in Unknown on line 0

              Any ideas now?

              Comment

              • Pingu
                Senior Member
                • Jan 2001
                • 498
                • 4.2.5

                #8
                No matter what you put in, everything fails on c:\php\whatever

                So, maybe a rights thing?

                Give the Web Anonymous Users Read & Execute, List Folders Contents and Read rights to c:\php and see if that helps

                Comment

                • thecheesehunter
                  New Member
                  • Apr 2002
                  • 6

                  #9
                  Permissions didn't fix it

                  I verified that those permissions were set but it did not fix the problem. I still get the same error.

                  Comment

                  • Pingu
                    Senior Member
                    • Jan 2001
                    • 498
                    • 4.2.5

                    #10
                    1 - Download the "PHP 4.1.2 zip package" from php.net's Windows Binaries
                    2 - Extract to a directory, like: c:\php
                    3 - Copy php4ts.dll and php4ts.lib to c:\winnt\system32
                    4 - Copy php.ini-dist to c:\winnt and rename it to php.ini (overwrite the old one)
                    5 - Open c:\winnt\php.ini in a text editor and change extension_dir to: extension_dir="c:\php\extensions"
                    Do not make any other changes. If this works, then change one thing at a time later, and see where it fails. You need to restart IIS after each change.
                    6 - Start Internet Services Manager
                    7 - Rightclick your "computername" icon > Properties > click the Edit button in the Master Properties box to edit the WWW Service properties.
                    8 - Go to the 'Home Directory' tab > click the 'Configuration' button > Click the 'Add' button to add an Application Mapping > Click 'Browse' and enter the path to php4isapi.dll (c:\php\sapi\php4isapi.dll)
                    Use .php as the extension, All verbs, and check the Script engine checkbox.
                    9 - Give execute permissions on the homedirectory of the website in Internet Services Manager, rightclick the website and choose Properties
                    10 - Click the 'Home Directory' tab > Set 'Execute Permissions' to 'scripts only'
                    11 - Restart IIS.
                    12 - create a file called phpinfo.php in your website and put this code in:
                    <? phpinfo(); ?>
                    13 - Save the file, aim your browser to the phpinfo.php file on your site and see what happens

                    This is the minimum needed for php. Hope it helps...

                    Comment

                    • thecheesehunter
                      New Member
                      • Apr 2002
                      • 6

                      #11
                      Nothing will work

                      I am still getting the same error. This is really frustrating because nothing seems to work. I am completely out of ideas...

                      Comment

                      • Pingu
                        Senior Member
                        • Jan 2001
                        • 498
                        • 4.2.5

                        #12
                        Yep, running out of ideas.
                        One thing you might try though is completely uninstall php, restart IIS, and then install the cgi version (the self installer) from php.net. Once that works, you might try other stuff

                        Comment

                        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                        Working...