On 2/1/06, C Blue <[EMAIL PROTECTED]> wrote:
jan gestre wrote:
i have set up a local mirror of our website hosted abroad although the update process for the database is still done manually( i have yet to make a script to connect and download the sql files from the remote server), my problem is when i try to open the browser to view the local website mirror i get this error.

Warning
: main(include/pat/patErrorManager.php): failed to open stream: No such file or directory in /var/www/pjn/html/index.php on line 5

Fatal error: main(): Failed opening required 'include/pat/patErrorManager.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/pjn/html/index.php on line 5

i've checked the directory mentioned in the error, php is in /usr/share/php while pear is not located on /usr there is one in the /usr/bin directory.
any ideas what to do? i'm not a programmer.
Rehashing...

Can you include lines 1-10 of index.php?  Also from the php.ini from the server that is running the website, include the line that starts with "include_path = ".  And lastly, the settings in apache (httpd.conf) for the website (from the running server).  That may help us understand where the file may be located.

documentroot for the orig server is on /var/html while my server is /var/www/ , i've made a symbolic link so they will access it via http://ip.address/local

this is my php.ini:
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;

; UNIX: "/path1:/path2"
include_path = ".:/usr/share/php"

while this is the orig php.ini of the server to be mirrored:

; UNIX: "/path1:/path2" 
include_path = ".:/php/includes:/usr/share/php"

----------------------------------------------------------------
this is the index.php of the original site which is also on the local server

<?php

        //error_reporting( E_ALL );

        require_once( "include/pat/patErrorManager.php" );

        require_once( "config/config.php" );
        require_once( "include/pjnBase.php" );
        require_once( "include/pjn.php" );
        require_once( "include/patTemplate.php" );
        require_once( "include/patDbc.php" );

        $template       =       new patTemplate;
        $template->setBasedir( "templates" );

        $dbc            =       new     patMySqlDbc( $db_host, $db_name, $db_us$

        $pjn    =       new pjn;
        $pjn->setTemplate( $template );
 $pjn->setTemplate( $template );
        $pjn->setDbc( $dbc );

        $pjn->process();
?>

i've made these modifications on index.php to indicate the absolute path, i don't know if it's correct though.

require_once( "/var/www/pjn/pjn/include/pat/patErrorManager.php" );

        require_once( "/var/www/pjn/pjn/config/config.php" );
        require_once( "/var/www/pjn/pjn/include/pjnBase.php" );
        require_once( "/var/www/pjn/pjn/include/pjn.php" );
        require_once( "/var/www/pjn/pjn/include/patTemplate.php" );
        require_once( "/var/www/pjn/pjn/include/patDbc.php" );

after i've made these, this is now the error i get if i open it via browser

Parse error: parse error, unexpected T_VARIABLE in /var/www/pjn/pjn/config/config.php on line 10

i've tried google but not much help
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to