HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Setup Wizard error on final page

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#106653 (In Topic #20792)

Fan in action

Brand new ocPortal install on Windows 2008 r2 with IIS. Trying to run the Setup Wizard, get this error on the very last page, hit Proceed button.

Cannot write to sources/hooks/systems/notifications/backup_finished.php. File permissions for it (or the directory it is in) have not been set correctly.
(version: 9.0.16, PHP version: 5.4.24, URL: /ocportal/adminzone/index.php?page=admin_setupwizard&type=step10&keep_fatalistic=1)
You have turned on stack traces for all errors, via having keep_fatalistic=1 in the URL. This means that this may not actually be a fatal error, you have just asked for it to be presented as such (perhaps to help you find where it came from).
Expanded advice
The server could not edit/create a file/directory.
How did this happen?
Your file permissions aren't correct.
How do I fix it?
There are tools in the upgrader script to check and repair permissions.
You can access the upgrader by calling up the '/upgrader.php' URL on your site.


I ran the upgrader to "check and fix missing permissions", twice.  Reran wizard, same error. Any ideas appreciated.
Thanks
Dean
Back to the top
 
Posted
Rating:
#106654
Avatar

Hi,

Did you set full inheritable write permissions?

That's always best, otherwise ocPortal would need to install/uninstall addons using FTP, which may not be installed (needs the PHP FTP addon).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#106675

Fan in action

I am not certain what "full inheritable write permissions" means on Win 2008 server.

The users/groups
  • SYSTEM User,
  • Domain Admins group,
  • The Admin group,
  • IIS_USRS group,
  • TrustedInstaller
all have "full control" for every file and folder all the way from the parent ocPoral directory on down to Notifications and the individual file "backup_finished.php". What other settings could this error be referring to?

FYI, not all the PHP extensions were enabled on this server. The disabled ones did not seem to be related, but I enabled them to be safe. Only disabled extensions now are the database ones, e.g. php_Sybase_ct.dll. Same result as before.


Thanks again.
Back to the top
 
Posted
Rating:
#106676
Avatar

Try adding for IUSR too.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Jason VerhagenLiked by GuestLiked by RichT)  
Rating:
#106679

Fan in action

Yep, adding IUSR credentials allowed the setup wizard to complete. Interesting.

Having poked around the site a bit, Chris G, you seem to be the founder/lead engineer. Having been that role, I can appreciate your postion. Thanks a bunch for spending the time you do helping out here. Much appreciated.

To others reading this thread, please take note. Don't take for granted the time Chris and other employees spend here on the forums. It costs actual money and time taken away from other tasks. Please support ocPortal with your time and money. If you had to build a site from scratch, or with other tools, your website would cost orders of magnitude more.

Back to the top
 
Posted
Rating:
#106681
Avatar

Thanks :)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#107093
Avatar

Fan in training

Have the same issue running on CentOS 7, everything goes fine until the last step.  Checked the Directory and file, all are set to read write execute ( 777 ) It is wide open, don't understand the issue. I checked Selinux it is set to permissive..
What am I missing? It is a very generic machine, running CentOS 7. Dual Xeon Dual core machine with 16 gig, 1.3 tb of disk space, hardware raid, as I said generic.

I get to the last step of the setup wizzard then get the following error

sources/hooks/systems/config_default/backup_overwrite.php. File permissions for it (or the directory it is in) have not been set correctly.

John
 
Back to the top
 
Posted
Rating:
#107094
Avatar

You said you checked the file, but it may be changing 100s of them so have you confirmed that after checking the permissions on that file and refreshing, it's still referring to the same file?

If everything really is 777, it is a bit mysterious.
I just checked and apparently CentOS 7 uses systemd and I've seen systemd has an ACL implementation. I saw config details here:
https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-acls-setting.html
I've never used ACLs on Linux, I don't know if they were common before systemd, but one possibility is CentOS 7 has just made them more prominent with its systemd switch.

Selinux would be another candidate, but you said you set it to permissive. I don't know much about selinux config, so I'm not sure if permissive essentially disables it or if there is further config for it.

Regardless, I'd definitely advise using a suexec set up. Pretty much all web hosts now do, as it is much more secure than making everything 777.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: