If you are a PHP developer or a LAMP server admin you probably have already heard about the Zend Platform. After some test and configure/tunning step, we deployed this solution on a heavy loaded production server running with Apache 2.x, PHP 4.4.x, MySQL Client 5.x.
Common errors while starting Apache server on linux
Bash - GNU Shell, Common CLI, Tips View CommentsThe 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
I started to write this post many weeks ago and finally publish it even if it’s not totally finish. It is just a little feedback about tuning a full LAMP server with some user traffic and services load. Important thing to notice is that all stuff in this post is NOT THE SOLUTION. You will probably have to tune little more for adapt all this to your personal server usage, server load, development & architecture. So, use those tips as a kind of inspiration instead of an “how to”. Don’t forget that when you do such tuning, take care to keep a backup of your previous configuration files.
We will try to tune the following server :
- Current OS : Debian GNU Linux Kernel 2.4.32 ipv4 + GRSEC
- 1Go RAM DDR
- Intel(R) Celeron(R) CPU 2.66GHz
- SWAP 512Mo
- 3Go on / and 226Go on /home
- Running services are Qmail, Bind9, mrtg, Apache 2.2.2, PHP 5.1.4, MySQL 5.0.21















Recent Comments