Well after much trial and lots of issues, I finally have it working.
to get PHP to work correctly:
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary:/tmp
signal-event ibay-modify Primary
to get the overrides working properly for Apache:
db accounts setprop Primary AllowOverride all
db accounts setprop Primary FollowSymLinks enabled
db accounts setprop Primary Indexes disabled
signal-event ibay-modify Primary
to set appropriate memory limits for php:
db configuration setprop php MemoryLimit 128M
db configuration setprop php PostMaxSize 112M
db configuration setprop php UploadMaxFilesize 96M
expand-template /etc/php.ini
sv t httpd-e-smith
in order to be able to ftp new themes and modules to your drupal installation, you need to go to the server-manager panel in smeserver and:
- create a user from the user panel and reset their password
- enable ftp from local networks
and give them access permissions; say you created a user called
fred, then in order for
fred to be able to ftp the required files via the drupal interface, then you give them permission to do so like this:
cd /home/e-smith/files/ibays/Primary/html/
chown -R fred:www .
find . -type d -exec chmod u=rwx,g=rx,o= {} \;
find . -type f -exec chmod u=rw,g=r,o= {} \;
where
fred is the user account you use to ftp the files (for example installing a new theme) and
www is the account that smesever runs the web server under.
and lastly you have to modify the /etc/proftpd.conf file and comment out the "DefaultRoot" line
cp /etc/e-smith/templates/etc/proftpd.conf/05DefaultRoot /etc/e-smith/templates-custom/etc/proftpd.conf/
nano /etc/e-smith/templates-custom/etc/proftpd.conf/05DefaultRoot
and make comment out the DefaultRoot like:
#DefaultRoot /home/e-smith/files
save the file by going pressing the
control and
o keys together, then exit nano by pressing the
control and the
x keys together.
then you need to expand the template:
expand-template /etc/proftpd.conf
to confim this:
config show ftp
should return:
ftp=service
LoginAccess=private
TCPPort=21
access=private
status=enabled
NOTE: Do *not* set the ChrootDir property that I did in an earlier posting as it causes problems!:
config setprop ftp ChrootDir /home/e-smith/files/ibays/Primary/html/drupal-7.2/sites/default/files/tmp2I have this working on the 8Beta7 release.
So the key lessons are:
(1) the user account that you use to ftp the files (e.g. themes and modules) must correctly access the various drupal directories
(2) DefaultRoot for proftpd must be disabled.
As a footnote, I would recommend only enabling ftp via the server-manager panel just when you need it so that it is not turned on all the time!
I would be interested in any comments from more knowledgeable drupal people that me!
It now works properly, what a mission.
If anyone is interested I could write a HOWTO?