Hello everyone,
The question I ask might have been solved here on the forum, but being nOob I have trouble locating stuff here.
I am attempting to test site on my local machine (Ubuntu 9.04). To this end, I got XAMPP 1.6.8a, and installed Drupal 6.14 on it.
The problem is that the drupal installer cannot change the permissions to sites/default & settings.php automatically. Something seems misconfigured in the permissions sections. I did grant 666 permissions to teh directory/ file in question. Install went fine, but the system could not cancel the write permissions after install.
Is that a owner/group permission problem perhaps? What user/group should the drupal/ XAMPP files belong to?
Thanks in advance,
IH

Comments

Anonymous’s picture

1. make sure you use the sudo command to start xampp
cd /opt/lampp
sudo ./lampp start

If you do this, PHP should be able to chmod settings.php as required.

ivanhelguera’s picture

Thank you for your suggestion. I do start lampp with sudo privileges - it won't let me run otherwise. In fact, after changing the permissions manually, the site works fine. What I would like to know is *why* such a problem appears, in fact. In particular I'd like to know if it means that somethning's broken with me permissions system.

barraponto’s picture

same thing happens with me ever since i started working with drupal. i actually thought it was just broken.
instead of xamp, i use debian's lamp (lenny stable) and have used ubuntu lamp (9.04) before.
i always had to manually set permissions. maybe it is broken.

Capi Etheriel
Web Developer, Designer and Scraper
http://barraponto.dev.br

ivanhelguera’s picture

I mean, my local XAMPP install seems to work perfectly fine. That's actually quite confusing, as if there is a problem with permissions, it should not be so.
What's more, the problem should have a pretty straightforward answer: there is some application (apache/php) that calls a php script that is the installer. It *should* be pretty clear what is required for the app to run.
As for using the ubuntu lamp - I prefer relying on LAMPP in /opt/ for testing purposes, as it gives me full control (or at least, an illusion of it ;-) over it's starting stopping, uninstalling, etc.