summaryrefslogtreecommitdiffstats
path: root/lib/private/setup.php
Commit message (Collapse)AuthorAgeFilesLines
* Avoid error message in log during setup because of existing data dirMorris Jobke2016-01-261-1/+3
|
* Exclude .htaccess modifications from code checkerLukas Reschke2016-01-221-1/+1
| | | | After the initial installation ownCloud will write some content into the .htaccess file such as the 404 or 403 directives. This adds a magic marker into the .htaccess file and only the content above this marker will be compared in the integrity checker.
* Happy new year!Thomas Müller2016-01-121-1/+3
|
* getLowStrengthGenerator does not do anything anymoreRoeland Jago Douma2016-01-111-2/+2
|
* Use OCP\Util::getVersion instead of the internal private implementationMorris Jobke2015-12-181-1/+1
|
* Merge pull request #20878 from ↵Thomas Müller2015-12-111-25/+8
|\ | | | | | | | | owncloud/proper-htaccess-support-in-code-signing-checker Also run .htaccess routine when installing on another system than Apache
| * Don't write directives from CLILukas Reschke2015-12-081-0/+5
| |
| * Run .htaccess updates in any caseLukas Reschke2015-12-081-5/+3
| | | | | | | | This is the same what we also do in updater.php and thus this aligns the code. Makes the code paths more consistent.
| * Remove version check out of .htaccessLukas Reschke2015-12-081-20/+0
| | | | | | | | This can now be achieved using the new code signing.
* | Add DirectorySlash to dynamic .htaccess writeLukas Reschke2015-12-081-0/+3
|/ | | | | | | | When `DirectorySlash off` is set then Apache will not lookup folders anymore. This is required for example when we use the rewrite directives on an existing path such as `/core/search`. By default Apache would load `/core/search/` instead `/core/search` so the redirect would fail here. This leads however to the problem that URLs such as `localhost/owncloud` would not load anymore while `localhost/owncloud/` would. This has caused problems such as https://github.com/owncloud/core/pull/21015 With this change we add the `DirectorySlash off` directive only when the `.htaccess` is writable to the dynamic part of it. This would also make `localhost/owncloud` work again as it would trigger the 404 directive which triggers the redirect in base.php.
* Replace old config code with usage of proper APIsMorris Jobke2015-12-021-2/+4
|
* Set RewriteBase to / if OC::WEBROOT is not setLukas Reschke2015-12-011-1/+2
|
* Set "SetEnv" within base `.htaccess` fileLukas Reschke2015-12-011-0/+3
| | | | mod_rewrite as used by the front controller may require a `RewriteBase` in case the installation is done using an alias. Since we cannot enforce a writable `.htaccess` file this will move the `front_controller_active` environment variable into the main .htaccess file. If administrators decide to have this one not writable they can still enable this feature by setting the `front_controller_active` environment variable within the Apache config.
* Support pretty URLsLukas Reschke2015-12-011-0/+6
| | | | | | | | | | | | This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore. Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons. Examples: http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/ Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
* Check for PDO instead of removed function for PHP 7 compatibilityLukas Reschke2015-07-301-8/+22
|
* - more injectionThomas Müller2015-07-301-6/+20
| | | | | | - less static calls - use params on sql queries - handle sql exception on database and user creation gracefully
* Moving mysql setup code over to DoctrineThomas Müller2015-07-291-1/+1
|
* Remove remainings of mssqlThomas Müller2015-07-291-7/+0
|
* update license headers and authorsMorris Jobke2015-06-251-1/+0
|
* Only update the htaccess ErrorDocument links when they are not set yetJoas Schilling2015-06-231-4/+14
|
* Add check for activated local memcacheLukas Reschke2015-03-281-1/+2
| | | | | | Also used the opportunity to refactor it into an AppFramework controller so that we can unit test it. Fixes https://github.com/owncloud/core/issues/14956
* Update license headersJenkins for ownCloud2015-03-261-4/+32
|
* Fix setup configVincent Petry2015-03-161-1/+1
|
* Merge pull request #13733 from ↵Thomas Müller2015-03-161-0/+5
|\ | | | | | | | | mmattel/Try_to_write_logtimezone_during_installation Write the parameter 'logtimezone' into config.php during setup
| * Write the parameter 'logtimezone' into config.php during setupMartin2015-01-281-0/+5
| |
* | drop any fallback code related to curl - refs ↵Thomas Müller2015-03-121-10/+0
| | | | | | | | https://github.com/owncloud/core/pull/14838#issuecomment-78586447
* | Don't play with config values ...Thomas Müller2015-03-111-6/+11
| |
* | Properly handle available databases at runtime and respect setup checks in ↵Thomas Müller2015-03-111-15/+102
| | | | | | | | command line as well
* | Revert "Updating license headers"Morris Jobke2015-02-261-32/+4
| | | | | | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* | Fix namespace of OC_Setup -> \OC\SetupThomas Müller2015-02-231-21/+30
| |
* | Updating license headersJenkins for ownCloud2015-02-231-5/+32
| |
* | Add `Satisfy All`Lukas Reschke2015-02-191-0/+1
| | | | | | | | Fixes https://github.com/owncloud/core/issues/14356
* | Use the untrusted domain in the installerLukas Reschke2015-02-181-2/+2
| |
* | Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-2/+4
| | | | | | | | | | | | | | | | | | | | This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
* | Reference module with `.c`Lukas Reschke2015-01-281-2/+2
|/ | | | Fixes https://github.com/owncloud/core/issues/13657
* Make error more descriptiveLukas Reschke2015-01-261-1/+1
| | | | Ref https://github.com/owncloud/core/issues/13693#issuecomment-71546767
* Use setConfigs() instead of calling setConfig() multiple timesJoas Schilling2015-01-231-8/+9
|
* Add version to .htaccessLukas Reschke2015-01-081-1/+30
| | | | | | | | | Currently if a user does not replace the .htaccess file with the new update this can lead to serious problems in case Apache is used as webserver. This commit adds the version to the .htaccess file and the update routine fails in case not the newest version is specified in there. This obviously means that every release has to update the version specified in .htaccess as well. But I see no better solution for it. Conflicts: lib/private/updater.php
* Trim port from domainLukas Reschke2014-12-031-1/+1
| | | | | | Depending on the used environment the port might be appended to the host header resulting in an inaccessible instance when initially setting up on a system with a different HTTP or HTTPS port. (for example test:500) To test this setup ownCloud under a different port with and without this patch. (heads-up: localhost is always white-listed, so use a different domain)
* Disable OCI as it is unsupported by most CE appsLukas Reschke2014-11-281-1/+1
|
* Disable MSSQL for new CE installationsLukas Reschke2014-11-281-1/+1
| | | | Since automatic schema migrations are not yet possible let's disable this for now.
* Correctly namespace DatabaseSetupExceptionJoas Schilling2014-11-261-4/+1
|
* Fix stupid copy paste failLukas Reschke2014-10-301-1/+1
| | | ...
* code cleanup during review :+1:Thomas Müller2014-10-271-17/+17
|
* Make supported DBs configurable within config.phpLukas Reschke2014-10-271-1/+102
| | | | | | This commit will make the supported DBs for installation configurable within config.php. By default the following databases are tested: "sqlite", "mysql", "pgsql". The reason behind this is that there might be instances where we want to prevent SQLite to be used by mistake. To test this play around with the new configuration parameter "supportedDatabases".
* Set overwritemailurl* configs on setupJoas Schilling2014-10-141-1/+1
| | | | | | | | | | | | Correctly use overwritemailurl value when generating absolute urls in CLI Fix #11500 Rename the config to *cli Add overwrite.cli.url to the sample config Revert separator fix, fixes unit test
* Merge pull request #10934 from owncloud/datadir-write-setupVincent Petry2014-09-251-3/+13
|\ | | | | Don't complain about non-writable datadirs before we're installed
| * Check for writable datadir during setupRobin Appelman2014-09-181-3/+13
| |
* | remove post setup checkThomas Müller2014-09-221-21/+1
|/
* Set overwritewebroot when installing owncloud to avoid problemsJoas Schilling2014-09-081-0/+1
| | | | Fix #10514