PLESK :
Go to httpd.conf
vi /etc/httpd/conf/httpd.conf
ExtendedStatus On
<Location /server-status> SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com </Location>
It will show IP/server-status
PLESK :
Go to httpd.conf
vi /etc/httpd/conf/httpd.conf
ExtendedStatus On
<Location /server-status> SetHandler server-status # Order deny,allow # Deny from all # Allow from .example.com </Location>
It will show IP/server-status
How does ip/~username point to public_html instead of /home/username in server.
Solution : Its done by “UserDir”
httpd.conf might have an entry as below :
=================
root@server [~]# grep UserDir /usr/local/apache/conf/httpd.conf UserDir public_html root@server [~]#
=========================
Thats what is specifying the document root.
By default "UserDir" is enabled.
To disable we can use :
UserDir disabled user4 user5 user6
http://httpd.apache.org/docs/2.0/mod/mod_userdir.html
Take backup of /etc/httpd and php.ini to be on safer side.
cd /usr/local/directadmin/custombuild ./build update ./build apache
If everything works fine dont rebuild php as that can give some errors
./build php n
checking for icu-config... no checking for location of ICU headers and libraries... not found configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works. *** There was an error while trying to configure php. Check the custom/suphp/configure.php6 file
see if httpd.conf has
Remove RLIMITMem and check if that will work.
You can enable mod_proxy using easy apache.
To allow a specif IP address only to access that proxy use the below in httpd.conf
<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
Order deny,allow
Deny from all
Allow from YOUR_IP_ADDRESS<— Added for testing purpose
Allow from YOUR_IP_ADDRESS <— Added for testing purpose
Allow from YOUR_IP_ADDRESS
</Proxy>
ProxyVia On
</IfModule>
While trying to start httpd : in direct admin :
# /etc/init.d/httpd start
Starting httpd: Syntax error on line 30 of /usr/local/directadmin/data/users/clickalist/httpd.conf:
Invalid command ‘php_admin_flag’, perhaps misspelled or defined by a module not included in the server configuration
Solution :
./build all d
Back up any file named /usr/local/directadmin/custombuild/.custombuild.
./build rewrite_confs
Worker MPM uses multiple child processes. It’s multi-threaded within each child and each thread handles a single connection.
Worker is fast and highly scalable and the memory footprint is comparatively low. It’s well suited for multiple processors. On the other hand, worker is less tolerant to faulty modules and faulty threads can affect all the threads in a child process.
[Tue Sep 21 12:23:08 2010] [error] [client ] /usr/bin/php: error while loading shared libraries: libz.so.1: failed to map segment from shared object: Cannot allocate memory[Tue Sep 21 12:23:08 2010] [error] [client ] Premature end of script headers: index.php
============================================
Sotution : Please make sure that you have commented the following entries in httpd.conf
# RLimitMEM
# RLimitCPU
Restart httpd and site will be up.
Solution 2
Check the size of error_log and if its higher than 2GB clear those.
root@server [~]# /etc/init.d/httpd status | grep Restart
Restart Time: Monday, 13-Sep-2010 14:56:30 IST
root@server [~]#
Problem and SOLUTION explained below :
[root@myserver]# /etc/init.d/httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
[root@myserver]# fuser -k -n tcp 80
80/tcp: 19594
[root@myserver]# /etc/init.d/httpd start
Starting httpd: [ OK ]
[root@myserver]#
pstree -apuc | grep easy
ll /proc/22013/fd
tail -f /usr/local/cpanel/logs/easy/apache/build.1269862294
[root@a24uall ] httpd -M | grep evasive
evasive20_module (shared)
Syntax OK
[root@a24uall]
OR
root@a24uall []# cat /usr/local/apache/conf/httpd.conf | grep mod_evas
LoadModule evasive20_module modules/mod_evasive20.so
root@a24uall []#
cd /usr/local/apache/conf/