Gallery 2.0 CVS in Windoze
pawmarks
Joined: 2002-08-19
Posts: 19 |
Posted: Sun, 2002-11-10 19:45 |
Is there a way to test 2.0 CVS on a windows NT server? Would love to help de-bug but no *nix server here (yet) |
|
Posts: 20
yes, where can i download the latest 2 version?
and when do you expect it to be released?
thanks
Posts: 29
pawmarks: I suppose when you install apache, php4, mysql and netpbm on windows NT, Gallery should work as well..
grumble: have a look here: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/gallery/gallery2/
also check http://www.sf.net/projects/gallery and click CVS for instructions.
Maybe a more interesting question to ask (at least for me :smile: is when the database is expected to be frozen. So you can populate the new gallery without the risk of losing your data because of structure changes..
Posts: 7994
G2 will work somewhat on Windows at the moment, but I have not yet written the full platform code for it so your results may vary.
It's getting close to a freeze date, but I'm not going to make any promises until we release the first public release. Specifically, I reserve the right to change the db structure after the alpha period, just in case.
Posts: 7994
FYI, I checked in a bunch of code last night that enabled Gallery on my Win2K Apache 2.0 PHP 4.2.3 box. Try it out.
Posts: 20
thanks for the info!
bharat, you dont have to make promises, but a good guess would be ok. :razz:
Posts: 7994
Unfortunately I can't make a good guess at this point, either. My schedule fluctuates pretty dramatically. What I can promise is that I'll continue to work on it steadily. IF I'm able to continue at this rate, we'll probably see something that starts to be usable by sometime in December. It won't have all the features that G1 has, but it'll be a very solid platform upon which to build them.
Posts: 19
Ok, but should I even bother on my NT Apache 1.x php 4.1.1 server? or do I stand more than a snowball's chance in..... :lol:
Posts: 115
Setup details:
-Windows 2k with SP2
-Apache 1.3.26
-PHP 4.2.4-dev
-G2 Alpha (downloaded 11/16/02)
Although the setup seemed to go well, I get the following error at the top of every page:
Warning: Cannot add header information - headers already sent by (output started at f:apachehtdocsgallery2libadodbdriversadodb-mysql.inc.php:902) in f:apachehtdocsgallery2modulescoreclassesGallerySession.class on line 214
Looks good so far :smile: Thanks for helping get us Windows people up and running with the Alpha..
Marc
Posts: 7994
Don't mistake the current code for an alpha. It's still not close enough to be called that. :smile:
I've fixed this. It was caused by spurious carriage returns at the end of the various ADOdb files.
Posts: 20
thank you again for the information bharat.
one more question. :smile:
will G2 work with safe_mode? cause this is the only reason why i cant use G1 atm. (and my client is gettin impatient. :wink
Posts: 49
I seem to remember several questions along these lines, and the reply has always been NO, because of the way the code works safe_mode is not an option. Unless bharat has managed to pull a very large rabbit out of his Master PHP Coder hat, your client might want to find a new host for their site.
Sorry.
BTW: I'd love it if someone could tell me that I'm wrong.
Posts: 7994
Safe mode is a nightmare. It can be configured with many different restrictions. See:
http://www.php.net/manual/en/features.safe-mode.php
Your ISP can configure safe mode such that it disables half of PHP's functionality. Or it can configure safe mode so that it does practically nothing. It is very challenging to
try to support this type of restriction, and I'm not sure that it's actually worth the
trouble. A more reasonable restriction would be to add an open_basedir restriction
and disable the use of exec(). This is actually more secure than using safe
mode, because if you grant exec functionality then a malicious user can still use
PHP to exec a script that does bad things.
G2 should work in environments that have an open_basedir restriction and exec()
disabled, as long as the ISP provides GD or GD2 to do the graphics manipulation.
I'm confident that this will work. However, I doubt that I'll invest much time into
getting generic safe mode support because it's simply too intractable a problem.
Posts: 115
After upgrading to the newest CVS version, running setup, getting a successful setup message, I then get this when I go to open the site:
Error (ERROR_STORAGE_FAILURE)
in f:apachehtdocsgallery2modulescoreclassesGalleryStorageDatabaseStorage.class at line 386
in f:apachehtdocsgallery2modulescoreclassesGallery.class at line 292
in f:apachehtdocsgallery2modulescoreclassesGalleryView.class at line 314
in f:apachehtdocsgallery2modulescoreclassesGalleryView.class at line 257
in f:apachehtdocsgallery2modulescoreclassesGalleryView.class at line 149
BTW, is this the best forum for sending these types of report?
Thanks,
Marc
Posts: 115
So, since the error was a storage error, I decided to drop the gallery2 database and have setup create it from scratch.
After forgetting to remove everything from the data directory and getting some errors, I realized I had to clean it out. Once the data directory was empty and the database dropped, the setup went smoothly and I am able to get into the main.php page without a problem now.
Now Iwill play around :smile:
Sorry for being a pain the butt.
Marc
Posts: 3474
Hi. You should wipe out your G2 data directory as well. You can drop the database and clean out the data from the test harness as well.