Hey.
I have problems getting an error right after installing Nextcloud 15.0.0. Centos7
When loading the page:
http://192.168.69.24/nextcloud/
Internal Server Error
The request cannot be processed by the server.
If this happens again, send the server administrator a detailed message about the incident below.
Detailed information can be found in the server log.
Technical details
Remote Address: 192.168.1.15
Request ID: XECCqH91InL81bMuzkiUXwAAAAY
Please tell me what is missing or what I have not done?
Hereâs whatâs in the logs:
/var/log/httpd/Access_log
ХвОдка
192.168.1.15 - - [17/Jan/2019:16:58:22 +0300] âGET /nextcloud/ HTTP/1.1â 500 9143 â-â âMozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36â
/var/log/httpd/Error_log
ХвОдка
[Thu Jan 17 16:58:01.449333 2019] [core:notice] [pid 15022] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Jan 17 16:58:01.528312 2019] [suexec:notice] [pid 15022] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 17 16:58:01.597956 2019] [auth_digest:notice] [pid 15022] AH01757: generating secret for digest authentication âŚ
[Thu Jan 17 16:58:01.599209 2019] [lbmethod_heartbeat:notice] [pid 15022] AH02282: No slotmem from mod_heartmonitor
[Thu Jan 17 16:58:06.783909 2019] [mpm_prefork:notice] [pid 15022] AH00163: Apache/2.4.6 (CentOS) PHP/7.2.14 configured â resuming normal operations
[Thu Jan 17 16:58:06.783963 2019] [core:notice] [pid 15022] AH00094: Command line: â/usr/sbin/httpd -D FOREGROUNDâ
[Thu Jan 17 16:58:25.211474 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.211546 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âtouch(): Unable to create file \/var\/www\/nextcloud\/config\/config.php because Permission denied at \/var\/www\/nextcloud\/lib\/private\/Config.php#240â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.211738 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.211759 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âfopen(\/var\/www\/nextcloud\/config\/config.php): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Config.php#241â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.211926 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.211946 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âchmod(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Config.php#244â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.643623 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.643660 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âfileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.643706 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âindexâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:{âExceptionâ:âOC\\HintExceptionâ,âMessageâ:âCanât write into config directory!â,âCodeâ:0,âTraceâ:[{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Config.php",âlineâ:132,âfunctionâ:âwriteDataâ,âclassâ:âOC\\Configâ,âtypeâ:"->",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/SystemConfig.php",âlineâ:100,âfunctionâ:âsetValueâ,âclassâ:âOC\\Configâ,âtypeâ:"->",âargsâ:[âinstanceidâ,âocim2r56kp0bâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/legacy\/util.php",âlineâ:1143,âfunctionâ:âsetValueâ,âclassâ:âOC\\SystemConfigâ,âtypeâ:"->",âargsâ:[âinstanceidâ,âocim2r56kp0bâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/base.php",âlineâ:415,âfunctionâ:âgetInstanceIdâ,âclassâ:âOC_Utilâ,âtypeâ:"::",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/lib\/base.php",âlineâ:656,âfunctionâ:âinitSessionâ,âclassâ:âOCâ,âtypeâ:"::",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/lib\/base.php",âlineâ:1068,âfunctionâ:âinitâ,âclassâ:âOCâ,âtypeâ:"::",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/index.php",âlineâ:40,âargsâ:["\/var\/www\/nextcloud\/lib\/base.php"],âfunctionâ:ârequire_onceâ}],âFileâ:"\/var\/www\/nextcloud\/lib\/private\/Config.php",âLineâ:251,âHintâ:âThis can usually be fixed by giving the webserver write access to the config directory. See https:\/\/docs.nextcloud.com\/server\/14\/go.php?to=admin-dir_permissionsâ,âCustomMessageâ:"â"},âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.644251 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.644278 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âfileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.644306 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âindexâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:{âExceptionâ:âDoctrine\\DBAL\\DBALExceptionâ,âMessageâ:âFailed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database fileâ,âCodeâ:0,âTraceâ:[{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php",âlineâ:992,âfunctionâ:âconnectâ,âclassâ:âOC\\DB\\Connectionâ,âtypeâ:"->",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/DB\/Connection.php",âlineâ:216,âfunctionâ:âexecuteUpdateâ,âclassâ:âDoctrine\\DBAL\\Connectionâ,âtypeâ:"->",âargsâ:[âPRAGMA read_uncommitted = 1â,[],[]]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php",âlineâ:623,âfunctionâ:âexecuteUpdateâ,âclassâ:âOC\\DB\\Connectionâ,âtypeâ:"->",âargsâ:[âPRAGMA read_uncommitted = 1â]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/DB\/Connection.php",âlineâ:151,âfunctionâ:âsetTransactionIsolationâ,âclassâ:âDoctrine\\DBAL\\Connectionâ,âtypeâ:"->",âargsâ:[2]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DriverManager.php",âlineâ:172,âfunctionâ:âconstruct",âclassâ:âOC\\DB\\Connectionâ,âtypeâ:"->",âargsâ:[{âadapterâ:âOC\\DB\\AdapterSqliteâ,âdriverâ:âpdo_sqliteâ,âwrapperClassâ:âOC\\DB\\Connectionâ,âuserâ:"",âpasswordâ:"",âpathâ:"\/var\/www\/nextcloud\/data\/owncloud.db",âtablePrefixâ:"oc",âsqlite.journal_modeâ:âWALâ,âdefaultTableOptionsâ:{âcollateâ:âutf8_binâ,âtablePrefixâ:"ocâ},âplatformâ:{âclassâ:âOC\\DB\\OCSqlitePlatformâ}},{âclassâ:âDoctrine\\DBAL\\Driver\\PDOSqlite\\Driverâ},{âclassâ:âDoctrine\\DBAL\\Configurationâ},{âclassâ:âDoctrine\\Common\\EventManagerâ}]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/DB\/ConnectionFactory.php",âlineâ:158,âfunctionâ:âgetConnectionâ,âclassâ:âDoctrine\\DBAL\\DriverManagerâ,âtypeâ:"::",âargsâ:[{âadapterâ:âOC\\DB\\AdapterSqliteâ,âdriverâ:âpdo_sqliteâ,âwrapperClassâ:âOC\\DB\\Connectionâ,âuserâ:"",âpasswordâ:"",âpathâ:"\/var\/www\/nextcloud\/data\/owncloud.db",âtablePrefixâ:âoc_â,âsqlite.journal_modeâ:âWALâ,âdefaultTableOptionsâ:{âcollateâ:âutf8_binâ,âtablePrefixâ:âoc_â},âplatformâ:{âclassâ:âOC\\DB\\OCSqlitePlatformâ}},{âclassâ:âDoctrine\\DBAL\\Configurationâ},{âclassâ:âDoctrine\\Common\\EventManagerâ}]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Server.php",âlineâ:640,âfunctionâ:âgetConnectionâ,âclassâ:âOC\\DB\\ConnectionFactoryâ,âtypeâ:"->",âargsâ:[âsqliteâ,{âuserâ:"",âpasswordâ:"",âpathâ:"\/var\/www\/nextcloud\/data\/owncloud.db",âtablePrefixâ:âoc_â,âsqlite.journal_modeâ:âWALâ,âdefaultTableOptionsâ:{âcollateâ:âutf8_binâ,âtablePrefixâ:âoc_â},âplatformâ:{âclassâ:âOC\\DB\\OCSqlitePlatformâ}}]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php",âlineâ:118,âfunctionâ:âOC\\{closure}â,âclassâ:âOC\\Serverâ,âtypeâ:"->",âargsâ:["*** sensitive parameters replaced "]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:117,âfunctionâ:âoffsetGetâ,âclassâ:âPimple\\Containerâ,âtypeâ:"->",âargsâ:[âOCP\\IDBConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/ServerContainer.php",âlineâ:132,âfunctionâ:âqueryâ,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[âOCP\\IDBConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:165,âfunctionâ:âqueryâ,âclassâ:âOC\\ServerContainerâ,âtypeâ:"->",âargsâ:[âOCP\\IDBConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php",âlineâ:114,âfunctionâ:âOC\\AppFramework\\Utility\\{closure}â,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[" sensitive parameters replaced "]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:117,âfunctionâ:âoffsetGetâ,âclassâ:âPimple\\Containerâ,âtypeâ:"->",âargsâ:[âDatabaseConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/ServerContainer.php",âlineâ:132,âfunctionâ:âqueryâ,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[âDatabaseConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Server.php",âlineâ:1551,âfunctionâ:âqueryâ,âclassâ:âOC\\ServerContainerâ,âtypeâ:"->",âargsâ:[âDatabaseConnectionâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Server.php",âlineâ:455,âfunctionâ:âgetDatabaseConnectionâ,âclassâ:âOC\\Serverâ,âtypeâ:"->",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php",âlineâ:118,âfunctionâ:âOC\\{closure}â,âclassâ:âOC\\Serverâ,âtypeâ:"->",âargsâ:[" sensitive parameters replaced "]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:117,âfunctionâ:âoffsetGetâ,âclassâ:âPimple\\Containerâ,âtypeâ:"->",âargsâ:[âOC\\AppConfigâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/ServerContainer.php",âlineâ:132,âfunctionâ:âqueryâ,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[âOC\\AppConfigâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Server.php",âlineâ:694,âfunctionâ:âqueryâ,âclassâ:âOC\\ServerContainerâ,âtypeâ:"->",âargsâ:[âOC\\AppConfigâ]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php",âlineâ:118,âfunctionâ:âOC\\{closure}â,âclassâ:âOC\\Serverâ,âtypeâ:"->",âargsâ:[" sensitive parameters replaced "]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:117,âfunctionâ:âoffsetGetâ,âclassâ:âPimple\\Containerâ,âtypeâ:"->",âargsâ:[âOC\\App\\AppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/ServerContainer.php",âlineâ:132,âfunctionâ:âqueryâ,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[âOC\\App\\AppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:165,âfunctionâ:âqueryâ,âclassâ:âOC\\ServerContainerâ,âtypeâ:"->",âargsâ:[âOC\\App\\AppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php",âlineâ:114,âfunctionâ:âOC\\AppFramework\\Utility\\{closure}â,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[" sensitive parameters replaced ***"]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php",âlineâ:117,âfunctionâ:âoffsetGetâ,âclassâ:âPimple\\Containerâ,âtypeâ:"->",âargsâ:[âAppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/ServerContainer.php",âlineâ:132,âfunctionâ:âqueryâ,âclassâ:âOC\\AppFramework\\Utility\\SimpleContainerâ,âtypeâ:"->",âargsâ:[âAppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/Server.php",âlineâ:1722,âfunctionâ:âqueryâ,âclassâ:âOC\\ServerContainerâ,âtypeâ:"->",âargsâ:[âAppManagerâ]},{âfileâ:"\/var\/www\/nextcloud\/lib\/private\/legacy\/template.php",âlineâ:312,âfunctionâ:âgetAppManagerâ,âclassâ:âOC\\Serverâ,âtypeâ:"->",âargsâ:[]},{âfileâ:"\/var\/www\/nextcloud\/index.php",âlineâ:51,âfunctionâ:âprintErrorPageâ,âclassâ:âOC_Templateâ,âtypeâ:"::",âargsâ:[âCanât write into config directory!â,âThis can usually be fixed by giving the webserver write access to the config directory. See https:\/\/docs.nextcloud.com\/server\/14\/go.php?to=admin-dir_permissionsâ,503]}],âFileâ:"\/var\/www\/nextcloud\/lib\/private\/DB\/Connection.php",âLineâ:64,âCustomMessageâ:"â"},âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.899493 2019] [php7:warn] [pid 15023] [client 192.168.1.15:49420] PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
[Thu Jan 17 16:58:25.899529 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âfileperms(): stat failed for \/var\/www\/nextcloud\/data\/nextcloud.log at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#140â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
[Thu Jan 17 16:58:25.899561 2019] [php7:notice] [pid 15023] [client 192.168.1.15:49420] {âreqIdâ:âXECJ-sQl5jUNwyPrhDhsaQAAAAAâ,âlevelâ:3,âtimeâ:â2019-01-17T13:58:25+00:00â,âremoteAddrâ:â192.168.1.15â,âuserâ:"â",âappâ:âPHPâ,âmethodâ:âGETâ,âurlâ:"\/nextcloud\/",âmessageâ:âchmod(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#141â,âuserAgentâ:âMozilla\/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36â,âversionâ:""}
ĐĐžŃ ĐźĐžŃ ŃŃŃанОвка пО ŃагаП:
Step 1: Creating MySQL Database
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
sudo yum install mysql-community-server
Starting MySQL
sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo grep âtemporary passwordâ /var/log/mysqld.log
sudo mysql_secure_installation
Enter
Marin2020()
No
Yes
Yes
Yes
Yes
mysql -u root -p
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER ânextclouduserâ@âlocalhostâ IDENTIFIED BY âAs1234567890-=Qwertyâ;
GRANT ALL PRIVILEGES ON nextcloud.* TO ânextclouduserâ@âlocalhostâ;
FLUSH PRIVILEGES;
EXIT;
Step 2: Installing PHP and Apache
yum repolist all
yum --enablerepo="base" -y install yum-utils
yum-config-manager --enable base centosplus contrib extras updates
sudo yum install epel-release
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi-php72
sudo yum install httpd php php-gd php-json php-mysql php-curl php-mbstring php-intl php-mcrypt php-imagick php-xml php-zip
Step 3: Configuring firewall
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
sudo firewall-cmd --state
firewall-cmd --get-default-zone
firewall-cmd --get-active-zones
sudo firewall-cmd --list-all
Step 4: Downloading Nextcloud
yum install wget
yum install unzip
wget -P /tmp https://download.nextcloud.com/server/releases/nextcloud-15.0.0.zip
sudo unzip /tmp/nextcloud-15.0.0.zip -d /var/www
sudo chown -R apache: /var/www/nextcloud
Ls /var/www/
Ls /var/www/nextcloud
Step 5: Configure Apache
Yum install nano
sudo nano /etc/httpd/conf.d/nextcloud.conf
Alias /nextcloud "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
Options +FollowSymlinks
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
</Directory>
sudo systemctl restart httpd
sudo systemctl status httpd
yum install policycoreutils-python
semanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/data(/.*)?â
semanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/config(/.*)?â
emanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/apps(/.*)?â
semanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/.htaccessâ
semanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/.user.iniâ
semanage fcontext -a -t httpd_sys_rw_content_t â/var/www/html/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?â
restorecon -R â/var/www/html/nextcloud/â
setsebool -P httpd_can_network_connect on