View Issue Details

IDProjectCategoryView StatusLast Update
5075Composr alpha bug reportsGeneral / Uncategorisedpublic2022-12-23 15:33
ReporterAdam Edington Assigned ToChris Graham  
PrioritynormalSeveritytrivial 
Status newResolutionreopened 
Summary5075: v11 installer permissions
Description"Cannot write to comcode_safelist.txt. File permissions for it (or the directory it is in) have not been set correctly."

Quite a list of files that cannot be written to according to initial install checks, this error message happens on Step 5. v10 installs without issue on the same Bitnami Wampstack.
TagsNo tags attached.
Attach Tags
Attached Files
who.php (87 bytes)   
<?php

echo shell_exec('whoami');
echo shell_exec('groups');
echo shell_exec('ls -l');
who.php (87 bytes)   
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2022-11-23 18:27

administrator   ~7729

Is there anything more you can say about this? Did you try and chmod any of the files mentioned? Did you need to chmod for v10?

Adam Edington

2022-11-23 18:35

administrator   ~7730

This is localhost Bitnami Wampstack. Never had to chmod anything for v10 (local or live) but I have tried with v11 to no avail so not sure what's causing this. v10 installs without issue is all I know for sure.

Chris Graham

2022-11-23 18:43

administrator   ~7731

v11 explicitly scans permissions in a detailed way, while v10 just checks to see if PHP thinks files are writable.
My guess is that the server is not suEXEC, but has the web server user and the hosting account user in the same group, with default permissions to make things writable for that group.
If you can run who.php on your server and tell me the output that will help me confirm.

Adam Edington

2022-11-23 18:48

administrator   ~7732

nt authority\system

Chris Graham

2022-11-23 18:50

administrator   ~7733

Oh, it's a Windows server?

Chris Graham

2022-11-23 18:50

administrator   ~7734

Oh of course, you said Wamp

Chris Graham

2022-11-24 00:39

administrator   ~7735

I've looked at this, and I got a lot of errors on Windows IIS too. Windows permissions are much more complex than Linux ones, due to how access-control-lists and (on IIS) application pools work. I've made some improvements so it works better. But I've also simply disabled the permission check on the installer on Windows unless explicitly enabled via a URL flag because I'm concerned about performance.

Chris Graham

2022-11-24 01:06

administrator   ~7736

Actually I'll add permissions check back in for Windows, but I'll make the basic permission check (which the installer does) work more like how it used to - checking writability directly rather than reading and comparing the individual permissions (slow). We'll then keep the more advanced check for the upgrader and the Health Check.

Adam Edington

2022-11-24 01:25

administrator   ~7737

Excellent, thank you.

Adam Edington

2022-11-24 09:55

administrator   ~7738

Last edited: 2022-11-24 10:09

Had another attempt with latest files, failed on Step 5 again. Still got a big list of permission issues on initial install page but I notice there is a change from forward slashes to backslashes in the paths which is likely the cause:-

"Set additional permissions for W:\Bitnami\wampstack-8.0.20-0\apache2\htdocs\v11/uploads/website_specific/graph_test (execute)."

Also of note:- A Composr file, sources/hooks/systems/addon_registry/all_icons.php is missing – it needs to be uploaded.

13 corrupt files mentioned (I know this is due to alpha state):-

    themes/default/templates/ECOM_TRANSACTION_BUTTON_VIA_CCBILL.tpl
    themes/default/templates/ECOM_SUBSCRIPTION_BUTTON_VIA_CCBILL.tpl
    themes/default/templates/HTML_HEAD.tpl
    themes/default/templates/MEDIA_VIMEO.tpl
    themes/default/css/news.css
    themes/default/css/global.css
    themes/default/javascript/webfontloader.js
    themes/default/javascript/core_rich_media.js
    lang/EN/galleries.ini
    lang/EN/ecommerce.ini
    lang/EN/cleanup.ini
    lang/EN/cns_components.ini
    data/db_meta.bin

Adam Edington

2022-11-27 23:12

administrator   ~7749

Path issues (mixed slashes)

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change
2022-11-22 17:49 Adam Edington New Issue
2022-11-22 17:49 Adam Edington Status Not Assigned => Assigned
2022-11-22 17:49 Adam Edington Assigned To => user4172
2022-11-23 18:27 Chris Graham Note Added: 0007729
2022-11-23 18:35 Adam Edington Note Added: 0007730
2022-11-23 18:42 Chris Graham File Added: who.php
2022-11-23 18:43 Chris Graham Note Added: 0007731
2022-11-23 18:48 Adam Edington Note Added: 0007732
2022-11-23 18:50 Chris Graham Note Added: 0007733
2022-11-23 18:50 Chris Graham Note Added: 0007734
2022-11-24 00:39 Chris Graham Assigned To user4172 => Chris Graham
2022-11-24 00:39 Chris Graham Status Assigned => Resolved
2022-11-24 00:39 Chris Graham Resolution open => fixed
2022-11-24 00:39 Chris Graham Note Added: 0007735
2022-11-24 01:06 Chris Graham Note Added: 0007736
2022-11-24 01:25 Adam Edington Note Added: 0007737
2022-11-24 09:55 Adam Edington Note Added: 0007738
2022-11-24 09:55 Adam Edington Note Edited: 0007738
2022-11-24 10:04 Adam Edington Note Edited: 0007738
2022-11-24 10:07 Adam Edington Note Edited: 0007738
2022-11-24 10:08 Adam Edington Note Edited: 0007738
2022-11-24 10:09 Adam Edington Note Edited: 0007738
2022-11-27 23:12 Adam Edington Status Resolved => Not Assigned
2022-11-27 23:12 Adam Edington Resolution fixed => reopened
2022-11-27 23:12 Adam Edington Note Added: 0007749
2022-11-28 18:35 Chris Graham Project Composr => Composr alpha bug reports
2022-11-28 18:35 Chris Graham Category installer => General
2023-02-26 18:29 Chris Graham Category General => General / Uncategorised