Koozali.org: home of the SME Server
Obsolete Releases => SME 8.x Contribs => Topic started by: Rien on September 26, 2012, 12:18:57 AM
-
Hi all,
I have Joomla 2.5.7 installed in an ibay (called joomla) on my SME Server 8 (64bit / Raid1) installed on Oracle Virtualbox 4.1.22 for the purpose of testing.
I set MagicQuotes off by editing the file /etc/e-smith/templates/etc/php.ini/40DataHandling
Open the file and add the following line:
magic_quotes_gpc = off
save the file and do:
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
I installed phpmyadmin with:
yum --enablerepo=smecontribs install smeserver-phpmyadmin
signal-event post-upgrade; signal-event reboot
Enabled InnoDB (needed by the RokGallery component) with:
db configuration setprop mysqld InnoDB enabled
expand-template /etc/my.cnf
sv t /service/mysqld
Set AllowUrlFopen (needed for automatic updates)
db configuration setprop php AllowUrlFopen On
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
To make it possible to install extentions the regular way I set the max upload filesize to 50Mb with:
db configuration setprop php UploadMaxFilesize 50M
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
and and set the PHPBaseDir with (in my case):
db accounts setprop joomla PHPBaseDir /home/e-smith/files/ibays/joomla/html/:/tmp/
signal-event ibay-modify joomla
Now everything works fine except:
- The component eXtplorer seems to install correctly but when I try to open eXtplorer I get "HTTP-error 500 internal server error"
What am I doing wrong??
-
You may have some useful errors in /var/log/httpd/error_log.
In order to let Wordpress install updates, I have to set the i-bay ownership like this, so that httpd can write to the ibay directories:
chown -R www:www /home/e-smith/files/ibays/<ibayname>
Although, this may work, too:
db accounts setprop <ibayname> Group www
db accounts setprop <ibayname> UserAccess wr-group-rd-everyone
signal-event ibay-modify
-
Thanks for your reply
I've tried your options, but they didn't solve the problem.
I think it has to do with the PHPBaseDir setting because, when I do:
db accounts setprop joomla PHPBaseDir /home/e-smith/files/ibays/joomla/html/:/
signal-event ibay-modify joomla
eXtplorer works! But it only display an index.htm file (the standard index.htm file which says "This web site is under construction"). Strange enough, I even don't have this file in my joomla/html directory (maybe it shows the Primary/html/index.htm file).
-
Displaying errors, I get the following:
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/e-smith/files/ibays/kickstart/html/:/tmp/:../usr/share/pear/) in /home/e-smith/files/ibays/kickstart/html/administrator/components/com_extplorer/libraries/FTP.php on line 33
Warning: require_once(/usr/share/pear/PEAR.php) [function.require-once]: failed to open stream: Operation not permitted in /home/e-smith/files/ibays/kickstart/html/administrator/components/com_extplorer/libraries/FTP.php on line 33
Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear') in /home/e-smith/files/ibays/kickstart/html/administrator/components/com_extplorer/libraries/FTP.php on line 33
Apparently eXtplorer must have access to /usr/share/pear !
So I tried:
db accounts setprop joomla PHPBaseDir /home/e-smith/files/ibays/joomla/html/:/tmp/:../usr/share/pear/
signal-event ibay-modify joomla
But that didn't work. How can I do this ?
-
Why ../usr/share/pear/?
The error you show says "require_once(/usr/share/pear/PEAR.php)" (no "..").
-
Maybe I did not interpreted the error message correctly.
I thought that extplorer needs access to /usr/share/pear/PEAR.php
File(/usr/share/pear/PEAR.php) is not within the allowed path(s)
and
Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear')
What do you suggest?
-
Apparently eXtplorer must have access to /usr/share/pear !
So I tried:
db accounts setprop joomla PHPBaseDir /home/e-smith/files/ibays/joomla/html/:/tmp/:../usr/share/pear/
signal-event ibay-modify joomla
But that didn't work. How can I do this ?
try
db accounts setprop joomla PHPBaseDir /home/e-smith/files/ibays/joomla/html/:/tmp/:/usr/share/pear/:/usr/share/pear-addons/
signal-event ibay-modify joomla
-
Thanks,
I don't get the blank screen anymore, but eXtplorer doesn't work well. See attachtment
(http://joomla.taurix.nl/images/extplorer.png)
Strange window "status" and the directory tree is empty?