33

Below is a description of what I did. I hope this information can help someone else: I installed PHP 7.1 along side PHP 7.2. I also installed most of the needed extensions for PHP 7.1. I then did a2dismod php7.2 and a2enmod php7.1 so that I could switch over to PHP 7.1 while keeping 7.2 still installed on the server. Most of my sites work after making the ...


32

This should get you up and running with Python 3.7 on Ubuntu 16.04 # Install requirements sudo apt-get install -y build-essential \ checkinstall \ libreadline-gplv2-dev \ libncursesw5-dev \ libssl-dev \ libsqlite3-dev \ tk-dev \ libgdbm-dev \ libc6-dev \ libbz2-dev \ zlib1g-dev \ openssl \ libffi-dev \ python3-dev \ python3-setuptools \ wget # Prepare to ...


18

for display enabled php version in terminal by php -v. we need to set update cli version of php. use below command to update php cli version // change terminal (cli) version (7.2 to 7.1) sudo update-alternatives --set php /usr/bin/php7.1


16

You need to change the varnish start parameters in the systemd service definition as well. You could edit the line starting with ExecStart in the service defintion file: sudo vi /lib/systemd/system/varnish.service Modifying this file however, has the disadvantage that it will not be updated in future updates of the package. Alternatively, as suggested in ...


15

