#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Posts
    2,566
    Rep Power
    171

    How is php working when Apache is not installed?!


    Hi;

    How is php working when Apache is not installed?!




    Code:
    root@behnam:/etc/apache2# apt-get purge apache2
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      apache2*
    0 upgraded, 0 newly installed, 1 to remove and 46 not upgraded.
    After this operation, 29.7 kB disk space will be freed.
    Do you want to continue [Y/n]? y
    (Reading database ... 55011 files and directories currently installed.)
    Removing apache2 ...
    Code:
    root@behnam:/# sudo reboot
    
    Broadcast message from root@behnam
    	(/dev/pts/2) at 7:31 ...
    
    The system is going down for reboot NOW!

    Making sure Apache is removed:
    Code:
    root@behnam:/var/www# apt-get purge apache2
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package 'apache2' is not installed, so not removed
    0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
    root@behnam:/var/www# apt-get remove apache2
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package 'apache2' is not installed, so not removed
    0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.


    I still see apache!
    Code:
    root@behnam:/var/www# ls -la /etc | grep apache*
    drwxr-xr-x  7 root root    4096 Oct  9 23:28 apache2
    And php is still working!
    Code:
    root@behnam:/var/www# cat index.php
    <?php
    
    $value = 4;
    echo $value;
    ?>
    
    The website shows 4
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    Apache is still installed and running from somewhere.
    Code:
    ps aux | grep apache
    Code:
    locate apache2

IMN logo majestic logo threadwatch logo seochat tools logo