Unable to write to configuration.php Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: 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.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
QoQoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Feb 15, 2021 4:34 am

Unable to write to configuration.php

Post by QoQoo » Sun May 09, 2021 1:30 am

Hello.

I have joomla installed on VmWare (centsos8 stream).

You cannot install correctly because you cannot allow writing to configuration.
php in step 4 of the installation wizard.

Current permission and owner information
var 755 root root
var/www 755 root root
var/www/joomla 755 apache apache

If you install in this state, you can install it,
but an error will occur in the global settings of the management screen.

--Error--
[global configuration save An error has occurred.]


The procedure is as per this site
https://www.tecmint.com/install-lamp-on-centos-8/
https://www.tecmint.com/install-joomla-on-centos-8/


I've tried it over and over again since installing the OS and the situation is the same.
Please help me.
Last edited by toivo on Sun May 09, 2021 2:39 am, edited 1 time in total.
Reason: mod note: moved from 3.x General Questions

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30924
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Unable to write to configuration.php

Post by Per Yngve Berg » Sun May 09, 2021 6:55 am

1) Create a Linux User that the site can run under
2) var/www/joomla 755 apache apache (user must be the user created at step 1, not apache)
3) Set php-fpm to run as user created in step 1, configured in php-fpm.ini.

Repeat this procedure for each site installed. That will isolate the sites from each other, preventing cross contamination if one site get hacked.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44088
Joined: Sat Apr 05, 2008 9:58 pm

Re: Unable to write to configuration.php

Post by Webdongle » Sun May 09, 2021 8:47 am

Is this localhost or remote server?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

QoQoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Feb 15, 2021 4:34 am

Re: Unable to write to configuration.php

Post by QoQoo » Sun May 09, 2021 1:39 pm

Webdongle wrote:
Sun May 09, 2021 8:47 am
Is this localhost or remote server?
This is localhost.
Is there a difference in settings between localhost and remote server?

QoQoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Feb 15, 2021 4:34 am

Re: Unable to write to configuration.php

Post by QoQoo » Sun May 09, 2021 1:51 pm

Per Yngve Berg wrote:
Sun May 09, 2021 6:55 am

Thank you for answering.

1) Create a Linux User that the site can run under

Is it not possible for the root user?

3) Set php-fpm to run as user created in step 1, configured in php-fpm.ini.

php.ini exists but php-fpm.ini doesn't seem to exist
Do I need to create a new one?
You do not have the required permissions to view the files attached to this post.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30924
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Unable to write to configuration.php

Post by Per Yngve Berg » Sun May 09, 2021 2:06 pm

The file is php-fpm.conf

There should be one global file and one for only that Virtual host.

QoQoo
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Mon Feb 15, 2021 4:34 am

Re: Unable to write to configuration.php

Post by QoQoo » Thu May 13, 2021 12:21 am

If SELinux is enabled, it doesn't seem to install properly.
I was able to get it to work properly by disabling SELinux.
Thank you for the advice.


Locked

Return to “Installation Joomla! 3.x”