Four useful Help Sheets (Vim, PHP, Linux…)

Cheat & Help Sheets No Comments »

Here is a quick and dirty list of Help Sheet (also known as Cheat Sheet). Those sheets are sometimes really useful.

  1. Quick references on linux administration. Click here for pdf version.

  2. Vim for (PHP) programmers, a real must to have for all VIM users. Click here for pdf version.

  3. A JQUERY (The Prototype-like library) Cheat Sheet. Click here for pdf version PAGE 1 / PAGE 2.

  4. Another Quick Reference guide about Linux Security. Little old but still really interesting. Click here for pdf version.

Coming soon, a dedicated website to the Cheat Sheet. (aka help-sheet.com or cheashee.com :-)

Enjoy !

Common errors while starting Apache server on linux

Common CLI, Bash - GNU Shell, Tips No Comments »

The correct way to start the apache server is to use the apachectl command.

apachectl stop

apachectl start

apachectl graceful

You can also check your configuration files.

apachectl configtest

A common error is probably this one :

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443

no listening sockets available, shutting down

This is caused by one or more processes running on the 443 (secure socket) port. You can get all the process ID’s that are running on this port with the command fuser or a more classical “ps auxww” with a less readable format.

nicolas@grimm:~$ fuser 443/tcp

443/tcp: 7977 6815 9819 35217

Now you just have to do a kill on those process.

nicolas@grimm:~$ kill -9 7977 6815 9819 35217

Or in a more sys admin useful way :

nicolas@grimm:~$ kill -9 $(fuse 443/tcp 2>/dev/null)

Other typical error would be those following :

(28)No space left on device: Couldn’t create accept lock

or

(28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

Read the rest of this entry »

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login