Koozali.org formerly Contribs.org

Installing Joomla! in an ibay

Offline Rien

  • *
  • 216
    • http://www.taurix.nl
Installing Joomla! in an ibay
« 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:
Code: [Select]
magic_quotes_gpc = off
save the file and do:

Code: [Select]
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart

I installed phpmyadmin with:
Code: [Select]
yum --enablerepo=smecontribs install smeserver-phpmyadmin
signal-event post-upgrade; signal-event reboot

Enabled InnoDB (needed by the RokGallery component) with:
Code: [Select]
db configuration setprop mysqld InnoDB enabled
expand-template /etc/my.cnf
sv t /service/mysqld

Set AllowUrlFopen (needed for automatic updates)
Code: [Select]
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:

Code: [Select]
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):

Code: [Select]
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??
« Last Edit: September 26, 2012, 02:21:59 AM by Rien »
Rien
(The Netherlands)......

Offline mmccarn

  • *
  • 2,568
Re: Installing Joomla! in an ibay
« Reply #1 on: September 26, 2012, 12:09:41 PM »
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:
Code: [Select]
chown -R www:www /home/e-smith/files/ibays/<ibayname>
Although, this may work, too:
Code: [Select]
db accounts setprop <ibayname> Group www
db accounts setprop <ibayname> UserAccess wr-group-rd-everyone
signal-event ibay-modify

Offline Rien

  • *
  • 216
    • http://www.taurix.nl
Re: Installing Joomla! in an ibay
« Reply #2 on: September 26, 2012, 02:08:57 PM »
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:
Code: [Select]
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).
Rien
(The Netherlands)......

Offline Rien

  • *
  • 216
    • http://www.taurix.nl
Re: Installing Joomla! in an ibay
« Reply #3 on: October 05, 2012, 12:26:13 AM »
Displaying errors, I get the following:

Code: [Select]
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:

Code: [Select]
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 ?
Rien
(The Netherlands)......

Offline mmccarn

  • *
  • 2,568
Re: Installing Joomla! in an ibay
« Reply #4 on: October 05, 2012, 02:23:51 PM »
Why ../usr/share/pear/?

The error you show says "require_once(/usr/share/pear/PEAR.php)" (no "..").


Offline Rien

  • *
  • 216
    • http://www.taurix.nl
Re: Installing Joomla! in an ibay
« Reply #5 on: October 05, 2012, 05:16:39 PM »
Maybe I did not interpreted the error message correctly.

I thought that extplorer needs access to /usr/share/pear/PEAR.php

Code: [Select]
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?


 

Rien
(The Netherlands)......

Offline Stefano

  • *
  • 10,805
  • Skype account: maghissimo
    • Smeserver italian community
Re: Installing Joomla! in an ibay
« Reply #6 on: October 05, 2012, 10:02:32 PM »
Apparently eXtplorer must have access to /usr/share/pear !

So I tried:

Code: [Select]
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

Code: [Select]
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
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline Rien

  • *
  • 216
    • http://www.taurix.nl
Re: Installing Joomla! in an ibay
« Reply #7 on: October 05, 2012, 11:20:03 PM »
Thanks,

I don't get the blank screen anymore, but eXtplorer doesn't work well. See attachtment



Strange window "status" and the directory tree is empty?

Rien
(The Netherlands)......