‏إظهار الرسائل ذات التسميات Network. إظهار كافة الرسائل
‏إظهار الرسائل ذات التسميات Network. إظهار كافة الرسائل

2016/02/08

XAMPP, Apache Error: Apache shutdown unexpectedly - blocked port

[Apache] Error: Apache shutdown unexpectedly.
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
[Apache] Press the Logs button to view error logs and check
[Apache] the Windows Event Viewer for more clues
[Apache] If you need more help, copy and post this
[Apache] entire log window on the forums


 Problems XAMPP, Apache  solution


Step 1 - From the XAMPP Control Panel, under Apache, click the Config button, and select the Apache (httpd.conf).


Inside the httpd.conf file, somehow I found a line that says:



Listen 80

And change the 80 into any number / port you want. In my scenario I’m using port 8080.



Listen 8080

Still from the httpd.conf file, I found another line that says:



ServerName localhost:80

And change 80 to 8080.

ServerName localhost:8080

Step 2 - From the XAMPP Control Panel, under Apache, click the Config button again, but this time select the Apache (httpd-ssl.conf). Inside the httpd-ssl.conf file, find line that says



Listen 443

And change the 443 into any number / port you want. I’ll using 4433 as the new port number.



Listen 4433

Still from the httpd-ssl.conf file, find another line that says



<VirtualHost _default_:443>

ServerName localhost:443

And change 443 to 4433.



<VirtualHost _default_:4433>

ServerName localhost:4433

Remember to save the httpd.conf and httpd-ssl.conf files after you make some changes. Then restart the Apache service.

2015/04/09

How to do network profiling with dig




dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig.


Although dig is normally used with command-line arguments, it also has a batch mode of operation for reading lookup requests from a file. A brief summary of its command-line arguments and options is printed when the -h option is given. Unlike earlier versions, the BIND 9 implementation of dig allows multiple lookups to be issued from the command line.


Unless it is told to query a specific name server, dig will try each of the servers listed in /etc/resolv.conf.


When no command line arguments or options are given, dig will perform an NS query for “.” (the root).


It is possible to set per-user defaults for dig via ${HOME}/.digrc. This file is read and any options in it are applied before the command line arguments.


The IN and CH class names overlap with the IN and CH top level domains names. Either use the -t and -c options to specify the type and class, use the -q the specify the domain name, or use “IN.” and “CH.” when looking up these top level domains.




Example use



Basic



$ dig google.com

; <<>> DiG 9.7.0-P1 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52035
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 89 IN A 64.233.181.104

;; Query time: 26 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Jul 5 13:00:32 2010
;; MSG SIZE rcvd: 44


Mail



$ dig -t mx google.com

; <<>> DiG 9.7.0-P1 <<>> -t mx google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63606
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN MX

;; ANSWER SECTION:
google.com. 900 IN MX 200 google.com.s9a2.psmtp.com.
google.com. 900 IN MX 100 google.com.s9a1.psmtp.com.
google.com. 900 IN MX 300 google.com.s9b1.psmtp.com.
google.com. 900 IN MX 400 google.com.s9b2.psmtp.com.

;; Query time: 18 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Mon Jul 5 13:00:40 2010
;; MSG SIZE rcvd: 162