https://bugzilla.wikimedia.org/show_bug.cgi?id=34945

Viktor Adamek <vik...@realraum.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.19                        |1.20-svn
           See Also|                            |https://bugzilla.wikimedia.
                   |                            |org/show_bug.cgi?id=24133
            Summary|LocalSettings.php readable  |CLI-installer generates
                   |by other users (FC16        |globally-readable
                   |Package)                    |LocalSettings.php

--- Comment #6 from Viktor Adamek <vik...@realraum.at> 2012-03-04 18:38:57 UTC 
---
(In reply to comment #5)

> Do you realise that 1.9 was 5 years ago? ;)

oops, yah, hmm - ah, sometimes i live in the past ;-)
I just found out, that the topic was already discussed in Bug: 24133


Nevertheless I tried it with the command-line installer using this branch:
svnroot/mediawiki/trunk/phase3/ (which should be 1.20 alpha).
If I'm not confused too much this time (right branch?) the CLI script produces
a globally-readable file, while the web-installer forwards the task to the
sysadmin to take care of the right umask, when copying the file.


[root@alex w]# php maintenance/install.php   --dbuser testwikiuser --dbpass
NotForYou --installdbpass NotForYou --installdbuser root  --pass NotForYou test
WikiSysop

PHP 5.3.10 is installed.
Warning: Could not find APC, XCache or WinCache.
Object caching is not enabled.
Found ImageMagick: /usr/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Using server name "http://alex.wg";.
Warning: No --scriptpath specified, using default: /wiki.
Using server URL "http://alex.wg/wiki";.
Warning: Your default directory for uploads (/var/www/w/images/) is not checked
for vulnerability
to arbitrary script execution during the CLI install.
Warning: The intl PECL extension is not available to handle Unicode
normalization, falling back to slow pure-PHP implementation.
If you run a high-traffic site, you should read a little on Unicode
normalization.
The environment has been checked.
You can install MediaWiki.
Setting up database
done
Creating tables
Warning: MediaWiki tables seem to already exist.
Skipping creation.
done
Creating database user
done
Populating default interwiki table
Warning: The interwiki table seems to already have entries.
Skipping default list.
done
Initializing statistics
done
Generating secret keys
done
Creating administrator user account
done
Creating main page with default content
done
[root@alex w]# ls -l LocalSettings.php 
-rw-r--r--. 1 root root 4487 Mar  4 19:04 LocalSettings.php

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to