In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Install lamp
Apt-get install-y apache2 mariadb-server php7.3 php7.3-xml php7.3-curl php-zip php-dom php-mbstring php-gd php-mysql
2.mysql-uroot-p
Enter the password (1 I set)
Execute after logging in to mariadb
Select Host,User,plugin from mysql.user where User='root'
See the encryption method: plugin is unix_socket and needs to be changed to local encryption.
Update mysql.user set plugin='mysql_native_password'; # change encryption method
Update mysql.user set password=PASSWORD ("1") where User='root'; # set the new password (1 set the password for yourself)
Flush privileges; # refresh takes effect
3. Download phpmyadmin (optional)
Download the installation package and decompress it under / var/www/html/phpmyadmin. At this time, the browser opens http://ip/phpmyadmin and enters the user's password.
4. Permission adjustment
Since I installed with root and nextcloud forces the other user rights of the data directory to be 0, I mount the data disk to 770. therefore, I need to add the www-data user to the root group
Usermod-a-G root www-data restart the system
4. Download the nextcloud installation package
Download the installation package and decompress it under / var/www/html/nextcloud, and the browser opens http://ip/nextcloud to fill in the database parameters according to the previous settings, and then log in to the available
After this is done with raspberries, there will still be some problems, such as the upload file size limit, which will keep reporting errors in intl.php.
I solved these problems for a while, but I didn't record them clearly. I roughly recorded the steps to be implemented.
Modify the 2m limit to start with the permission of the owncloud path chown-R www-data:www-data / var/www/html/owncloud/
In addition, the size limit of uploaded files on PHP is modified by php.ini.
Find /-name php.ini
Open php.ini and find it first.
File_uploads = on; switch on whether to allow files to be uploaded through HTTP. Default is ON, that is, on.
Upload_tmp_dir; files are uploaded to the server where temporary files are stored, and if not specified, the system default temporary folder will be used
Upload_max_filesize = 8m; literally, that is, the maximum file size allowed to be uploaded. The default is 2m
Post_max_size = 8m; refers to the maximum value that can be received to PHP through the form POST, including all values in the form. The default is 8m
Generally speaking, after setting the above four parameters, uploading 8m large files, only setting the above four items will certainly work.
Further configure the following parameters
Max_execution_time = 6000.Max time for each PHP page to run (in seconds). Default is 30 seconds.
Max_input_time = 6000.maximum time required for each PHP page to receive data. Default is 60 seconds.
Memory_limit = 8m; maximum memory consumed by each PHP page. Default is 8m
After the above parameters are modified, large files can be uploaded under the normal circumstances allowed by the network.
Max_execution_time = 600,
Max_input_time = 600,
Memory_limit = 32m
File_uploads = on
Upload_tmp_dir = / tmp
Upload_max_filesize = 32m
Post_max_size = 32m
More related content:
Collation of fault notes during nextcloud installation
How to manually install the App plug-in for Nextcloud
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.