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

Does nobody have some ideas?

--
bloomaniac

--
bloomaniac

Having the same problem!!!

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 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

--
bloomaniac

/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

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!

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.

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!

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 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.

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:

$ cd /home/groups/P/PR/PROJECTNAME/persistent
$ mkdir sites
$ chmod 0777 sites
$ cd sites
$ mkdir default
$ chmod 0777 default
$ cd default
$ mkdir files
$ chmod 0777 files

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:

$ cd /home/groups/P/PR/PROJECTNAME/persistent/sites/default
$ chmod 0777 settings.php

Now we proceed to creating the symbolic links. Execute the following instructions in PuTTY:

$ cd /home/groups/P/PR/PROJECTNAME/htdocs/sites/default
$ ln -s /home/groups/P/PR/PROJECTNAME/persistent/sites/default/settings.php
$ ln -s /home/groups/P/PR/PROJECTNAME/persistent/sites/default/files

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

---
Hasnain Saleem
TOV FZE - www.tov-me.com
P.O. Box 36049
Dubai - UAE

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 Drupal 7 at http://jsatos.sourceforge.net
Here is the full page text (on the requirements page):

Web server Apache/2.2.3 (CentOS)
OK
PHP 5.3.2
OK
PHP register globals Disabled
OK
PHP extensions Enabled
OK
Database support Enabled
Warning
PHP memory limit 16M
Consider increasing your PHP memory limit to 32M to help prevent errors in the installation process. Increase the memory limit by editing the memory_limit parameter in the file /etc/php.ini and then restart your web server (or contact your system administrator or hosting provider for assistance). See the Drupal requirements for more information.
Error
File system
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see INSTALL.txt or the online handbook.
OK
Unicode library PHP Mbstring Extension
Error
Settings file The settings file does not exist.
The Drupal installer requires that you create a settings file as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php. More details about installing Drupal are available in INSTALL.txt.

What happened?

- jsa005
JS@tHost owner

Come on guys I have the same problem!