affiliate_link
Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

If you are using a windows 2003 server, apache, this error pops out from the ssl.log files



An operation was attempted on something that is not a socket. : Child
4800: Encountered too many errors accepting client connections. Possible causes:
dynamic address renewal, or incompatible VPN or firewall software. Try using the
Win32DisableAcceptEx directive.




Solution:



Switch Plesk Control Panel to IIS.



Run the following from the command prompt:



"%plesk_bin%\reconfigurator.exe" --switch-plesk-web-server --new-provider=iis

The open_basedir function defines the locations or paths from which PHP is allowed to access files using functions like fopen() and gzopen(). If a file is outside of the paths defined by open_basdir, PHP will refuse to open it. You cannot use a symbolic link as a workaround, because the path that the symbolic link resolves to falls under the restrictions of the open_basedir function.

Here's a quick bit of apache config that can be placed in the conf/vhost.conf file of a Plesk site to turn off the open_basedir restrictions:


php_admin_flag engine on
php_admin_value open_basedir none

If you get this error when restarting httpd on plesk linux servers:

"Address already in use: make sock: could not bind to address 0.0.0.0:443 no listening sockets available."

Actually the error says it all.

First, try to look for the processes that is listening to port 80 or 443. You can do this:

1. netstat -lnp grep '0.0.0.0:80'
2. lsof grep *:www
3. lsof -i:443
4. fuser -v 443/tcp
5. netstat -tulpen grep :443

After pointing out which uses the port, send a kill signal:

#kill -9 PID

Replace "PID" with the actual PID.

Hope that helps.