Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: blockbuster on June 20, 2006, 02:12:28 AM
-
I have installed Gallery 2.1 on my SME Server rc3, to download the files I have used Subversion. Set up the databases etc, so far so good.
When I run the installer of Gallery, step 1 Welcome and Authenticate. In the 3rd step I get the following error:
Error: Some files and or directories in your storage directory are not writeable by the webserver user. Run chown -R webserverUser /home/e-smith/files/ibays/gallery/files/albums/ OR run chmod -R 777 /home/e-smith/files/ibays/gallery/files/albums/.
I have chown the directory as www and I have chmoded the directory as 777.
Stil the directory is not writeable due to some php or webserver restriction.
Does anyone have a suggestion how to enable writing to this directory?
-
I think you will find the problemis with the "files" subfolder in the gallery folder.
SME set up the "files" folder part of the ibay for file sharing portion, and protects if from internet access. Any "files" folder in the ibay is treated as this alias.
The way I solved it was to modify the template that sets up the alias for "files", and commented out those lines. I do not use this server as a file server. Only email and web server.
I do not have the exact code change at hand, but can provide it when I get back to the office.
Bob
-
blockbuster----
Does the message or error log show any basedir trouble?
Most of Gallery goes into the /html/ area of the iBay.
Only the g2data stuff (image firewall) goes into the /files/ area
----best wishes, Robert
-
Robert,
The error log show only as I wrote exact copy of the message. The funny thing is that the I have run this installation this way on my 6.0.1 Box now I have upgraded to 7.0rc3 I run across this problem.
All php files are in the html directory only the albums directory which I didn't name the standard way g2data are in the files directory. I have done it this way because Gallery is advising not to put the albums directly in the webserver directory.
So because it was running without any problems on my sme 6 box I thought sme 7 might have some increased security issues why it's not running?
Anything apache or php related?
-
blockbuster----
You should follow the Gallery2 instructions;~) You need
/files/g2data/albums/
becaused other directories are used in that area - with different permissions.
The /files/ directory is a difficult (protected) area.
The /albums/ area must be www writeable. By not giving another directory in front of /albums/ I think you make problems for yourself because SME will not let you open up the permissions on co-located directories that Gallery2 needs to place... you should follow the Gallery2 instructions;~)
----best wishes, Robert