Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By bloomaniac on
Hello,
I am trying to install drupal on my sorceforge project website.
I uploaded all files in the htdocs-directory an set the permissions for sites/default/settings.php to 777.
But when opening the site I get this error:
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process.
This doesn't help me.
Any ideas?
Comments
no ideas?
Does nobody have some ideas?
--
bloomaniac
HELP
Having the same problem!!!
Solved
I had the same problem. I solved it by editing my
/sites/default/settings.php
manually. find the section with the database username/password/hostname and put your values in. Hope this helps,
Nick
Thank you. Solved the
Thank you.
Solved the problem by the same way. But the next problem is the files-directory. You have to create you own unter \tmp\... but drupal does not to identify these links. So this does not work.
--
bloomaniac
/files and /tmp
/tmp/persistent/yourproject/files
/tmp/persistent/yourproject/tmp
chmod 777 /tmp/persistent/yourproject/files
chmod 777 /tmp/persistent/yourproject/tmp
Then in the configuration change the values to match the above.
HTH,
Earnie -- http://for-my-kids.com
Re: /files and /tmp
Hello, I am stuck on the same problem. Obviously the php interpreter is not allowed to write in the folders.
Which configuration do I have to change where to use the tmp dir as mentionend above?
Thank you!
SourceForge is special
Putting something in /tmp is dangerous on SourceForge.net, as everybody can write there.
Specifically, the problem is that the file system where the web site lives, which you can get at through the "shell" service, is mounted read-only on the web servers. Perhaps there's some way of storing files inside the MySQL database, instead of in the file system? I can install by editing settings.php manually, but any configuration won't work the way it is now.
Also, the link on this page for running on SourceForge.net doesn't seem to give working instructions anymore.
Pleas help - sourceforge.net
I installed drupal on sourceforge.net everything is ok, but I have still probelm with "/files". Drupal still write, that this file is not writtable, though I used:
/tmp/persistent/yourproject/files
chmod 777 /tmp/persistent/yourproject/files
Oddly I this problem I haven't got with "tmp".
Can anybody help? I know that this is not only my problem. Thank to all!
It works
Login in sf with the shell. Create the files and tmp Folders in persistent and link persistens/files to sites/default/files - it works.
When I googled, I don't see
When I googled, I don't see any successful story of installing drupal on sourceforge.net.
sf.net has some rules such as CGI scripts are served only from the cgi-bin directory for the project; not from the htdocs directory space. All content on the project web servers that needs to be written by the project web servers must be world-writable and be placed under the /home/groups/P/PR/PROJECT/persistent. For more, see http://alexandria.wiki.sourceforge.net/Project+Web,+Shell,+VHOST+and+Dat....
There're many places in many files (e.g. settings.php, bootstrap.inc, install.inc) we need to customise if we put writable files (settings.php) in persistent folder. I tried for hours and finally I don't feel it's worth to do so. So I just abandoned my plan to install Drupal on sourceforge.
Here is the Solution
Basics: Understanding SourceForge Hosting
The project servers consider the "htdocs" folder in a different "space" and hence you don't get to write to this folder, or it's subfolders. However, in the project directory (/home/groups/P/PR/PROJECTNAME) you have a folder called "persistent". This folder consists of writable space, that you can use to install Drupal.
Insight: Understanding the "ln" command (Unix)
The "ln" command in Unix is used to create a symbolic link, which is very close to what we call "shortcuts" in Windows. So the approach to be followed here is to mirror all writable folders in the "htdocs" folder into the "persistent" folder mentioned above.
You don't need to copy/recreate all folders, just the writable ones would do.
Final: The Process
Install Drupal on your SourceForge.net server space in the "htdocs" folder (unzip all files there). Go to the folder "sites/default" and open the file "default.settings.php" in a text editor. Now, copy the contents of this opened file into another file, and name it "settings.php". Save "settings.php" on your desktop.
Then, login to the project shell space using PuTTY (Follow this article for an excellent guide to configuring PuTTY for SourceForge.net). Execute the following instructions:
Now, upload the files "settings.php" to "/home/groups/P/PR/PROJECTNAME/persistent/sites/default/". Once the file is uploaded, execute the following instructions in PuTTY:
Now we proceed to creating the symbolic links. Execute the following instructions in PuTTY:
Closing
Your Drupal installation should work fine now. Remember, once you are done with the installation, you should change the permissions of all folders from 0777 to 0644.
Regards,
Hasnain
---
Hasnain Saleem
TOV FZE - www.tov-me.com
P.O. Box 36049
Dubai - UAE
I'll add a ticket at
I'll add a ticket at sourceforge (hasn't been reported yet). If they fix it, then we won't have to install the complicated way!
Update: It is ticket #2145.
I need to do the same with
I need to do the same with Drupal 7 at http://jsatos.sourceforge.net
Here is the full page text (on the requirements page):
What happened?
The same problem
Come on guys I have the same problem!