I am trying to install on a win2k box with XAMPP providing apache mysql and php.
When I access the main index.php I get errors starting with :
Warning: main(genieConfiguration.inc.php) [function.main]: failed to open stream: No such file or directory in E:\xampp-win32-1.4.9\xampp\tc\restored\phpCodeGenie3.0.2\index.php on line 1
............
This suggests to me that config not being seen at all. I have disabled .htaccess in case that was preventing access and since I cant see a phpInclude folder I copied config into :
xampp\php folder and xampp\php\php4
and
xampp\apache\conf
Any suggestions welcome.
James
Here is my config. Note that both SITE_PATH and URL_ADDRESS are good when typed into URL Bar.
// Linux Server
define("SITE_PATH","/usr/local/apache/htdocs/phpCodeGenie3.0");
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","win");
/*****************
// Windows Server
define("SITE_PATH","E:\xampp-win32-1.4.9\xampp\\tc\restored\phpCodeGenie3.0.2"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
***************/
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
with the hints above I really finally reached the log-in-page of phpCodeGenie, but at the top off the log-in page it gave me another warning:
"
Warning: session_start(): open(/tmp\sess_376f6cb8ea873ddb3563c6f22d00de96, O_RDWR) failed: No such file or directory (2) in C:\php5xampp-dev\php4\pear\genieConfiguration.inc.php on line 2
"
So what's wrong? [I enabled writing on the directory "generatedCode".]
Is there anybody having made a succesfull installation on Windows (with xampp)? I suppose it has only been tested on *nix-Systems.
Just a suggestion:
Wouldn't it be wonderfull to get an automatic installation-routine for checking the directorypath and writing a separate genieConfiguration.inc.php at the correct place? I think many users (that have unsucessfully tried to install phpCodeGenie would apologize that).
Thanx for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK,
The solution, for users of XAMPP for Windows 1.4.9 is to place the genieConfiguration.inc.php file in the php/pear directory as this seems to be configured as the include folder by php.ini that is in the apache/bin directory.
There is one subsequent problem that I came accross. The simple framework worked OK but the advanced framework displayed a multitude of errors. First, you need to track down the config file and place that in the same directory as genieConfiguration.inc.php and secondly, you need to manually edit line 16 ( the line immediately under : // Location of your Source code (absolute Paths)) so that the path uses double forward slashes in ALL locations. I found that the last separator was a single slash and that was enough to stop it all working.
Good luck.
James
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having the very same problem as above, and am also using XAMPP. Actually, I'm having the same problems with another script as well, with the same errors. It seems to me, after looking closely at the errors, that XAMPP, when using any kind of code that includes from the PHP.ini or calls anything inside the XAMPP folder(s), that it truncates the returned URL, like this: << (C:\XAMMP 1.4.13 mpp\htdocs\www\phpCodeGenie3.0.2\app\settings\definitions.inc.php)>> Notice that after the *13, that it only says "mpp"-- "xa" is missing. As I said, I'm having the very same errors with another script that uses a code extension that must be called from inside the XAMPP installation folder. Any Guru's out there like to give us a hint as to WHY this happens, and possibly what we can do to fix this??? Thanks in advance for your help!!!! DocPixel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi jdz66,
Just wanted to say THANK YOU for the help!!! Actually, your tip/file didn't work...still had the same errors, but it gave me an idea, especially with the htaccess file. I went ahead and reinstalled XAMMP...this time to a directory on my server, WITHOUT spaces. Before, I also had it in C:\XAMMP 1.4.13\xampp\ ....now I have it in C:\zserv\xampp and everything works like a charm :)) NOTE: I made up the directory name...can be anything...BUT WITHOUT SPACES! Thanks again for your help! BTW: that is a seriously OLD version of Xampp you set up
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Has anyone else had success with XAMPP?
I am trying to install on a win2k box with XAMPP providing apache mysql and php.
When I access the main index.php I get errors starting with :
Warning: main(genieConfiguration.inc.php) [function.main]: failed to open stream: No such file or directory in E:\xampp-win32-1.4.9\xampp\tc\restored\phpCodeGenie3.0.2\index.php on line 1
............
This suggests to me that config not being seen at all. I have disabled .htaccess in case that was preventing access and since I cant see a phpInclude folder I copied config into :
xampp\php folder and xampp\php\php4
and
xampp\apache\conf
Any suggestions welcome.
James
Here is my config. Note that both SITE_PATH and URL_ADDRESS are good when typed into URL Bar.
<?
session_start();
define("URL_ADDRESS","http://localhost/tc/phpCodeGenie3/web/");
// Linux Server
define("SITE_PATH","/usr/local/apache/htdocs/phpCodeGenie3.0");
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","win");
/*****************
// Windows Server
define("SITE_PATH","E:\xampp-win32-1.4.9\xampp\\tc\restored\phpCodeGenie3.0.2"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
***************/
You said you were running on Windows?
The windows section of your config is commented out, have you seen that?
put the /**** and ***/ around the LINUX section instead.
Also, a tip is to replace the "localhost" with the hostname of the machine in case you want to access genie remotely!
//Peter
Thanks Peter - I missed that - Alsa it didn't make any difference!
James
Hi!
with the hints above I really finally reached the log-in-page of phpCodeGenie, but at the top off the log-in page it gave me another warning:
"
Warning: session_start(): open(/tmp\sess_376f6cb8ea873ddb3563c6f22d00de96, O_RDWR) failed: No such file or directory (2) in C:\php5xampp-dev\php4\pear\genieConfiguration.inc.php on line 2
"
So what's wrong? [I enabled writing on the directory "generatedCode".]
Is there anybody having made a succesfull installation on Windows (with xampp)? I suppose it has only been tested on *nix-Systems.
Just a suggestion:
Wouldn't it be wonderfull to get an automatic installation-routine for checking the directorypath and writing a separate genieConfiguration.inc.php at the correct place? I think many users (that have unsucessfully tried to install phpCodeGenie would apologize that).
Thanx for your help.
OK,
The solution, for users of XAMPP for Windows 1.4.9 is to place the genieConfiguration.inc.php file in the php/pear directory as this seems to be configured as the include folder by php.ini that is in the apache/bin directory.
There is one subsequent problem that I came accross. The simple framework worked OK but the advanced framework displayed a multitude of errors. First, you need to track down the config file and place that in the same directory as genieConfiguration.inc.php and secondly, you need to manually edit line 16 ( the line immediately under : // Location of your Source code (absolute Paths)) so that the path uses double forward slashes in ALL locations. I found that the last separator was a single slash and that was enough to stop it all working.
Good luck.
James
I'm having the very same problem as above, and am also using XAMPP. Actually, I'm having the same problems with another script as well, with the same errors. It seems to me, after looking closely at the errors, that XAMPP, when using any kind of code that includes from the PHP.ini or calls anything inside the XAMPP folder(s), that it truncates the returned URL, like this: << (C:\XAMMP 1.4.13 mpp\htdocs\www\phpCodeGenie3.0.2\app\settings\definitions.inc.php)>> Notice that after the *13, that it only says "mpp"-- "xa" is missing. As I said, I'm having the very same errors with another script that uses a code extension that must be called from inside the XAMPP installation folder. Any Guru's out there like to give us a hint as to WHY this happens, and possibly what we can do to fix this??? Thanks in advance for your help!!!! DocPixel
I am using win2k and installed xampp 1.4.2
and installed fowllowing file and it is working very nice.
http://2ndhandcd.com/phpCodeGenie3_self_install.zip
Hi jdz66,
Just wanted to say THANK YOU for the help!!! Actually, your tip/file didn't work...still had the same errors, but it gave me an idea, especially with the htaccess file. I went ahead and reinstalled XAMMP...this time to a directory on my server, WITHOUT spaces. Before, I also had it in C:\XAMMP 1.4.13\xampp\ ....now I have it in C:\zserv\xampp and everything works like a charm :)) NOTE: I made up the directory name...can be anything...BUT WITHOUT SPACES! Thanks again for your help! BTW: that is a seriously OLD version of Xampp you set up
hey i didnt try to put the config file in oh the php/pear directory, i just make my .htaccess look like this
php_value include_path 'C:\apachefriends\xampp\htdocs\genie\app\settings'
i didnt use double quotes, wierd i reach the login page and created simple codes, but the advance codes still shows an array or errors.
what could be wrong with it.