- I have a site with two languages: dutch and english.
- The dutch site is located at http://www.sitename.nl, the english site is located at en.sitename.nl
- I have one upload folder for both sites, in the main (dutch site).
- I have two cms systems for the two languages.
- The FCKeditor config.php for the dutch site includes
$Config['UserFilesPath'] = '/upload/' ;
- The absolute path is empty and the filemanager works without problems.
- I have included an alias in the vhost.conf for the en subdomain, so to use /srv/www/vhosts/sitename.nl/httpdocs/upload/ as /upload/ within the subdomain. Looks like this:
Alias /upload /srv/www/vhosts/sitename.nl/httpdocs/upload <Directory /srv/www/vhosts/sitename.nl/httpdocs/upload> Order allow,deny Allow from all </Directory>
- I used the same config.php on the english version, because of the alias.
Now the tricky part!
http://www.sitename.nl/upload/1.jpg
BUT
Error creating folder "/srv/www/vhosts/sitename.nl/httpdocs/upload/" (Can't create directory)
Update
Error creating folder "/srv/www/vhosts/sitename.nl/httpdocs/upload/images/" (mkdir(): open_basedir restriction in effect. File(/srv) is not within the allowed path(s): (/srv/www/vhosts/sitename.nl/subdomains/en/httpdocs:/tmp))
