Different DocRoots possible?

Discussion in 'Software' started by Treval, Apr 2, 2006.

  1. Treval

    Treval Private E-2

    Situation:
    I installed Apache-no-sll 2.054 with PHP 5.04 manually.

    Problem:
    My .php files are not parsed in any other place than http://localhost/ in my browsers (Opera 7.5 and IExlorer).
    For example my test.php only runs in http://localhost/test.php
    I want my .php files to run at any location.

    What I tried:
    http://us3.php.net/manual/en/install.windows.manual.php
    Both Apache and "Manual Installation Steps" I read carefully and executed the steps.
    I've searched and discussed, even modified the DocRoot directives in both php.ini and httpd.conf..no luck.
    What works: command line PHP. The exe is called when typing "php path/phpfile.php",
    and thus I also found in the registry that php.exe is called when running .php files.
    However, I don't want command line, I want it through browser.

    Information:
    Here is my httpd.conf:
    http://pastebin.com/635907
    My Apache error log:
    http://pastebin.com/636612
    My php.ini:
    http://pastebin.com/636617
    System:
    Microsoft Windows XP [Version 5.1.2600] with SP2. AMD Athlon XP 2400+. 1 GB DDR RAM.
    C:\Windows, D: and F: for data. PHP version: 5.04 | Apache version: 2.054 (no ssl).
    Apache dir: D:\APPZ\Apache2054\Apache2
    PHP dir: D:\APPZ\PHP504

    My question is:
    What must I do for my .php files to be able to be parsed and interpreted correctly
    by the browser, regardless of the directory where the .php file is (other than the location http://localhost)?

    Many thanks for your attention and patience.

    Treval
     
  2. Treval

    Treval Private E-2

    Problem solved!

    Alias /Websites "F:\\Websites"
    <Directory "F:/Websites">
    Options +Indexes
    Order allow,deny
    Allow from all

    </Directory>
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds