Menu

NEWBIE NEEDS HELP!!

2005-06-15
2013-04-17
  • Jupiter Darmin

    Jupiter Darmin - 2005-06-15

    Hi... I just downloaded phpCodeGenie and I have uploaded everything to my website (after modifying the files mentioned in the installation instructions). However, I'll put this on the table right now -- I'm a complete newb to this software, and to programming in PHP in general -- so really, I am not sure what's going wrong here...

    I installed the software to the directory "phpCodeGenie3", and when I go to that directory, I get a blank page. How do I do anything? What do I do? I'm REALLY in the dark here, so if someone can give me a headstart on this, I would REALLY appreciate it...

     
    • freakazoid3

      freakazoid3 - 2005-06-15

      Ok, let me start off by saying that I was in the same boat as you last week and although I've made headway, there are still alot of things I don't understand.  Also, this forum is particularly unresponsive for some unknown reason.

      The first thing that I found really useful was to follow the installation instructions properly. Create or copy into your phpCodeGenie3 directory a .htaccess file.  In it, (I'm assuming that you are doing this on a pc) enter the following line:
      php_value include_path c:\....\phpCodeGenie3\app\settings
      That directory is where the main PCG configuration file, genieConfiguration.inc.php, exists

      Then go to that file and modify it.  If you are using this on a pc, ensure you uncomment the lines that relate to windows and remove the lines above that relate to linux.  Then define your URL address.  This should start http://localhost .  Then define your phpCodeGenie3 directory relative to your webserver root directory. E.g if you webserver root directory was called site and you put your phpCodeGenie3 directory in some sub-directory of site, then your URL line within the config file should be http://localhost/sub-directory-name/phpCodeGenie3/web.
      The SITE_PATH variable should be set to your full path of phpCodeGenie3

      Then, ensuring that your phpCodeGenie3/web/generatedCode directory is changed from read-only to write access, you are ready to go.  In your browser, look up http://localhost/sub-directory/phpCodeGenie3/web and you should have the login page.

      It's a bit long-winded to get set up, but this stuff is worth it and   gives a good head start in creating database applications in php! 

      Keep at it, you are amongst a large company of people who have found this application hard to set up!

      Hope this helps

       
    • Jupiter Darmin

      Jupiter Darmin - 2005-06-15

      Hey Thanks... And I hate to be a bother, but could you look at something real quick??

      Okay.. The hosting service I use actually uses LINUX.. (I use stayhosted.com's services on my website, darmin.com). My "public" folder is /public_html/... Of course, when you go to darmin.com, it uses the index file found in /public_html/ without showing that (/public_html/)...

      Anyway, here's how I have my files set up...

      .htaccess (which is allowed with my hosting) is set to the following:
      php_value include_path "/phpCodeGenie3/app/settings/"

      and the genieConfiguration.inc.php has the following for the lines you mentioned...

         session_start();
         define("URL_ADDRESS","http://www.darmin.com/phpCodeGenie3/web/");

         // Linux Server
           define("SITE_PATH","/public_html/phpCodeGenie3");
           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");

         ***************/

      What have I done wrong? Should I take out the "Windows Server" stuff?? And with my define("SITE_PATH","/public_html/phpCodeGenie3");, should I have it be /public_html/phpCodeGenie3 or leave out the /public_html/ (which is really what you access by default when you use an internet browser to go to darmin.com)??

      Sorry.. I have been the webmaster for well over a year, and I do have some programming experience (I used to make a lot of games with QBASIC and a little bit of C/C++), but all of this website stuff is killing me!! :p THANKS for replying and THANKS for any help you can offer...

       
    • freakazoid3

      freakazoid3 - 2005-06-27

      Jupiter

      I hope you got this figured out - nobody seems to have replied to you about it.  If you are still in problems, send anouther post.

       
    • jcannon

      jcannon - 2005-07-03

      Same problem for me.  I also have a linux hosting company, VizaWeb, and have not been able to set this up.  I think I have tried all path combinations.

       
    • cog

      cog - 2005-07-06

      This script is a bit of a bearcat to get set up - wouldn't it be nice if we could get a Fantastico installer :P. Of course this wasn't quite intended for that as it was more intended for a local setup rather than remote.

      Typically your site path will be the FULL path: i.e.:

      /home/user/public_html.... so it should look something like this:

      session_start();
      define("URL_ADDRESS","http://www.darmin.com/phpCodeGenie3/web/";);

      // Linux Server
      define("SITE_PATH","/home/YOURUSERNAME/public_html/phpCodeGenie3");
      define("FILE_SEPARATOR", "/");
      // win or nix
      define("OS_TYPE","nix");

      And I'm not 100% sure but I think your .htaccess file must be the same. I set this up off of linux at home finally. One thing I will warn you about is that when I last tried to install this remotely, I could not change the perms on it whatsoever. It has something to do with how the server was configured and how PHPCG wrote file permissions when it did write.

       
    • wildcats

      wildcats - 2005-08-20

      im also new to code genie... well i followed the instructions and set htaccess to
      php_value include_path 'C:\apachefriends\xampp\htdocs\genie\app\settings'
      looks ok since that is path but when i run
      http://localhost/genie/web these errors occur

      Warning: main(C:\apachefriends mpp\htdocs\genie\app\settings\definitions.inc.php) [function.main]: failed to open stream: Invalid argument in C:\apachefriends\xampp\htdocs\genie\app\settings\genieConfiguration.inc.php on line 34

      Warning: main() [function.include]: Failed opening 'C:\apachefriends mpp\htdocs\genie\app\settings\definitions.inc.php' for inclusion (include_path='C:\apachefriends\xampp\htdocs\genie\app\settings') in C:\apachefriends\xampp\htdocs\genie\app\settings\genieConfiguration.inc.php on line 34

      Warning: main(INC_LOGIN_PAGE) [function.main]: failed to open stream: No such file or directory in C:\apachefriends\xampp\htdocs\genie\web\index.php on line 24

      Warning: main() [function.include]: Failed opening 'INC_LOGIN_PAGE' for inclusion (include_path='C:\apachefriends\xampp\htdocs\genie\app\settings') in C:\apachefriends\xampp\htdocs\genie\web\index.php on line 24

      seems there is a problem with xa, my directory xampp is replaced by mpp, i running this on windows using xampp.

       
    • TickleTheMuse

      TickleTheMuse - 2006-02-23

      Next one who needs help.  Couldn't they have made this a little more simple?  Like server installation?  They shouldn't say how 'simple' it is unless a beginner can do it with their eyes closed. 

      I keep getting a 404 error.  No matter what I put in I get a 404.  Anyway, here's what I have in my config:
      <?
         session_start();
         define("URL_ADDRESS","http://www.ticklethemuse.com/phpCodeGenie3.0.2/web/");

         // Linux Server
           define("SITE_PATH","/home/tickleth/phpCodeGenie3.0.2");
           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", "\\&quot;);
         // 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);  

      ?>

      What gives?

       
    • TickleTheMuse

      TickleTheMuse - 2006-02-23

      P.S.  Does this have to be in the public_html file?

       
    • TickleTheMuse

      TickleTheMuse - 2006-02-23

      I've tried 15 different combinations and still I get errors.  Now matter what I do, it doesn't recognize the files and I don't have access to my PHP.ini, so in my opinion, this program isn't worth the massive headache it takes to install it and make it work!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.