weird behavior with perfect Debian nginx server + ISPCFG3

Discussion in 'General' started by Ovidiu, Jan 11, 2013.

  1. Ovidiu

    Ovidiu Active Member

    I followed this tutorial:

    /var/www/clients/client2# ls -al
    total 12
    drwxr-xr-x 3 root root    4096 Jan  6 16:04 .
    drwxr-xr-x 3 root root    4096 Jan  6 16:04 ..
    lrwxrwxrwx 1 root root      30 Jan  6 16:04 -> /var/www/clients/client2/web1/
    drwxr-x--x 6 web1 client2 4096 Jan  6 16:23 web1
    SO: is web1 and belongs to client2, right?

    Coincidentally found this by doing a
    tail -f /var/log/ispconfig/httpd/ 
    2013/01/11 12:03:19 [error] 28030#0: *3768 FastCGI sent in stderr: "PHP message: PHP Warning:  imagecreatefrompng(): open_basedir restriction in effect. File(/var/www/clients/[COLOR="Red"]client1/web3[/COLOR]/web/wp-content/plugins/gd-star-rating/stars/oxygen/stars20.png) is not within the allowed path(s): (/var/www/clients/[COLOR="red"]client2/web1[/COLOR]/web:/var/www/clients/[COLOR="red"]client2/web1/[/COLOR]tmp:/var/www/ in /var/www/clients/[COLOR="red"]client2/web1[/COLOR]/web/wp-content/plugins/gd-star-rating/code/gfx/generator.php on line 17
    and if I go to ISPCFG panel and edit the site we are talking about, under options it says:
    How come? No wonder I'm really struggling with multiple problems here :-(
    SHall I start from scratch? I haven't done much, just installed the server, moved one website, tested.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The ispconfig part is fine, the problem is wordpress here,

    I guess that you had this wordpressinstance installed before, so its a migrated website or at least some of the wordpressdatabase contents are from a existing install. Wordpress saves paths in its database and the wrong path that you see in the error.log is set inside the wordpress database. You can search the wrong path with e.g. phpmyadmin and ajust it in the wordpess db.
  3. Ovidiu

    Ovidiu Active Member

    Very well spotted. THat was the problem indeed. I'm setting up a new server and had migrated one single wordpress site to do all the tests and had overlooked hardcoded server names, paths and IPs but I'm currently manually double checking for all of those!

Share This Page