Issues with Elgg

Discussion in 'General' started by rafael-ec, Jan 13, 2012.

  1. rafael-ec

    rafael-ec New Member

    Hi,

    I was running a server with Debian Squeeze and Elgg with Apache. Standard installation, nothing complicated. I decided to install ispconfig on that server. I know is not what you recomend, but I did backup the site, the data directory and the database. I have done migrations of elgg before (kind of tricky), so I backup everything and then installed ispconfig.

    I had some issues after installing my first site (the Elgg one). First the directory where it was installed was call /var/www/cayambelibre.com and then ISPconfig got confused as it uses a link with the same name that has a web directory as the document root. I took me a couple of hours to learn that. I had some expirience with ISPconfig, but version 2.

    So I manage to install my Elgg site reading some of the doc on this great site as reference. However it does not work as it suppose to do.
    I have change the important data of the database with this reference: http://docs.elgg.org/wiki/Duplicate_Installation. I also posted on the elgg community about this issue: http://community.elgg.org/pg/forum/topic/836924/elgg-looking-for-modules-in-the-wrong-directory/

    So far I have found two things reading the logs:


    Code:
    [Thu Jan 12 20:28:59 2012] [error] [client 60.169.78.57] PHP WARNING: 2012-01-12 20:28:59 (ECT): "file_exists(): open_basedir restriction in effect. File(/var/www/cayambelibre.com/mod/river_comments/views/default/river_comments/footer.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/cayambelibre.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web5/datos-cayambelibre/)" in file /var/www/clients/client1/web5/web/engine/lib/views.php (line 246), referer: http://www.cayambelibre.com/pg/register/
    [Thu Jan 12 20:28:59 2012] [error] [client 60.169.78.57] PHP WARNING: 2012-01-12 20:28:59 (ECT): "file_exists(): open_basedir restriction in effect. File(/var/www/cayambelibre.com/mod/river_comments/views/default/river_comments/js.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/cayambelibre.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web5/datos-cayambelibre/)" in file /var/www/clients/client1/web5/web/engine/lib/views.php (line 246), referer: http://www.cayambelibre.com/pg/register/
    [Thu Jan 12 20:28:59 2012] [error] [client 60.169.78.57] PHP WARNING: 2012-01-12 20:28:59 (ECT): "file_exists(): open_basedir restriction in effect. File(/var/www/cayambelibre.com/mod/externalpages/views/default/expages/footer_menu.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/cayambelibre.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web5/datos-cayambelibre/)" in file /var/www/clients/client1/web5/web/engine/lib/views.php (line 246), referer: http://www.cayambelibre.com/pg/register/
    [Thu Jan 12 20:28:59 2012] [error] [client 60.169.78.57] PHP WARNING: 2012-01-12 20:28:59 (ECT): "file_exists(): open_basedir restriction in effect. File(/var/www/cayambelibre.com/mod/analytics/views/default/analytics/footer.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/cayambelibre.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web5/datos-cayambelibre/)" in file /var/www/clients/client1/web5/web/engine/lib/views.php (line 246), referer: http://www.cayambelibre.com/pg/register/
    [Thu Jan 12 20:29:01 2012] [error] [client 60.169.78.57] PHP WARNING: 2012-01-12 20:29:01 (ECT): "file_exists(): open_basedir restriction in effect. File(/var/www/cayambelibre.com/mod/blog/views/default/object/blog.php) is not within the allowed path(s): (/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/cayambelibre.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/var/www/clients/client1/web5/datos-cayambelibre/)" in file /var/www/clients/client1/web5/web/engine/lib/views.php (line 303), referer: http://www.cayambelibre.com/action/login
    
    First I got confuse with the allowed paths. I have never used that before and I corrected some errors on the web interfase, because it was looking for directories with client0 but I am client1.

    Second Elgg is looking for modules in /var/www/cayambelibre.com/mod and it should be looking at /var/www/cayambelibre.com/web/mod. It seems to be like the main problem and it should be corrected by changing the variable path in elgg database but it does not work.

    Just dropping this here, hope some can help.

    Regards,

    Rafael
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You get this error because you installed php scripts outside of the website root, which causes a security violation in paypal. To allow scripts in your additional path, add the path:

    /var/www/cayambelibre.com/mod

    separated by : at the emd of the open_basedir path in the website settings.
     
  3. rafael-ec

    rafael-ec New Member

    Thanks Till. So I guess the error must be something on elgg because I don't want to use that directory, but /var/www/cayambelibre.com/web/mod. I am going to start over and see what happen.

    Best regards and nice to be back. ISPconfig 3 is a great improvement from ISPconfig 2. Congratulations.

    Rafael
     
  4. rafael-ec

    rafael-ec New Member

    So I just start from scratch again and problem solve. Thanks a lot for the help.

    Regards,

    Rafael
     

Share This Page