Menu

Failed opening 'INC_MAIN_PAGE' for inclusion

dlbgp
2004-10-15
2013-04-17
  • dlbgp

    dlbgp - 2004-10-15

    Hi - I have read thru all the other posts here and am still having trouble getting 3.0 to run on a Red Hat based Server.

    Here is the contents of my htaccess file
    php_value include_path "/var/html/www/phpCodeGenie3/app/settings/"

    Here are the contents of my config file.

    ?
       session_start();
       define("URL_ADDRESS","http://localhost/phpCodeGenie3/web/");
        
      /*
         // Windows Server
       define("SITE_PATH","D:\\projects\\phpCodeGenie3.0");   // no trailing slashes
       define("FILE_SEPARATOR", "\\");
       // win or nix
       define("OS_TYPE","win");
       */
      
      
       // Linux Server
         define("SITE_PATH","/usr/local/apache/htdocs/bged");
         define("FILE_SEPARATOR", "/");
         // win or nix
         define("OS_TYPE","nix");
      

       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);  

    ?>

    Thanks!!!!!!!

     
    • Nilesh Dosooye

      Nilesh Dosooye - 2004-10-15

      chnage

      define("SITE_PATH","/usr/local/apache/htdocs/bged");

      to

      define("SITE_PATH","/var/html/www/phpCodeGenie3/");

       
    • dlbgp

      dlbgp - 2004-10-18

      Thanks, dumb mistake, but still having problems:

      Warning: Failed opening '/var/html/www/phpCodeGenie3/app/settings/definitions.inc.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/phpCodeGenie3/app/settings/genieConfiguration.inc.php on line 24

      Warning: Failed opening 'INC_MAIN_PAGE' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/phpCodeGenie3/index.php on line 2

      -------------------------------
      Here is my config file...

      <?
         session_start();
        
        
         // Linux Server
           define("SITE_PATH","/var/html/www/phpCodeGenie3");
           define("FILE_SEPARATOR", "/");
           // win or nix
           define("OS_TYPE","nix");
        

         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);  

      ?>

       
    • emso

      emso - 2004-10-19

      Open your php.ini file and  look for this line:
      include_path =

      and  you can do something like this

      ; UNIX: "/path1:/path2" 
      include_path = ".:/var/www/html/:/var/www/html/include/"
      ;

      and inside your html folder make another call include and put a copy of the "genieConfiguration.inc.php" and you are done

       
    • dlbgp

      dlbgp - 2004-10-21

      I do not under stand your last line, please explain what you mean by:

      and inside your html folder make another call include and put a copy of the "genieConfiguration.inc.php" and you are done

      Thanks!!!!

       
    • portrower8

      portrower8 - 2004-10-23

      I have same problem on WINDOWS apache server

      Warning: main(genieConfiguration.inc.php) [function.main]: failed to open stream: No such file or directory in C:\apachefriends\xampp\htdocs\phpCodeGenie\index.php on line 1

      Warning: main() [function.include]: Failed opening 'genieConfiguration.inc.php' for inclusion (include_path='phpCodeGenie/app/settings/') in C:\apachefriends\xampp\htdocs\phpCodeGenie\index.php on line 1

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

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

      please help

       

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.