From: Andrew <an...@ar...> - 2004-03-23 04:44:44
|
Tomas Kuliavas wrote: >>>>I really don't know where the problem is since I'm not getting any error >>>>messages. If anyone can offer any advice, I'd appreciate it. >> >>>check your webserver's logs or open php.ini file and set error_reporting >>>= >>>E_ALL and display_errors = on. Please note, that error_reporting = E_ALL >>>might break some php scripts. SquirrelMail should work with it >>>correctly, >>>but other pages might not. >>> >> >>I found the error messages being generated when trying to access the >>sasql_options.php page. Here they are. >> >>[Mon Mar 22 06:46:45 2004] [error] PHP Warning: main(DB.php): failed to >>open stream: No such file or directory in >>/usr/local/www/squirrelmail/plugins/sasql/sasql_db.php on line 5 >>[Mon Mar 22 06:46:45 2004] [error] PHP Fatal error: main(): Failed >>opening required 'DB.php' (include_path='.:') in >>/usr/local/www/squirrelmail/plugins/sasql/sasql_db.php on line 5 >> >>I take it the I'm missing the module DB.php from my php setup. Can >>anyone enlighten me on how to add it? I've installed php as an Apache >>module from the FeeBSD ports tree. > > > cd /usr/ports/www/mod_php4 > make > <.. some questions. you need to add gettext support here ..> > <.. and lots of output ..> > make install > > or > > cd /usr/ports/lang/php4 > make > <.. some questions. you need to add gettext support here ..> > <.. and lots of output ..> > make install > > both packages install php with pear support if you don't have WITHOUT_PEAR > variable set in your environment. mod_php4 does not install php cli. php4 > installs it. > > also you can run 'locate DB.php' and check if it is already installed in > some place. if it is installed - find your php.ini file and modify > includes_path option. > Well, I installed php from the lang/php4 port. This installed php as a command line program and an Apache module. Pear support was also installed but I still don't have a DB.php file anywhere. I can't even find DB.php in the source tree in the ports directory. I really don't know where this file, which sasql_db.php is looking for by the way, comes from. Andrew |