Help - Search - Members - Calendar
Full Version: IBF portal
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
aKaFrEE
I installed the IBF portal on my webserver (Redhat 7.2, apache, php) and i get the following error:

Warning: Failed opening '/wwwroot/htdocs/betas/index.php' for inclusion (include_path='.:/wwwroot/php/lib/php') in Unknown on line 0

i have no idea how to fix this, does anyone else?
xper
wrong path to php in httpd.conf?
where is your php?

/wwwroot/php or /urs/local/lib/php, /usr/lib/php


If you use php as module it looks like this in httpd.conf:

<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php"
php_admin_flag safe_mode on
</IfModule>
<IfModule mod_php3.c>
php3_include_path ".:/usr/local/lib/php"
php3_safe_mode on
</IfModule>

and in php.ini like this:


; you can enclose strings in double-quotes
include_path = ".:/usr/local/lib/php"
zivan56
Try to chmod the file being included or read to be readable by all, that fixed most of the error on line 0 for me.
xper
QUOTE
Try to chmod the file being included or read to be readable by all, that fixed most of the error on line 0 for me.


Right, i forgot that. Try CHMOD, but i think permission is not problem.

unsure.gif
zivan56
I also forgot to add, if you store all your files on a server which nobody has access to (so they cant read it), just open a terminal as root where htdocs folder is and do:

chown -R nobody htdocs
chgrp -R users htdocs
aKaFrEE
in httpd.conf it just says: (for php)

LoadModule php4_module libexec/libphp4.so
aKaFrEE
I tried changing the permissions...that got rid of the error. But now its just a blank page. any more ideas?
zivan56
The only thing that could work (if it is permission settings), is to make sure the folder containing the file, and the file readable and executable by all and writable by owner. Btw, what is the link to download the portal?
xper
It's here
zivan56
I have read on the ib forum somwhere that disabling gzip fixes the blank page problems, do it by doing the following:

Crack open your admin.php
and set

$use_gzip = 1;

to
$use_gzip = 0;
xper
QUOTE
I tried changing the permissions...that got rid of the error. But now its just a blank page. any more ideas?


Try this.

Go to your url/admin.php
Log in.
Board Settings - Basic Config
and set:
Print HTTP headers?
(Some NT installs require this off) to NO
Gelantious
One MSFN Frontpage, how did they/you make so the News goes all the way to the right????
And how did you move the "Latest Thread/Latest Forum Discussions" to the left side???
Aaron
you edit skins/s1/skins_portal.php and move the code around.
Gelantious
Could u show an example, because i tried but it didnt work.

Is it this that you ment that should be moved???

CODE
function latest_posts($data) {
global $ibforums;
return <<<EOF
   <table cellpadding='0' cellspacing='0' border='0' width='100%' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
     <tr>
       <td>
         <table cellpadding='4' cellspacing='1' border='0' width='100%'>
          <tr>
            <td colspan='2' id='titlemedium' background="{$ibforums->vars['img_url']}/tile_sub.gif"><b>{$ibforums->lang['latest_posts']}</b></td>
          </tr>
          <tr>
         <td id='forum2' colspan='2'>
             {$data}
      </td>
       </tr>          
      </table>
     </td>
   </tr>
  </table>
<br>
EOF;
}
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.