![]() To test PHP scripts with Apache server, we need to create a info.php file in the document root directory. sudo apt install php7.4 libapache2-mod-php7.4 php7.4-mysql php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache php7.4-readlineĮxtra packages for Nextcloud: sudo apt install php-imagick php7.4-common php7.4-mysql php7.4-fpm php7.4-gd php7.4-json php7.4-curl php7.4-zip php7.4-xml php7.4-mbstring php7.4-bz2 php7.4-intl php7.4-bcmath php7.4-gmp imagemagick PHP is a widely used programming language. PHP explains as: Hypertext Pre-Processor. You should get the default page of Apache2 PHP 7.4 Installation sudo apt install -y apache2 apache2-utilsĬheck if it works in a browser by putting yourserverip in a browser. Install Apache:Īpache provides the web server on the server. I use WebMin for the configuration of Samba. Make sure that the users, as you require at home for your users, are created in Ubuntu as well as are also creates in Samba server configuration. As I have not all of my files within NextCloud I require separate storage for music, photo’s, archives and so on. Samba ensures that files are accessible from Windows computers. The other drives are for backup purposes. On sdb I have the data directory for NextCloud. The system drive sda is a SSD drive, it requires no spinning down. Of course you have adjust as required for your system. Then add the following line at then end of the configuration file: HD_IDLE_OPTS="-i 0 -a sdb -i 1200 -a sdc -i 300 -a sdd -i 300 -a sde -i 300 -l /var/log/hd-idle.log" Then add the following just below it: START_HD_IDLE=true Then enable the hd-idle to work by commenting out “HD_IDLE_OPTS="-h"”. Then edit the configuration file: sudo nano /etc/default/hd-idle ![]() First install the package: sudo apt install hd-idle I switched to using hd-idle which works fine for me. Spindown of harddisksĮditing the hdparm file suddenly did not work any more. Disable this option as this will prevent some hard disks from being stopped.Īutomatic update of the system time can be set in WebMin under Hardware / System time. There you will find that this has a value of 5 minutes. Go to → Webmin-> Configuration → Collect Background Statuses → Collect System Status in Background. Prevent WebMin from blocking hard disk spindown. More changes to the configuration of Webmin: Now you can reach WebMin with ip :10000 in your browser. Then restart WebMin: sudo /etc/init.d/webmin restart Edit: sudo nano /etc/webmin/nfĬhange the line in "ssl=1"in “ssl=0” and save the file. Therefore, change the required WebMin SSL to No. Because we only use WebMin behind the router, extra security is not necessary. Normally WebMin expects you to log in securely. You will now be able to install with the commands : sudo apt-get install apt-transport-httpsĪll dependencies should be resolved automatically. Sudo cat jcameron-key.asc | gpg -dearmor >/etc/apt//jcameron-key.gpg On Debian 11 and Ubuntu 22.04 or higher, the commands are cd /root You should also fetch and install my GPG key with which the repository is signed, with the commands: cd /root The file browser is really handy.Įdit the following file: sudo nano /etc/apt/sources.listĪdd the following line: deb sarge contrib Webmin is easy to be able to adjust files and to carry out configurations remotely and easily. It allows you to do a lot of things without the command line. WebMin is a graphical user interface for your server. If it is above 2.0 zero you can switch of the checking of drives by editing: sudo nano /etc/default/grubĪdd the following lines: # Don't test drives for operating systems First find out which version of grub you are using. Because we have a headless server without other operating systems we do not require this feature. It appears that the new version of grub is causing spin-up of the drives to test for other operating systems. Don’t install anything extra besides SSH to make working on the server easier. Installation of this Ubuntu Server can be found on the Internet. Rename the NextCloud directory so that the files can be reloaded afterwards. User files are less troublesome because they are also on the devices. I am so happy I do that every night automatically. It is necessary to do this on the server because different phones are different, VCF 2.1 and 3.0 are common which gives transfer issues sometimes.įurthermore, the backup of the installation disk of the original installation is very useful if you no longer know what changes you made to configuration files. Reinstalling NextCloud is not that bad but first download calendar, tasks and contacts from your existing NextCloud for all users. This will most likely also work to install version 22.ĭuring this writing (10-10-2020) I am reinstalling NextCloud on the Hover. ![]() This may help you with an installation of NextCloud.
0 Comments
Leave a Reply. |