Theodoros Emmanouilidis

Notes & Thoughts

Remove ping Reply From Ubuntu Server

October12

A simple one liner to remove ping reply from Ubuntu server.

Open terminal and just issue the following command:

1
echo  1  > /proc/sys/net/ipv4/icmp_echo_ignore_all

That’s it!

Fix admin panel 404 Error When Upgrading To Plesk 12

October12

After upgrading from Plesk 11 to 12, its possible to get a 404 page not found error the first time you try to visit the admin panel of Plesk.

A server reconfiguration will give you this warning:

1
nginx: [warn] conflicting server name "" on 0.0.0.0:8443, ignored

And the problem will remain.

A quick fix is to visit directly the address that apache listens and enter to the CP panel without SSL.

But to permanently fix this error you can do the following:

1
2
3
rm /etc/sw-cp-server/conf.d/agent.conf
service sw-cp-server stop
service sw-cp-server start

Error fixed!

Home Directory Consumes All Disk Space In Ubuntu

February27

Recently i faced a rather awkward situation. All available disk space of my Ubuntu workstation was gone. I was sure that i did not have that much files stored, so i began investigating.

The built in disk usage analyzer failed to report what was going on. It showed that my home directory occupied almost all disk space but the sum of the individual files reported was far less than the space my home directory used.

So, enough with the gui stuf. Terminal to the rescue!

Open a terminal and type

1
sudo du -a --max-depth=1 ~ | sort -n

inside the user’ s home folder or the folder that takes up most of disk space. Use sudo to read all available files.

The last file in the list the command outputs is the one that consumes the missing space. If it is not reported in disk usage analyzer, it is a hidden file that is very big.

In my case was

1
.xsession-errors

so, in order to reclaim your disk, type

1
2
sudo rm .xsession-errors
sudo rm .xsession-errors.old

and reboot.

So, if home directory consumes all disk space in Ubuntu, or you face a similar situation, the above method will surely help you out.

Case closed!

MySQL ERROR 1148

February15

You get this error

1
ERROR 1148: The used command is not allowed with this MySQL version.

in your MySQL version while trying to issue a

1
LOAD DATA LOCAL INFILE

command?

For security reasons this command is no longer available by default.

In order to use it, just start a MySQL client issuing this command:

1
mysql --local-infile=1 -u root(or some user) -p

Now the command is available for the session.

« Older Entries