PDA

View Full Version : Moved From Apache To Windows Server-can't get path correct


MattNC
01-20-2006, 02:12 PM
I have moved a site using EasyPHP calendar from a Linux/Apache server to a Windows server. In the calendar.php file where the server path is specified, the old path was /home/ruckusho/public_html/v2/calendar/

The comments say that on a Windows server the path will start with a drive letter. My Windows path for the website is e:\web\ruckushouse\htdocs and the calendar is located at e:\web\ruckushouse\htdocs\v2\calendar, but I can't get this path to work.

I keep getting the following error when trying to load any page on the site that refers to the calendar:

PHP Warning: main(e:\web uckushouse\htdocs\v2\calendarfunctions/functions.inc.php): failed to open stream: Invalid argument in E:\web\ruckushouse\htdocs\v2\calendar\calendar.php on line 37 PHP Fatal error: main(): Failed opening required 'e:\web uckushouse\htdocs\v2\calendarfunctions/functions.inc.php' (include_path='.;c:\php4\pear') in E:\web\ruckushouse\htdocs\v2\calendar\calendar.php on line 37

If I change the path on line 37 for the HTML functions from functions/functions.inc.php to functions\functions.inc.php (with a backslash) then I get this error message:

PHP Warning: main(e:\web uckushouse\htdocs\v2\calendarfunctions\functions.i nc.php): failed to open stream: Invalid argument in E:\web\ruckushouse\htdocs\v2\calendar\calendar.php on line 37 PHP Fatal error: main(): Failed opening required 'e:\web uckushouse\htdocs\v2\calendarfunctions\functions.i nc.php' (include_path='.;c:\php4\pear') in E:\web\ruckushouse\htdocs\v2\calendar\calendar.php on line 37

Any help would be greatly appreciated. Thanks.

Brian
01-20-2006, 03:18 PM
Try removing the path information leaving just the quote marks for both paths, then log into the Setup Manager.

This should automatically fix the paths.

MattNC
01-20-2006, 03:30 PM
I get this error message when I try to access setup:

PHP Warning: Unterminated comment starting line 3 in E:\web\ruckushouse\htdocs\v2\calendar\setup\index. php on line 3

Brian
01-20-2006, 04:06 PM
That probably means the file(s) are corrupt. Please download in install the calendar from the original calendar distribution from the Free Download page.

ve9gra
01-20-2006, 04:20 PM
No... on windows you still need to use the "/" instead of the "\"... In PHP "\" is an escape character which is why it's telling you that the strings are unterminated and etc...

Brian
01-20-2006, 04:23 PM
But, the particular file in the error message is encoded, so if it displays that error, there must be something amiss with the file. :)

ve9gra
01-20-2006, 04:31 PM
But wouldn't /setup/index.php require calendar.php in which the paths are "unterminated" because of the backslashes ?? ;)

Brian
01-20-2006, 06:43 PM
Good thinking... but... the index.php file in the Setup directory doesn't open the calendar.php file.

However, once the index.php file works (or before), the paths in the calendar.php file will need to be updated as you stated in a previous post.

:) :) :)

ve9gra
01-20-2006, 09:26 PM
Dang! And I so thought that I had it all figured out... :(

;)

MattNC
01-23-2006, 09:36 AM
Even though the hosting server I am using passed the tester script, it turns out they don't have an IonCube (or Zend) decoder, and they don't intend to add this functionality. Guess I am out of luck since I have multiple sites hosted with this company. Now I need to find a calendar similar to this one, but which will work on a Windows/ASP.NET host (without a decoder).

ve9gra
01-24-2006, 08:28 AM
The ionCube doesn't need to be installed at the server level. They only need to allow for run-time loading of extensions. If you take the ionCube version, the loader is included in the package. If the tester script said that ionCube was suitable for running on that server, you'll more than likely be able to run it.

I've run the calendar on a Windows server before (my own) without problems.

MattNC
01-24-2006, 09:58 AM
My host doesn't allow me to access or edit the php.ini file (which is what I would need to do to point to the ioncube loader dll), and it doesn't look like they have any interest in making any changes for me. Looks like I'm out of luck.

ve9gra
01-24-2006, 05:32 PM
I don't understand why you'd need to edit the php.ini... If the script said that it supported runtime loading, that's all you'd need.

Have you tried to install the ionCube version?

MattNC
01-24-2006, 05:39 PM
Yes, I downloaded the zip file of the IonCube version and followed the instructions to manually install it. Following IonCube's instructions for installing their decoder, I ran the ioncube-loader-helper.php page and it said that the php.ini file needed to have the path to the ioncube_loader_win_4.3.dll added to it in order to function.

Brian
01-24-2006, 06:09 PM
His host has disabled the ability for the loaders to load a run-time. :(