Drupal Settings file does not exist - php

I'm trying to set up a fresh install of drupal on on linux box and I'm getting the 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.
I have set the permissions for the settings.php file but it is still doing it. sites,default and files all have 777 permissions but it still won't work. I have both the default.settings.php and settings.php in the default folder.
Thanks

You have to keep in mind some things:
Your web server has to have the permission to run your code. If you are using Ubuntu, it would be better if you give www-data.www-data (user and group) permission to sites/default folder
To give 777 to files is dangerous because someone else can read this sensible file
Remember that all folders, including your Drupal root folder has to be readable, which means it has to have some thing like 755 permission.
Most time, this problem is related to the user running the web server and files.

Change back the settings.php permission.change settings.php permission to 755. (read only, to make protected)
Step by step:
Copy file default.settings.php to settings.php (do not rename). Now you have both files.
Change file permission settings.php to read/write with chmod 644 settings.php
Continue the installation..
After all installation finished, change file permission settings.php to read-only with chmod 755 settings.php
I hope it helps you

I have fixed that by this:
chown -Rv apache:apache /var/www

go to the directory that contain default.settings.php & settings.php files then, right click on each one then click on Get Info then scroll down until you see the permission of that file, make sure it's 'read & write' enter image description here

Related

Wordpress Filezilla to AWS Permission Issue?

I'm trying to edit a wordpress .php file through Filezilla. I've connected correctly to the AWS instance with an ubuntu username. The problem is, I can view and make changes to the .php file but when I try to save those changes or re-upload them I get a permission denied error. I can add the file to the /ubuntu folder but no the /home folder where the wordpress files are located. That's as far as I can get at the moment, I know the permissions have to be changed, but i'm not sure how. Just trying to help out a non-computer savvy friend. Any help will be appreciated, cheers.
Right click on file and go to file permissions and give the permission
for file 644
for folder 755
To change file permission on ubuntu use sudo chmod {options} filename
link
Make sure that while creating any file or editing the file use sudo vi filename

Magento Connect Manager & ftp write file permissions

After transferring my site from development domain to a live domain I have tried to use the magento connect manager to install an extension, however I keep getting:
CONNECT ERROR: Please check for sufficient ftp write file permissions.
Your Magento folder does not have sufficient write permissions, which downloader requires.
I have set my folder permissions to be:
root: 777
downloader (and recursively into directories only) 777
downloader/config.ini 666
media 777
media/downloadable 777
var 777
app/etc 777
app/code/community 777
var/cache 777
I have also used the magento file permissions cleanup tool located at this post: http://www.magentocommerce.com/wiki/groups/227/resetting_file_permissions
I have also flushed cache and disabled cache within the site for the moment.
Still no joy! I keep getting the same error message - can anyone advise?
Try downloader and its inner folders permission as 775 and files as 664.
Sometimes the group and user ownership (of files and folders) will change when moving from one host to another. Make sure that the files are owned and accessible to the web server.

unable to delete files on joomla install fedora 20

I can't get Fedora to allow med to delete installation files or write the configuration.php. I have chmod 777 all files and directories.
chown apache:apache all files.
It will work correctly if I copy the configuration.php to the directory. But then I can't upload templates because the joomla/tmp folder is not writable.
Any ideas how to get it to work?
Firstly, change back the file permissions. Do not make everything 777. Files should be 644 and folders should be 755.
The reason why you are not able to edit files or upload anything is due to the folder ownership. This is something that you hosting provider will need to sort out for you.
The actual problem was that SELINUX prevented apache from writing to disc.

premisson to working correctly laravel

I created a project with Laravel 4 but when I go to the folder localhost /my_project/public get some errors related to the permissions. I solved it setting to 777 all the permissions of the folder and files contained in my_project. Is there a way to solve this thing is not to make 777?
What's happen when you set 755 permission to my_project directory? Try to change permissions and check it. Your directory should be able to read all files in public directory.
I set my ownership to be owned by www-data:
chown -R auser:www-data /path/to/laravel/root
I also make all my subfolders and files read and write by group:
chmod -R g+rw /path/to/laravel/root
I also make my folders have a sticky bit so if you add a new file, it inherits:
chmod -R g+s /path/to/laravel/root
This has always worked for me. Perhaps Linux experts might have better ideas but this is what I use.
Please refer to Laravel's documentation about installation located at http://laravel.com/docs/installation. Under no circumstances you should run laravel on production with full permissions to the whole world. You must also remember that your "application" will be executed from the public directory so there is NO reason to allow read/write/execute for the whole world to the whole project directory unless you don't care about security at all.
Anyway, extracted from Laravel's documentation from the permissions section:
"Laravel may require one set of permissions to be configured: folders
within app/storage require write access by the web server."
This whould make your project run smooth.

VQmod on new VPS not writing vqcache files or log files

I am just moving an opencart site to a staging server and have vqmod installed in the site however I can't get vqmod to create the vqcache files and it isn't even logging any errors in the vqmod/log folder. I've basically set the directory structure to 777 to get it to work from a permissions point of view and everything is ownership user:www-data but still no joy.
Just in case anyone has a similar issue, it was a user groups issue, the ownership settings for the vqmod.php file were user:user rather than the required user:www-data
You should actually set the permissions for your vqmod.php to be the same as your index.phpin your main OpenCart folder, not alter the owner of the file. You should also set the permissions of the following be the same as your /system/cache/ folder
/vqmod/
/vqmod/vqcache/
/vqmod/logs/

Categories