stream needs to be on the same level as http block so like http { foo } stream { bar } My guess is your include for /etc/nginx/conf.d/*.conf is located in the http {} block and not outside of it. Checkout the /etc/nginx/nginx.conf for the include and maybe you have to make a new one for the stream section


14

It could be because you are trying to review the journal since the last boot, which seems likely to be the case inside a docker image. On Ubuntu 16.04, the journal storage defaults to being in-memory. You can change the default to be persistent by opening /etc/systemd/journald.conf and changing the Storage= line from auto to persistent. You may need to ...


14

Is is a known bug. Bug#1531622 KLogPermitNonKernelFacility - it's legacy parameter which is no longer used. To remove the error, locate and comment out the following line $KLogPermitNonKernelFacility on in the file rsyslog.conf Bug#830046 If the device /dev/xconsole is not present on you system, you can locate it like this: daemon.*;mail.*;\ news.err;\ *....


14

I guess you should use "systemctl daemon-reload" instead of "systemd daemon-reload".


13

Adding to @Juanjo Aguilella Marés answer, and once you have copied/linked your script to /etc/systemd/system, you may want to automatically start it when the server starts: sudo systemctl daemon-reload sudo systemctl enable my_service.service sudo systemctl start my_service.service Source Digital Ocean It is also a good idea not to run it as root. Just ...


13

The ILO port on the HP server by default asks for an IP via DHCP. So you just need to plug it into a network that has a DHCP server running. It will announce itself with a host name like ILOCZ12345678 which should make it easier to find in your router's DHCP lease table, or in e.g. journalctl/syslog if you run a DHCP server (e.g. isc-dhcp-server) on a system ...


13

You are likely comparing systemd docs you've read online for a different version instead using the docs on your system that match your version. Check man systemd.unit on your own system. You may find that on your version, the directive is named StartLimitInterval= and should be used [Service], not [Unit]. I found the answer by searching for systemd ...


12

@pegues: Your above mentioned method worked well for apache to switch the different version. By running following commands will change the php from terminal as well. Actually you just need to change the symlink to the desired PHP version. sudo rm /usr/bin/php sudo ln -s /usr/bin/php7.1 /usr/bin/php


11

I solved the problem: a) Create a file crawler.service in /etc/systemd/system with this code: [Unit] Description=Crawler cache Service After=network.target [Service] User=root Restart=always Type=forking ExecStart=/var/www/execute.sh [Install] WantedBy=multi-user.target my bash file contains a diferent executations on parallel to the same php file with ...


11

rsyslog should re-create the file (with correct permissions)after restarting: # mv /var/log/syslog /tmp/ # /etc/init.d/rsyslog restart [ ok ] Restarting rsyslog (via systemctl): rsyslog.service. # dir /var/log/syslog -rw-r----- 1 root adm 327 Oct 27 13:28 /var/log/syslog Perhaps try forcing a log entry to make sure it's running: # /usr/bin/logger -p0 ...


11

Info there: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/Documentation/networking/ip-sysctl.txt?h=v4.9#n1090 Note the last sentence that would explain your attempts: The max value from conf/{all,interface}/rp_filter is used when doing source validation on the {interface}. So this should work: for i in /proc/sys/net/ipv4/...


11

ezra-s suggests a good approach but it doesn't include some details that might be confusing for folks who rely on package managers. NOTE: I'm not sure if these steps are exact. If anyone encounters trouble or sees issues then let me know and I'll update this post. Firstly, as of this writing, Ubuntu's apache2 packages insist on prefork if you want to ...


11

I have a similar (albeit smaller) setup, with 12x 2TB disks in a RAID6 array, used for the very same purpose (rsnapshot backup server). First, it is perfectly normal for du -hs to take so much time on such a large, and used, filesystem. Moreover du accounts for hardlinks, which cause considerable and bursty CPU load in addition to the obvious IO load. Your ...


10

On older systemd versions, you'll have to use journalctl --user --user-unit=SERVICENAME (on newer versions journalctl --user -u SERVICENAME will work fine). However, this only works if the Storage directive of the [Journal] section of /etc/systemd/journald.conf is set to persistent (instead of auto or volatile). Reboot after editing the configuration file ...


10

As @AlexyTen pointed out, the root cause was that, although I had OpenSSL 1.0.2g installed, NGINX needed to be built with OpenSSL and it was built with 1.0.1f which does not support ALPN. NGINX needs to be rebuilt with OpenSSL 1.0.2 or above and re-installed. I found a few tutorials online but because I am using a Digital Ocean server, I used this help ...


10

In order to remove it type: sudo apt-get remove python-pip python-dev If you're not sure which switch to use, you can add the --help switch to almost if not every Linux command to get details about the command. Example: apt-get --help


8

Same problem, found fix at https://omgdebugging.com/2016/09/04/fixing-hung-up-mysql-installation-on-ubuntu-16-04-lts/. I ran (as root) (sleep 200; killall mysqld)& then immediately apt-get install -y mysql-server mysql-client in my provisioning script.


8

Try to us su - otheruser command which starts the shell as a login shell with an environment similar to a real login: it clears all the environment variables except TERM it initializes the environment variables HOME, SHELL, USER, LOGNAME, and PATH it changes to the target user's home directory it sets argv[0] of the shell to '-' in order to make the shell a ...


8

Ubuntu will suggest a restart after the update if it can't restart the affected components in a meaningful way. In a nutshell: Things like editors or command line tools don't need any kind of restart, they just get replaced. Services like a web server might need to be restarted by itself. Other things like the kernel or the core libc that affect ...


8

The basic idea is to get Ubuntu installed on a small partition on the harddrive, partition the hard-drive to use the remainder of the space for ZFS, and then copy the installation over. I'm mainly using this guide on instructions how to do that. Lazy, and experience with Ansible? I wrote a little stack of scripts to automate these steps. They are available ...


7

The complete script below can be dropped into a file that we will call "install.sh" and executed by doing the following: touch install.sh # Create empty file chmod 700 install.sh # Make executable nano install.sh # Copy contents into script here ./install.sh # Run it Regarding the script below: Remember to set MYSQL_ROOT_PASSWORD by ...


7

From the official documantation here: This sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1.


7

If you do have just one Synology box shared between your Hyper-V machines, it can still be considered as a SPoF. It dies, you lose all the LUNs sitting there. For true HA you would need a second NAS box and some replication mechanism. Well, one thing that comes to mind is HA cluster with two Synology NAS devices. But AFAIK it doesnt rate well in the world of ...


7

I managed to get the desired effect by playing around with the client GUI (Ubuntu NetworkManager). I had to make sure the checkbox under IPv4 Settings -> Routes for "Use this connection only for resources on its network" was checked: I'm not entirely sure what I would need to do in the .ovpn file in order to replicate this. My routing table now looks ...


7

Is there an easy way to gain a Trusted TLS connection instead of untrusted, do I need to buy something or this free certificate should work? This is not about your certificate, so you don't need to buy anything. It's about: How does your Postfix verify the cert of Gmail? Try to add: smtp_tls_CApath = /etc/ssl/certs smtpd_tls_CApath = /etc/ssl/certs to /...


7

The issue was not that php7.0-fpm wasn't running. It was that ubuntu had installed php7.1-fpm and my nginx config still was pointing to php7.0-fpm.sock I changed the nginx.conf to php7.1-fpm.sock and restart then it worked.


Only top voted, non community-wiki answers of a minimum length are eligible