First time login page error

innocuous wrote on Friday, September 16, 2005:

Hi,
I am trying to install openemr (latest version) on shared linux hosting server. I have uploaded the files and successfully gone through the setup process. The db has ben created and the setup goes fine. However when I click to login in the final setup screen, it redirects to the login page but I get this error:
-------------
Warning: main(): open_basedir restriction in effect. File(/var/www/html/openemr/library/md5.js) is not within the allowed path(s): (/home/powertec/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/powertec/public_html/openemr/interface/login/login.php on line 4

Warning: main(/var/www/html/openemr/library/md5.js): failed to open stream: Operation not permitted in /home/powertec/public_html/openemr/interface/login/login.php on line 4

Warning: main(): Failed opening ‘/var/www/html/openemr/library/md5.js’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/powertec/public_html/openemr/interface/login/login.php on line 4

Warning: main(): open_basedir restriction in effect. File(/var/www/html/openemr/library/sql.inc) is not within the allowed path(s): (/home/powertec/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/powertec/public_html/openemr/interface/login/login.php on line 5

Warning: main(/var/www/html/openemr/library/sql.inc): failed to open stream: Operation not permitted in /home/powertec/public_html/openemr/interface/login/login.php on line 5

Warning: main(): Failed opening ‘/var/www/html/openemr/library/sql.inc’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/powertec/public_html/openemr/interface/login/login.php on line 5

Fatal error: Call to undefined function: sqlstatement() in /home/powertec/public_html/openemr/interface/login/login.php on line 20
-----------------
There is no login box or anything else displayed.
How do I fix this?
Thanks

drbowen wrote on Monday, September 19, 2005:

It seems to me that this list of errors comes up a lot on new installations. 

Are your running PHP 4+ or PHP5?

I think this happens if you are running PHP 5.  The current PHP version for OpenEMR is PHP 4+.

innocuous wrote on Tuesday, September 20, 2005:

No I am running PHP4
I got it resolved by asking my provider to disable open_basedir restriction.
Now its working
Thanks