Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: ldavies on April 18, 2004, 09:08:50 AM
-
I am trying to install geeklog-1.3.9 and when I go to www.mydomainname.com/index.php which is the main page I get a blank paged and the following error message in the log file:
Apr 18 08:06:20 webby httpd: PHP Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/Primary/html/lib-common.php on line 69
Apr 18 08:06:20 webby httpd: PHP Fatal error: Failed opening required '/opt/geeklog-1.3.9/config.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/Primary/html/lib-common.php on line 69
Any ideas???
-
Which version of PHP are yopu running?
# php -v
OR
# rpm -qa|grep php-
If you're running v4.3.x then you'll have to activate pear by editing your php.ini
-
i am running php-4.1.2-7.3.6es1 - it comes standard with e-smith 6.01
with all due respect (i am new to this) your suggestion does not make a lot of sense.
why would it not just work out of the box? it seems very simple functionality.
in fact i cannot understand why in the server manager i cannot enable cgi in the same way that i can for an ibay. is this not the problem?
-
I am trying to install geeklog-1.3.9 and when I go to www.mydomainname.com/index.php which is the main page I get a blank paged and the following error message in the log file:
Apr 18 08:06:20 webby httpd: PHP Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/Primary/html/lib-common.php on line 69
Apr 18 08:06:20 webby httpd: PHP Fatal error: Failed opening required '/opt/geeklog-1.3.9/config.php' (include_path='.:/usr/share/php') in /home/e-smith/files/ibays/Primary/html/lib-common.php on line 69
Here is my guess from looking at the error:
geeklog is installed in /opt/geeklog-1.3.9/
A PHP file in Primary tried to access files in /opt however this is not allowed "open_basedir restriction in effect. File is in wrong directory"
I have not installed geeklog, but normally I would expect no files to be in the primary ibay, instead they would all be in /opt (for instance).
httpd.conf would then have an alias to make them appear at http://yourdomain/yourapp
For instance take PHPMyAdmin, it installs into /opt/administration/phpmyadmin but is accessed via https://myserver/phpmyadmin/
The magic can be found here
# cat /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias
# Administration: phpMyAdmin
Alias /phpmyadmin /opt/administration/phpmyadmin
<Directory /opt/administration/phpmyadmin>
RequireSSL on
Options -Indexes
AllowOverride None
order deny,allow
deny from all
allow from all
AuthName "phpMyAdmin"
AuthType Basic
AuthExternal pwauth
require user admin
Satisfy all
AddType application/x-httpd-php .php .php3
php_flag magic_quotes_gpc on
php_flag track_vars on
</Directory>
Once this template is expanded out and httpd restarted it would appear as though this application is in the main ibay.
-
The answer to this question lies in the error "openbase_dir"
I fixed it by using the instructions at http://www.e-smith.org/faq.php3#6q12
i.e.
/sbin/e-smith/db accounts setprop your_i-bay_name PHPBaseDir /
/sbin/e-smith/signal-event ibay-modify your_i-bay_name
My next question is, "Should this change be done permanently by making a modification to a file in /templates-custom/. If so what file?"
-
I could be wrong but I believe that you would not make any template for this change.
If you backup/restore or upgrade or reinstall then the database is preserved so this change is preserved.
-
http://tech-geeks.org/contrib/loveless/SMEServer/contribs/geeklog/