// Linux Server
define("SITE_PATH","/var/www/html/phpCodeGenie"); // no trailing slashes
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","nix");
/*
// Windows Server
define("SITE_PATH","D:\\projects\\phpCodeGenie3.0"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
*/
// Specify the language that you want to use phpCodeGenie in
// You can make your own language file if it does exist yet
// and send your contribution back to phpCodeGenie
define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php");
I also have the generatedCode folder permissions set to 777.
I got it to work by placing genieConfiguration.inc.php into the default php includes folder. Still, though, I am baffled by why it doesn't work with the .htaccess.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm setting all this up on win2k as localhost to play with the app before my much geekier friend sets up fedora core on a box next week. I have minimal PHP/MySql experience. PHP is running (got the right .dll in the right place (2). MySQL is running, I setup a password and some DBs with the CC. I go to http://localhost/genie/ and see all the pretty icons, etc. I enter MySQL-localhost-root-pw. I then rub the lamp and get nothing but->
No folders are set to read only and my friend (who is the hacker) said he got his to work but I'm trying to do this on my own (so much for that)... anyway, is there some sort of plugin or sql piece I'm missing? Also I've looked all over the board searching and no one else is dumb enough to try to get this to work on Windows it appears, so was wondering if I could get a pointer. I assume it's an SQL thing... or a PHP include thing not being duplicated? Really unsure. Also tried .htaccess and could try that again as I've learned to correctly config my genieConfig file. Comments? Oh if this helps the service is mysql-nt.exe that SQL is running on. It's up and I can totally see everything in the command center. I'll continue to look around and if this is a dumb post well, I'm a newb so sorry :o
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I upgraded to php5 and suddenly I cannot see my mysql databases in phpCodeGenie? What did I do wrong?
You did not do anything wrong. In php5, mysql does not come bundled in as in php4. So if you did a basic installation, the mysql commands wont be present in your installation. You will need to enable the mysql extension in the php.ini for php to be able to communicate with mysql. Read the php documentation for more.
Guess I know why now! I will beat this very silly process.
Oh hey, dude above, delete the Windows stuff. Maybe it's getting confused? Just a suggestion...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"You will need to enable the mysql extension in the php.ini for php to be able to communicate with mysql"
I'm having trouble doing this. It appears to be complicated but it seemed simple when I read this. Do I have to use mysqli? I think so... I know this is just a php.ini. I should have used 4.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
to enable it in windows php5... just edit the php.ini uncomment the mysql.dll lines from there and then copy that mysql.dll that comes with ur php source to your windows/system32 folder and restart ur apache and it should work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I uncommented the file. Actually a couple problems went away when I included all the inc and includes files in the system directory. That way I don't have to worry about what does or does not need to go into system32. I added like 5 directories there or something. Still blank. I'll continue to mess around with it. I even upgraded to the beta MySQL. Nevermind. There are too many configurations for you to keep track of. I'll figure it out. Thanks though, I know you're busy.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I got it to work... I had to remove the root password for the mysql root in order to do this. Clearly I need to learn about security. Considering I've only been playing with PHP and MySQL on a 'real' level (not some PHPBB auto install from an ISP, for example) it proves that it's not terribly difficult to get this stuff working. For those of you having problems be persistent. And I can tell you that what helped me very much was ensuring my extension and include directories were referenced correctly then I went to control panel/system/advanced and added these directories to avoid the system32 .dll crap that you have to lookup. Do that at your own risk of course, but as long as you're only adding it shouldn't hurt. Cheers. Now off to use your wonderful tool you guys are developing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running Fedora Core 2. AllowOverride is set to All. Here is my .htaccess:
php_value include_path "/var/www/html/phpCodeGenie/apps/settings"
When I print phpinfo() it says the include path is "/var/www/html/phpCodeGenie/apps/settings", which matches the .htaccess.
Here is my genieConfiguration.inc.php:
<?
session_start();
define("URL_ADDRESS","http://localhost/phpCodeGenie/web/");
// Linux Server
define("SITE_PATH","/var/www/html/phpCodeGenie"); // no trailing slashes
define("FILE_SEPARATOR", "/");
// win or nix
define("OS_TYPE","nix");
/*
// Windows Server
define("SITE_PATH","D:\\projects\\phpCodeGenie3.0"); // no trailing slashes
define("FILE_SEPARATOR", "\\");
// win or nix
define("OS_TYPE","win");
*/
define("WEB_SEPARATOR","/");
define("APP_PATH",SITE_PATH.FILE_SEPARATOR."app");
define("WEB_PATH",SITE_PATH.FILE_SEPARATOR."web");
// Specify the language that you want to use phpCodeGenie in
// You can make your own language file if it does exist yet
// and send your contribution back to phpCodeGenie
define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php");
define("CONFIG_COMPONENT",APP_PATH.FILE_SEPARATOR."settings");
define("CONFIG_FILE",CONFIG_COMPONENT.FILE_SEPARATOR."definitions.inc.php");
include_once(CONFIG_FILE);
?>
All I get is a blank page. Any ideas???
I also have the generatedCode folder permissions set to 777.
I got it to work by placing genieConfiguration.inc.php into the default php includes folder. Still, though, I am baffled by why it doesn't work with the .htaccess.
I'm setting all this up on win2k as localhost to play with the app before my much geekier friend sets up fedora core on a box next week. I have minimal PHP/MySql experience. PHP is running (got the right .dll in the right place (2). MySQL is running, I setup a password and some DBs with the CC. I go to http://localhost/genie/ and see all the pretty icons, etc. I enter MySQL-localhost-root-pw. I then rub the lamp and get nothing but->
http://localhost/genie/web/common/invokeGenie.php that is very blank.
Here is what I have:
APACHE/2.0.52 (WIN32) PHP/5.0.2
mysql-4.0.21-win
Configuration File (php.ini) Path C:\WINNT\php.ini
; Windows:
include_path = "C:\Program Files\Apache Group\Apache2\htdocs\genie\app\settings"
Genie Config File
<?
session_start();
define("URL_ADDRESS","http://localhost/genie/web");
define("SITE_PATH","C:\Program Files\Apache Group\Apache2\htdocs\genie");
define("FILE_SEPARATOR", "\\");
define("OS_TYPE","win");
define("WEB_SEPARATOR","/");
define("APP_PATH",SITE_PATH.FILE_SEPARATOR."app");
define("WEB_PATH",SITE_PATH.FILE_SEPARATOR."web");
define("LANGUAGE_FILE",APP_PATH.FILE_SEPARATOR."language".FILE_SEPARATOR."lang_english.inc.php");
define("CONFIG_COMPONENT",APP_PATH.FILE_SEPARATOR."settings");
define("CONFIG_FILE",CONFIG_COMPONENT.FILE_SEPARATOR."definitions.inc.php");
include_once(CONFIG_FILE);
?>
No folders are set to read only and my friend (who is the hacker) said he got his to work but I'm trying to do this on my own (so much for that)... anyway, is there some sort of plugin or sql piece I'm missing? Also I've looked all over the board searching and no one else is dumb enough to try to get this to work on Windows it appears, so was wondering if I could get a pointer. I assume it's an SQL thing... or a PHP include thing not being duplicated? Really unsure. Also tried .htaccess and could try that again as I've learned to correctly config my genieConfig file. Comments? Oh if this helps the service is mysql-nt.exe that SQL is running on. It's up and I can totally see everything in the command center. I'll continue to look around and if this is a dumb post well, I'm a newb so sorry :o
From:
http://phpcodegenie.sourceforge.net/faqs.php#whichDatabases
I upgraded to php5 and suddenly I cannot see my mysql databases in phpCodeGenie? What did I do wrong?
You did not do anything wrong. In php5, mysql does not come bundled in as in php4. So if you did a basic installation, the mysql commands wont be present in your installation. You will need to enable the mysql extension in the php.ini for php to be able to communicate with mysql. Read the php documentation for more.
Guess I know why now! I will beat this very silly process.
Oh hey, dude above, delete the Windows stuff. Maybe it's getting confused? Just a suggestion...
"You will need to enable the mysql extension in the php.ini for php to be able to communicate with mysql"
I'm having trouble doing this. It appears to be complicated but it seemed simple when I read this. Do I have to use mysqli? I think so... I know this is just a php.ini. I should have used 4.
to enable it in windows php5... just edit the php.ini uncomment the mysql.dll lines from there and then copy that mysql.dll that comes with ur php source to your windows/system32 folder and restart ur apache and it should work.
I uncommented the file. Actually a couple problems went away when I included all the inc and includes files in the system directory. That way I don't have to worry about what does or does not need to go into system32. I added like 5 directories there or something. Still blank. I'll continue to mess around with it. I even upgraded to the beta MySQL. Nevermind. There are too many configurations for you to keep track of. I'll figure it out. Thanks though, I know you're busy.
I got it to work... I had to remove the root password for the mysql root in order to do this. Clearly I need to learn about security. Considering I've only been playing with PHP and MySQL on a 'real' level (not some PHPBB auto install from an ISP, for example) it proves that it's not terribly difficult to get this stuff working. For those of you having problems be persistent. And I can tell you that what helped me very much was ensuring my extension and include directories were referenced correctly then I went to control panel/system/advanced and added these directories to avoid the system32 .dll crap that you have to lookup. Do that at your own risk of course, but as long as you're only adding it shouldn't hurt. Cheers. Now off to use your wonderful tool you guys are developing.