I've installed Drupal many times, but I've never come across this problem. I know that when you are running the install, you need to chmod the /sites/default/files and sites/default/settings.php so that apache can write to it. I usually just change it to 777, then when the install is complete, change it back to 775. But right now, this permissions error is coming up.

{[(Web server Apache/2.2.15 (CentOS)

PHP 5.3.3

PHP register globals Disabled

PHP extensions Enabled

Database support Enabled

PHP memory limit 128M

-Error
File system
The directory sites/default/files is not writable. 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.

Unicode library PHP Mbstring Extension

Settings file The ./sites/default/settings.php file exists.

-Error
Settings file The settings file is not writable.
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process. If you are unsure how to grant file permissions, consult the online handbook.)]}

Now I'm not sure what's wrong with the installation. I've gone so far as to chmod 777 all of the directories up to my /home . I haven't a clue. Has anyone else had this problem, and if so, how did you fix it.

Comments

Owner?

It could be the owner of the files directory and settings.php. Which operating system are you using?

Well..

All I know is it's a CentOS machine. I'm in a unix class and I need to install Drupal so we can learn how to file manipulate. I've done it before, but not since my teacher changed it to his server. Now I'm not sure what to do. I'm the owner of all the files. I've heard that apache may need to be the owner, but I have no root access because it is a class. The error says that the /sites/default/files and /sites/default/settings.php need to have write permissions, so they are both at 777 (which yes I know I don't need it at, but I'm desperate).

Strange.you can find the

Strange.

If php is running as Apache module the doc root and contents should normally be owned by the owner of Apache process.

you can find the apache owner with
ps aux | grep httpd
(or maybe ps aux | grep apache2 if the process is called apache2)

If php is running as Apache module, you can ask the teacher, or someone who sufficient permissions, to make the owner of your document root the same as the owner of apache process. Sometimes the owner is nobody, or apache, or www-data or something like that.

You should not be desperate! If the server is not configured correctly to run Drupal, no one can blame you!

here's the thing

Well here's the kicker. My teacher has a "mortal user" account on the system (not a sudoer) and he was able to install drupal just fine. However, he tried to do so on mine, he went up as root, just like he did for his, and downloaded drupal, made the permissions changes, and it doesn't work. Does anyone know why it would work on one account, and not on at least two others (there is another guy trying to do the same thing as me and his isn't working either).
Ugh.
Thanks for all your help. I do appreciate it.

No idea, really. Check your

No idea, really. Check your problem folders are real folders and not sym links. It is clearly a server of some kind. You might create a phpinfo file and see what php.ini file is being loaded and other config paramaters, and see whether the setup is different on the teacher's installation.

Installation tasks Choose

Installation tasks

Choose profile(done)
Choose language(done)
Verify requirements(active)
Set up database
Install profile
Configure site
Finished

OK
Web server Apache/2.2.22 (Ubuntu)
OK
PHP 5.4.6-1ubuntu1.1
OK
PHP register globals Disabled
OK
PHP extensions Enabled
OK
Database support Enabled
OK
PHP memory limit 128M
Error
File system
The directory sites/default/files is not writable. 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
OK
Settings file The ./sites/default/settings.php file exists.
Error
Settings file The settings file is not writable.
The Drupal installer requires write permissions to ./sites/default/settings.php during the installation process. If you are unsure how to grant file permissions, consult the online handbook.

uday

You are right. As you rightly

You are right. As you rightly say in the last line of your post, 'consult the online handbook.' The answer is there. (i.e. the advice to make settings.php writable).

nobody click here