The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP problem

Discussion in 'General Discussion' started by rix, Jun 27, 2003.

  1. rix

    rix Well-Known Member

    Joined:
    May 1, 2003
    Messages:
    68
    Likes Received:
    0
    Trophy Points:
    6
    Most of my php scripts having problem as below :

    Code:
    Warning: main(mainfile.php): failed to open stream: No such file or directory in /home/rix/public_html/fmz/modules/News/index.php on line 20
    
    Fatal error: main(): Failed opening required 'mainfile.php' (include_path='/usr/local/lib/php:/usr/lib/php') in /home/rix/public_html/fmz/modules/News/index.php on line 20
    
    my server settings:
    Apache 1.3.27
    PHP 4.3.1
    mod_ssl 2.8.14
    OpenSSL 0.9.6b
    compiled with suexec

    WHM 6.4.2
    cPanel 6.4.2-S75
    Redhat 8.0

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
  2. Rhode

    Rhode Member

    Joined:
    Feb 10, 2003
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    You need to edit the "include_path" in php ini.

    Yours is showing /usr/local/lib/php:/usr/lib/php

    It should be:

    .:/usr/local/lib/php

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page