Re: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Jim Lucas
David Stoltz wrote:
> Hi All,
> 
> I have a working application in PHP 5.3 under IIS6. I've created a WAMP 
> server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to 
> move the application to the new, dedicated server.
> 
> My first problem, the new server doesn't like this line of code in the 
> default.php:
> 
> 
> (It works fine on the current server)
> 
> If I remove the above line, the page shows fine. If the line is there, the 
> page cannot be displayed (not sure how to make it show the actual error, 
> since error logging is on, and error_reporting = E_ALL)
> 
> In the Apache httpd.conf file, I have the following:
> 
> DirectoryIndex default.php
> Options FollowSymLinks Includes
> Allow from all
> 
> 
> I'm assuming this allows "includes"
> 
> Does anyone have any idea?

First off, please start a new message instead of taking someones message
changing the subject and "trying" to call it your own.

Besides that...

Sounds like you have an include issue.

On the WAMP setup, modify your php.ini file so it will display_errors = on and
error_reporting = E_ALL

restart apache and you will see any errors that are being generated.

The directory block that you are showing us has nothing to do with PHP's include
process.  The only thing that it does it set the DirectoryIndex to use
default.php instead of the index.htm, index.html, or index.php

Basically, with PHP, you need to make sure that anything you include is actually
in your include path.  Check that and let us know what you find.

-- 
Jim Lucas
NOC Manager
541-323-9113
BendTel, Inc.
http://www.bendtel.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Ashley Sheridan
On Mon, 2010-03-01 at 13:37 -0500, David Stoltz wrote:

> Even if I comment out what's in the include file, it still errors.
> 
> It's the actual "include" statement causing the error, not what's in it
> 
> 
> -Original Message-
> From: Robert Cummings [mailto:rob...@interjinn.com] 
> Sent: Monday, March 01, 2010 1:33 PM
> To: David Stoltz
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Going from IIS6 to WAMP
> 
> What does it do? Force the connection to https? if so you need to 
> configure Apache to serve over https.
> 
> 
> 
> 
> David Stoltz wrote:
> > Hi All,
> > 
> > I have a working application in PHP 5.3 under IIS6. I've created a WAMP 
> > server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying 
> > to move the application to the new, dedicated server.
> > 
> > My first problem, the new server doesn't like this line of code in the 
> > default.php:
> > 
> > 
> > (It works fine on the current server)
> > 
> > If I remove the above line, the page shows fine. If the line is there, the 
> > page cannot be displayed (not sure how to make it show the actual error, 
> > since error logging is on, and error_reporting = E_ALL)
> > 
> > In the Apache httpd.conf file, I have the following:
> > 
> > DirectoryIndex default.php
> > Options FollowSymLinks Includes
> > Allow from all
> > 
> > 
> > I'm assuming this allows "includes"
> > 
> > Does anyone have any idea?
> 


The only error that the include statement could cause would be if the
server couldn't find the path to the file you were referencing, so it's
more likely to be an error with the contents of the include. Have you
checked your error logs? You can find out where these are by running a
phpinfo() script.

Thanks,
Ash
http://www.ashleysheridan.co.uk




RE: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread David Stoltz
Even if I comment out what's in the include file, it still errors.

It's the actual "include" statement causing the error, not what's in it


-Original Message-
From: Robert Cummings [mailto:rob...@interjinn.com] 
Sent: Monday, March 01, 2010 1:33 PM
To: David Stoltz
Cc: php-general@lists.php.net
Subject: Re: [PHP] Going from IIS6 to WAMP

What does it do? Force the connection to https? if so you need to 
configure Apache to serve over https.




David Stoltz wrote:
> Hi All,
> 
> I have a working application in PHP 5.3 under IIS6. I've created a WAMP 
> server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to 
> move the application to the new, dedicated server.
> 
> My first problem, the new server doesn't like this line of code in the 
> default.php:
> 
> 
> (It works fine on the current server)
> 
> If I remove the above line, the page shows fine. If the line is there, the 
> page cannot be displayed (not sure how to make it show the actual error, 
> since error logging is on, and error_reporting = E_ALL)
> 
> In the Apache httpd.conf file, I have the following:
> 
> DirectoryIndex default.php
> Options FollowSymLinks Includes
> Allow from all
> 
> 
> I'm assuming this allows "includes"
> 
> Does anyone have any idea?

-- 
http://www.interjinn.com
Application and Templating Framework for PHP


Re: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Robert Cummings
What does it do? Force the connection to https? if so you need to 
configure Apache to serve over https.





David Stoltz wrote:

Hi All,

I have a working application in PHP 5.3 under IIS6. I've created a WAMP server 
(Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to move the 
application to the new, dedicated server.

My first problem, the new server doesn't like this line of code in the 
default.php:


(It works fine on the current server)

If I remove the above line, the page shows fine. If the line is there, the page 
cannot be displayed (not sure how to make it show the actual error, since error 
logging is on, and error_reporting = E_ALL)

In the Apache httpd.conf file, I have the following:

DirectoryIndex default.php
Options FollowSymLinks Includes
Allow from all


I'm assuming this allows "includes"

Does anyone have any idea?


--
http://www.interjinn.com
Application and Templating Framework for PHP

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php