Category: Ubuntu

  • Problem starting MySQL MariaDB: InnoDB: Set innodb_force_recovery to ignore this error.

    After trying to import a database I had problem starting mysql. # service mysql start Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details. # systemctl status mariadb.service InnoDB: Set innodb_force_recovery to ignore this error. To be able to delete tables in the…

  • Problem with virtual hosts using nginx on on ubuntu

    Problem after following this guide–3 virtual hosts didn’t work. All access was going to default root. I need to create symbolic links of the virtual hosts in sites-available to sites-enabled # sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/ # sudo ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

  • Copy files and folders over SSH

    # scp -r /path/local/dir user@remotehostip:/path/remote/dir

  • Can’t connect to ProFTPD

    I’m running Ubuntu Server 10.04.2 and have installed ProFTPD. First I could connect to the server via FTP but not anymore. First I change ServerType from inetd to standalone in /etc/proftpd/proftpd.conf. When I started ProFTPD I got OK, but when I check the status ProFTPD wasn’t running. # sudo /etc/init.d/proftpd start * Starting ftp server…

  • Mail relay host in sendmail

    I wanted sendmail on my Ubuntu server to relay all outgoing e-mails to one specific server, this is what i did. Install sendmail # sudo aptitude install sendmail -y Confiure sendmail # sudo nano /etc/mail/ Edit the “Smart” relay host. Restart sendmail # sudo /etc/init.d/sendmail restart

  • phpMyAdmin tracking problem

    After installing phpMyAdmin 3.3.2deb1 on a Ubuntu 10.04 server with MySQL 5.1.41 I got this error massage when logging on to phpMyAdmin: The additional features for working with linked tables have been deactivated. To find out why click here. $cfg[‘Servers’][$i][‘tracking’] … not OK [ Documentation ] Tracking: Disabled I sloved this by editing /etc/phpmyadmin/ and…

  • Import database larger then 2mb via phpMyAdmin

    To import databases larger then 2MB you need to edit /etc/php5/<flavour>/php.ini. Edit the existing parameters in  php.ini, if they does not exists add them at the end of the file: post_max_size = 50M upload_max_filesize = 50M Restart the webserver. If you are using Apache: sudo /etc/init.d/apache2 restart

  • NTP sync Ubuntu

    # sudo ntpdate Here can you find NTP-servers.

  • Update/patch Ubuntu server

    Update Ubuntu server: 1. Update aptitudes packetlist. # sudo aptitude update 2. Update installed packages. # sudo aptitude full-upgrade -y

  • Installing Data Protector 6.0 on Ubuntu

    Download the latest HP-UX core and disk agent patches (either Ia64 or PA-RISC, Linux installation is included on both!) from In this examaple the the core patch filename is PHSS_39016.depot and the disk agent patch filename is PHSS_39439.depot. The patches is located in the users home folder on the client. The cell managers FQDN…