PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old August 19th, 2006, 03:39 PM
anuragji anuragji is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rhode Island, USA
Posts: 7 anuragji User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 33 sec
Reputation Power: 0
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:
Warning: include(../includes/header.php) [function.include]: failed to open stream: No such file or directory in E:wwwMBVaboutabout.php on line 1

Warning: include() [function.include]: Failed opening '../includes/header.php' for inclusion (include_path='.;C:phppear;c:phpincludes') in E:wwwMBVaboutabout.php on line 1


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

Reply With Quote
  #2  
Old August 19th, 2006, 05:01 PM
anuragji anuragji is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rhode Island, USA
Posts: 7 anuragji User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 33 sec
Reputation Power: 0
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:
include_once ("../includes/footer.php");


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





Reply With Quote
  #3  
Old August 21st, 2006, 02:31 AM
anuragji anuragji is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Rhode Island, USA
Posts: 7 anuragji User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 33 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP Installation - Problem with path(s)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway