I cant install or uninstall apache
Hello,
Firstly I am beginner at linux. I had some problems at apache server and then I tryed to uninstall with these command; --------------------------------------- apt-get remove --purge apache2 --------------------------------------- Then I try lots of install and unintall commands. Now there is nothing in "/etc/apache2" directory. The command's output is below, When I try to install command, server is not seems installed; ---------------------------------------- root@cacti:/etc/apache2# apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done apache2 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 169 not upgraded. ----------------------------------------- Then Im trying to uninstall it, the output is below; ----------------------------------------- root@cacti:/etc/apache2# apt-get -purge apache2 E: Command line option 'p' [from -purge] is not known. root@cactitest:/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 169 not upgraded. After this operation, 36.9kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 146549 files and directories currently installed.) Removing apache2 ... --------------------------------------------- And I found these command from net, I think its getting Apache componenents; --------------------------------------------- root@cactitest:/etc/apache2# dpkg --get-selections | grep apache apache2-mpm-itk install apache2-utils install apache2.2-bin install apache2.2-common install libapache2-mod-php5filter install --------------------------------------------- Why is this so hard to uninstall or install a progra to Linux? Isnt this should be easy like executing a command or clicking a button like in Windows? Or am I doing somethings wrong? Now there is nothing I can do and I still dont know is apache installed or uninstalled? In both ways server is not running. --------------------------------------------- root@cactitest:/etc/apache2# service apache2 restart .: 49: Can't open /etc/apache2/envvars -------------------------------------------- |
you're clearly not typing in the purge command correctly, and it's telling you that:
Quote:
uninstalling programs is NOT hard. Make sure it's not your fault before wishing things were more like windows. The same windows where you have to go and identify the package you want to install, go to the right website, find the download link, download the right version of the file and then double click on setup.exe, decompress the installation files to an obscure temp directory, find those files again, run the installer program, then check the license agreement then confirm installation location and installation options etc... and if you want a gui, try synaptic, amongst others. |
Thanks for your answer acid_kewpie but I tryed "apt-get purge apache2" and it didnt worked too.Is just this command enough for uninstalling completely programs?
|
OK, so where did "purge" come from? I don't use debian / ubuntu so assumed that was the right command, but it doesn't exist - http://linux.die.net/man/8/apt-get
|
hey, just check out this link:
http://net.tutsplus.com/tutorials/ph...rver-for-free/ dont worry about getting rid of apache, this will overwrite whatever you currently have installed. just make sure to read what you are agreeing to. |
All times are GMT -5. The time now is 04:00 AM. |