Accidentally Deleted my IPS.conf file

tgo316

Verified User
Joined
May 4, 2005
Messages
61
Hello,
My directadmin wasn't working due to the usr partition being full. I couldn't seem to login to it at all.

So i tried researching somewhat and committed blunder after blunder. I accidentally deleted my ips.conf file and god knows what else.

Now the server's hung up. Directadmin doesnt log me in. and IPS.conf
please help. Anybody has a template and some instructions to follow.

Alsom since my usr partition is full, i cant login to directadmin. And don't seem to know what log files to delete, since i couldnt find any log files in the usr directory to free space for the usr partition

Best Regards
Amit
 
Last edited:
Code:
echo "action=rewrite&value=ips" >> /usr/local/directadmin/data/task.queue
 
Stopping httpd: [FAILED]
Starting httpd: [Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.87:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.87:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.86:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.86:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.85:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.85:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.84:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.84:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.83:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.83:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.82:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.82:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.81:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.81:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.47:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.47:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.46:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.46:443 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.43:80 has no VirtualHosts
[Sun Jun 3 14:09:35 2007] [warn] NameVirtualHost **.**.**.43:443 has no VirtualHosts
[FAILED]


I got the directadmin part and yes the ips file got created. The usr partition problem is solved. But what about these errors? the httpd fails and hence the websites won't open
 
[Sun Jun 3 11:25:05 2007] [error] [client 74.6.17.44] File does not exist: /home/yashraj/domains/raindesignco.com/public_html/404.shtml
[Sun Jun 3 11:25:06 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vin-baker-handbags/47474.html
[Sun Jun 3 11:25:06 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vin-baker-handbags/404.shtml
[Sun Jun 3 11:25:06 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vigotti/43564.html
[Sun Jun 3 11:25:06 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vigotti/404.shtml
[Sun Jun 3 11:25:10 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vin-baker-handbags/43849.html
[Sun Jun 3 11:25:10 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vin-baker-handbags/404.shtml
[Sun Jun 3 11:25:14 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vigotti/index1.html
[Sun Jun 3 11:25:14 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vigotti/404.shtml
[Sun Jun 3 11:25:17 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vin-baker-handbags/47503.html
[Sun Jun 3 11:25:17 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vin-baker-handbags/404.shtml
[Sun Jun 3 11:25:17 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vigotti/43591.html
[Sun Jun 3 11:25:17 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vigotti/404.shtml
[Sun Jun 3 11:25:17 2007] [error] [client 66.249.70.152] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/treasure/capezio/robots.txt
[Sun Jun 3 11:25:17 2007] [error] [client 66.249.70.152] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/treasure/capezio/404.shtml
[Sun Jun 3 11:25:20 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vin-baker-handbags/43853.html
[Sun Jun 3 11:25:20 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/wonder/vin-baker-handbags/404.shtml
[Sun Jun 3 11:25:21 2007] [error] [client 38.99.44.104] File does not exist: /home/tgo316/domains/sharedip/blink/9489.html
[Sun Jun 3 11:25:21 2007] [error] [client 38.99.44.104] File does not exist: /home/tgo316/domains/sharedip/404.shtml
[Sun Jun 3 11:25:24 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vigotti/46862.html
[Sun Jun 3 11:25:24 2007] [error] [client 195.113.214.205] File does not exist: /home/outlook/domains/w3affiliates.com/public_html/subs/outlook/vigotti/404.shtml
[Sun Jun 3 11:25:26 2007] [notice] caught SIGTERM, shutting down
[Sun Jun 3 11:53:48 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 11:53:48 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 11:54:03 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 11:54:03 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 12:43:48 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 12:43:48 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 12:45:56 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 12:45:56 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:00:44 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:00:44 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:03:10 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:03:10 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:04:02 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:04:02 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:09:06 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:09:06 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:09:35 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:09:35 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:27:31 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:27:31 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:28:06 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:28:06 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:36:48 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:36:48 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:38:06 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:38:06 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long
[Sun Jun 3 14:58:43 2007] [error] mod_ssl: Init: Unable to read server certificate from file /etc/httpd/conf/ssl.crt/server.crt (OpenSSL library error follows)
[Sun Jun 3 14:58:43 2007] [error] OpenSSL: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long


The earlier errors are solved, now the errors in this log file are only related to server.crt and server.key and I guess i know why. Those files were deleted accidentally as well and I just simply created blank files, in a hurry to finish of my first goal "to get the server functioning"

So would the server certificates be all? or anything else as well?

Can anyone paste their "Free SnakeOil" original server keys that come along with every installation.

Best Regards
Amit
 
Code:
cd /usr/local/directadmin/customapache/apache_1.3.37
make certificate TYPE=dummy;
mkdir -p /etc/httpd/conf/ssl.crt
mkdir -p /etc/httpd/conf/ssl.key
cp -f ./conf/ssl.crt/server.crt /etc/httpd/conf/ssl.crt/server.crt
cp -f ./conf/ssl.key/server.key /etc/httpd/conf/ssl.key/server.key
 
make certificate TYPE=dummy;
no rule to make target 'certificate'. stop

cp -f ./conf/ssl.crt/server.crt /etc/httpd/conf/ssl.crt/server.crt
cp: missing destination file
Try cp--help for more information
 
Then just do:
Code:
cd /usr/local/directadmin/customapache
./build apache_mod_ssl
 
Nopes i got this error now

./build apache_mod_ssl
Backing up certificate and key, and turning off httpd for DirectAdmins's check.
Found /usr/local/directadmin/customapache/customapache/customapache/apache_1.3.37.tar.gz
Extracting /usr/local/directadmin/customapache/customapache/customapache/apache_1.3.37.tar.gz...
Done. Applying patches...
patching file ./mod_frontpage.c
patching file ./src/include/httpd.h
Hunk #1 succeeded at 759 (offset -47 lines).
patching file ./src/main/http_request.c
Hunk #1 succeeded at 146 (offset -42 lines).
Hunk #2 succeeded at 584 (offset 6 lines).
Hunk #3 succeeded at 547 (offset -42 lines).
patching file ./src/main/util.c
Hunk #1 succeeded at 666 (offset -42 lines).
patching file ./src/main/util_script.c
Hunk #1 succeeded at 1132 (offset -63 lines).
Increasing hard limit to 32768...
Setting up mod_ssl...
Found /usr/local/directadmin/customapache/customapache/customapache/mod_ssl-2.8.28-1.3.37.tar.gz
Extracting /usr/local/directadmin/customapache/customapache/customapache/mod_ssl-2.8.28-1.3.37.tar.gz...
Configuring mod_ssl-2.8.28-1.3.37...
Configuring mod_ssl/2.8.28 for Apache/1.3.37
+ Apache location: ../apache_1.3.37 (Version 1.3.37)
+ OpenSSL location: /usr
+ Auxiliary patch tool: ./etc/patch/patch (local)
./configure:Error: Building of 'patch' tool failed:
-------------------------------------------------
/usr/include/unistd.h:890: parse error before "__delta"
/usr/include/unistd.h:925: parse error before "__off_t"
In file included from /usr/include/dirent.h:62,
from backupfile.c:38:
/usr/include/bits/dirent.h:26: parse error before "__ino_t"
/usr/include/bits/dirent.h:35: parse error before '}' token
In file included from backupfile.c:38:
/usr/include/dirent.h:300: parse error before "getdirentries"
/usr/include/dirent.h:302: parse error before "__off_t"
make: *** [backupfile.o] Error 1
-------------------------------------------------
Hint: Either try to build 'patch' under etc/patch/
Hint: manually and re-run this 'configure' script
Hint: or provide us the path to your vendor 'patch'
Hint: program via the --with-patch=FILE option (but
Hint: expect perhaps failures when applying patches!)

*** There was an error while trying to configure apache+mod_ssl. Check the configure.apache_ssl file
 
okay i got something to work but

cd /usr/local/directadmin/customapache/apache_1.3.37
make certificate TYPE=dummy;
mkdir -p /etc/httpd/conf/ssl.crt
mkdir -p /etc/httpd/conf/ssl.key
cp -f ./conf/ssl.crt/server.crt /etc/httpd/conf/ssl.crt/server.crt
cp -f ./conf/ssl.key/server.key /etc/httpd/conf/ssl.key/server.key

But now whenever i try restarting httpd. it still fails and there's no error log created? what should i do now?
 
Last edited:
Back
Top