Installing Joomla! on Sourceforge Project

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderators: General Support Moderators, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
thednx
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Oct 15, 2005 5:50 pm

Installing Joomla! on Sourceforge Project

Post by thednx » Mon Oct 17, 2005 6:37 pm

howdy,

i guess a not-so-standard question: i am setting up joomla on Sourceforge.net (helping out on an open source project), but nomatter what i do, i get an unwritable configuration.php and basically my whole system permissions are absolutely no-no writable.
the site works, but hey, a non-configurable content management system is safe but unflexible...

since i`m not THE unix/linux freak, i tried out the chmod g+w / chmod 777 options on files and directories, but to no avail.
i use winscp to upload the files; cant set anything there (it wont have any effect.)
i use putty to shell onto the server, and try to chmod there, but nothing.

when starting the shell, i get this message: (excerpt):

As per the previous announcement in the sitewide newsletter sent on
2005-02-28, the project home directories on the project web servers
have been remounted as read-only on 2005-08-15 at 9:00 AM. We highly
recommend moving to a database storage mechanism (the MySQL server we
provide) or the new directory tree provided for all data writing needs
from the project web servers.
This operation is described at:
https://sourceforge.net/docs/E07#permissions/.

there it says that i need to move everything that needs writing to the tmp directory. is that possible with joomla? what would i need in htdocs, what would i move to tmp?

User avatar
d2o
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 172
Joined: Sat Aug 20, 2005 1:28 pm
Location: Witten, Germany

Re: Installing Joomla! on Sourceforge Project

Post by d2o » Wed Oct 26, 2005 8:10 pm

I'd like to reask this question. I have the same problems with installing Joomla on SourceForge. Does anyone have a clue, how to make Joomla work on sf.net? I found an old thread over at *ambo-Forums, but the project referred to does no longer exist (or at least the link has been removed): http://forum.mamboserver.com/showthread ... ourceforge

I ignored configuration.php not being writable and copied the result to configuration.php. I do get the login-form, but when logging in, it only returns to the form with no notice. Maybe, because the directories mentioned in the installation really have to be writable, but this is not possible at sf.net.

Anyone? Workarounds?

Thanks,
Stefan
°°°°'°°°°
"All you need is Bytes" (Bitles, 2368)

User avatar
d2o
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 172
Joined: Sat Aug 20, 2005 1:28 pm
Location: Witten, Germany

Re: Installing Joomla! on Sourceforge Project

Post by d2o » Fri Oct 28, 2005 3:22 am

Ok, answering myself, just in case someone is interested :)

Processing the installation-procedure of Joomla without write permissions is perfectly fine. You just have to copy the resulting configuration data to configuration.php in the CMS folder (copy & cat > configuration.php, or create a local configuration.php and sftp it over). The main problem is, that the session management needs write permission, i.e., when you try to log in, it would resend you to the login form every time.
To give the session management write permission, you need to change its location. First, you create a temporary project folder and set some access rights (PROECTNAME stands for the projects unix name on sourceforge):

mkdir /tmp/persistent/PROJECTNAME
chmod o+w-r /tmp/persistent/PROJECTNAME

You should make sure, that the project group has write access, too. This is not necessary for Joomla to run, but for project members to access or change it later on:
chmod g+w /tmp/persistent/PROJECTNAME

Now, you have to prepare for Joomla, which is done by creating or extending the .htaccess file with the following lines:

php_value register_globals 0
php_value session.save_path /tmp/persistent/PROJECTNAME

The first is to switch off register globals, which I think is necessary for Joomla to run safe. The second sets the path used by php to store session data. As the target folder is non readable by others, it should be quite safe with respect to cross-intrusion.

If you want to use the caching mechanism of Joomla, you should create a subfolder cache in that location and change its path in configuration.php.

This should make Joomla run with the limitation that you cannot install any components or modules and cannot upload media via the administrator interface. You have to use sftp for that.

Cheers,
Stefan
°°°°'°°°°
"All you need is Bytes" (Bitles, 2368)


Locked

Return to “Installation - 1.0.x”