Ok here is my 1st attempt at writing some documentation for the installation of Elgg!
If your control panel is Plesk and you are trying to install Elgg you will need to do the following for it to work correctly.
DO NOT EDIT YOUR HTTPD.CONF File. You may think your changes are saved but within a few hours plesk will automatically overwrite this file with its own. To remove any Open_basedir problems and restrictions you will need to do this per domain.
To define the needed parameters for each domain youw ill need to create or edit your vhost file.
Plesk automatically updates httpd.include for each domain, making changes to this file only temporary. You don’t want to use this file if you need to make changes toApache’s config on the fly, such as php’s open_basedir values per domain.
Instead you will want to use a vhost.conf file. This file will be placed inside your domain’s conf directory, usually found at/var/www/vhosts/mysite.com/conf.
Create a file called vhost.conf in whatever editor you prefer.
Note: If you have a site that has an SSL and you need to have access to directories outside the httpsdocs directory you will need to do the same thing but instead of “vhost.conf” it’s “vhost_ssl.conf”
You can now put in any Apache configuration options like you would into httpd.include.
Now if you’ve been using Plesk for a bit you know that sites are generally kept under the httpdocs directory.
But let’s say you’re installing some online software…like Sugar CRM, Joomla orELGG.
These packages need access to directories outside of the httpdocs directory.
To solve this issue properly in Plesk - you’re supposed to create a vhost.conf file in the conf directory under your site.
Let’s say you did this:
cd /var/www/vhosts/mysite.com
mkdir data
chown myuser:psaserv data
In the site directory you could add the following:
<Directory /var/www/vhosts/mysite.com/httpdocs/>
php_admin_value open_basedir "/var/www/vhosts/mysite.com/httpdocs:/tmp:/var/www/vhosts/mysite.com/data"
</Directory>
Then you would need to force an update in Plesk for this domain using the following command:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mysite.com
After running that there is no need to restart Apache or any other service. Your changes should have taken effect already.
To get mine working correctly I used this in my vhost.conf file
Directory /var/www/vhosts/yourdomain.com/yourdatadirectory/
php_admin_value open_basedir \ /var/www/vhosts/yoursite.com/httpdocs:/tmp:/var/www/vhosts/yoursite.com/data\
/Directory
On some setups you may want to use this
Directory /var/www/vhosts/yourdomain.com
php_admin_flag engine on
php_admin_value open_basedir none
/Directory
Hope that this helps anyone that may run into this with Plesk Control Panel
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Can it be that my httpd.include file is the problem?
im on VPS my provider is Strato.com
are you on a shared host? do you have the vhost.conf in the correct directory? httpd.include is only likely to be a tempary fix as it seems many hosting companies will reset them periodically. where are you putting your vhost.conf file?
No im not on a sherd host.
I have VPS @ strato.com
my vhost.conf is in this map:
/srv/www/vhosts/omg-recordz.com/conf
but in the same map there is a httpd.include
ok, try making the same file as your vhost.conf and name it vhost_ssl.conf
redo the server reset.
and put it in the same folder?
Nope same problem.
can you hard reset your server and see what happens
Did hard reset nothing happend. :(
have you been using a control panel access to your vps with your permissions? rather then using plesk or an ftp client to set file permissions, i log in with a remote console application and set permissions for things in that manner.
To create my domain = i use plesk
To create my DB = i use plesk
For all above i use = Putty ssh for permission (root=user)
what flavor of linux is your VPS?
opensuse 11.1 + plesk
ubuntu 8.04 + plesk
im confused. which is it you are dealing with for your install.
the opensuse
but should i try the ubuntu??
not necessarily. its just that different flavors of linux can have slightly different needs. So if I am going to think this through i wanted to know which it is you are installing on.
The openSuse, thats the one im installing on.
ok, so lets start with the basics first.
is your server set up for these base requirements?
http://docs.elgg.org/wiki/Installation/Requirements
The only problem is to get elgg wroking in my root directorie.
If i create elgg in a sub directorie, then it works accept uploading pictures.
So i think the requirments are good. :)
ok, but i would check inside plesk on your domain to see if your php install has safemode checked, if so, uncheck it... then go back and do all the stuf we talked about earlier for the vhost.conf file. safemode is a "security" measure that might be keeping you out of being able do exactly what you wish
Zakary for all ur help.
I found the problem. The problem is Opensuse :)
And this tutorial above is for ubuntu ;)
so you got it to work? and my examples actually apply from my experience with centos
Thank you, you saved my a**
:-D
It took me so many days to figure out, thats a plesk prob...
Best, Eru
Sorry that I was not around to answer any of your questions but I now have a bit more time as I work on my projects I will be around to help if you need it.
Wow.
Thank you. You just saved me a large portion of agro!!
E.P.