|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
PHP Installation - Problem with path(s)
Hey there,
I am encountering a strange issue, while installing PHP. OK, here is the outline: I am installing Apache/PHP on a new computer - I already did that almost a million times, but now it is really puzzeling me... Win XP Pro ZoneAlarm 6.5 Apache/2.2.2 (Win32) PHP Version 5.1.2 PHP api: Apache 2.0 Filter I added this to the httpd.conf file: Code:
# PHP 5 Support LoadModule php5_module "c:/PHP/php5apache2_2_filter.dll" LoadFile "C:/php/php5ts.dll" AddOutputFilter PHP php PHPIniDir "C:/php" Document root: Code:
DocumentRoot "E:/www" <Directory "E:/www"> AllowOverride None Order allow,deny Allow from all </Directory> PHP.ini (which resides in C:/PHP/): Code:
;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; include_path=".;C:PHPincludes" doc_root = E:www So, here is the funny thing: Apache runs, and when I place a php file in my document root (E:/www/) and call it as e.g. http://localhost/info.php it works like a dream... I get the php_info(), all the modules i need are loading - all good BUT when i try to accesss my sites, the include paths are not working. example: Quote:
And that is the case with any page under http://localhost/myfolder/ What am I not getting? Which value do I have to check/set/change ? A very puzzled, Anuragji |
|
#2
|
|||
|
|||
|
RE: PHP Installation - Problem with path(s)
Ad Preview post...
The strange thing is that I simply transferred the sites fomr another computer, where they worked perfectly. Now, not all sites are doing something funny, it almost seems as if the only thing not working is to include a file which is in a "sibling" folder and there for is called somehow like this: Quote:
If I change to an absolute path it works... but that can hardly be the solution... Includes from a child folder seem to work just fine too... And, apart from issues from my own sites, I encounter the same thing when trying to install phpmyadmin... Still clueless, Anuragji |
|
#3
|
|||
|
|||
|
RE: PHP Installation - Problem with path(s)
The issue has been resolved in a somewhat unlikely way:
I switched to Apache 2.0.59 and PHP 5.1.2. that in turn made id possible to use php5apache2.dll (instead of php5apache2_2_filter.dll). And out of a sudden it all works again... Seemingly random stuff like that def. adds spice to life ;) Anurag |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP Installation - Problem with path(s) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|