How to verify if apache version that is installed?

You run the command below to get the above information:

# pkg verify apache-22

root@MySolaris:/var/apache2/2.2/htdocs# hostname

MySolaris

root@MySolaris:/var/apache2/2.2/htdocs# pkg verify apache-22

pkg://solaris/web/server/apache-22 ..... --<3> pkg://solaris/web/server/apache-22 ..... \\<3> pkg://solaris/web/server/apache-22 ..... ||<3> pkg://solaris/web/server/apache-22 ..... //<3> pkg://solaris/web/server/apache-22 ..... --<3> Verifying: PACKAGE STATUS pkg://solaris/web/server/apache-22 ERROR file: var/apache2/2.2/htdocs/index.html Owner: '501 (501)' should be 'root (0)' Group: '501 (501)' should be 'bin (2)' Mode: 0664 should be 0644 Size: 317 bytes should be 44 Hash: 815923741167b33980481074f4b0f142a761854a should be 12179caec26a089cabcbb75c4dbe0bdfe60951f7

root@MySolaris:/var/apache2/2.2/htdocs# pwd

/var/apache2/2.2/htdocs

root@MySolaris:/var/apache2/2.2/htdocs# ls -l index.html

-rw-rw-r-- 1 501 501 317 2011-03-19 15:48 index.html

root@MySolaris:/var/apache2/2.2/htdocs# cat index.html

root@MySolaris:/var/apache2/2.2/htdocs# chown root:bin index.html

root@MySolaris:/var/apache2/2.2/htdocs# ls -l index.html

-rw-rw-r-- 1 root bin 317 2011-03-19 15:48 index.html

root@MySolaris:/var/apache2/2.2/htdocs# pkg verify apache-22

pkg://solaris/web/server/apache-22 ..... --<3> pkg://solaris/web/server/apache-22 ..... \\<3> pkg://solaris/web/server/apache-22 ..... ||<3> pkg://solaris/web/server/apache-22 ..... //<3> Verifying: PACKAGE STATUS pkg://solaris/web/server/apache-22 ERROR file: var/apache2/2.2/htdocs/index.html Mode: 0664 should be 0644 Size: 317 bytes should be 44 Hash: 815923741167b33980481074f4b0f142a761854a should be 12179caec26a089cabcbb75c4dbe0bdfe60951f7

root@MySolaris:/var/apache2/2.2/htdocs# chmod 0664 index.html

root@MySolaris:/var/apache2/2.2/htdocs# ls -l index.html

-rw-rw-r-- 1 root bin 317 2011-03-19 15:48 index.html

root@MySolaris:/var/apache2/2.2/htdocs# pkg verify apache-22

pkg://solaris/web/server/apache-22 ..... --<3> pkg://solaris/web/server/apache-22 ..... \\<3> pkg://solaris/web/server/apache-22 ..... ||<3> pkg://solaris/web/server/apache-22 ..... //<3> Verifying: PACKAGE STATUS pkg://solaris/web/server/apache-22 ERROR file: var/apache2/2.2/htdocs/index.html Mode: 0664 should be 0644 Size: 317 bytes should be 44 Hash: 815923741167b33980481074f4b0f142a761854a should be 12179caec26a089cabcbb75c4dbe0bdfe60951f7

root@MySolaris:/var/apache2/2.2/htdocs# chmod 0644 index.html

-rw-r--r-- 1 root bin 317 2011-03-19 15:48 index.html

root@MySolaris:/var/apache2/2.2/htdocs# chmod 0644 index.html

root@MySolaris:/var/apache2/2.2/htdocs# pkg verify apache-22

pkg://solaris/web/server/apache-22 ..... --<3> pkg://solaris/web/server/apache-22 ..... \\<3> pkg://solaris/web/server/apache-22 ..... ||<3> pkg://solaris/web/server/apache-22 ..... //<3> Verifying: PACKAGE STATUS pkg://solaris/web/server/apache-22 ERROR file: var/apache2/2.2/htdocs/index.html Size: 317 bytes should be 44 Hash: 815923741167b33980481074f4b0f142a761854a should be 12179caec26a089cabcbb75c4dbe0bdfe60951f7 The file contents is fine since I have updated the original index.html file.


Previous Home Page Next


Contact us      |      About us      |      Term of use      |       Copyright © 2000-2023 MyWebUniversity.com ™