I asked this question today, since no one could find the answer, i decided to take the advice of Pablo Santa Cruz and install apache again
the first thing that I've done is uninstalling xampp
rm -rf /opt/lampp
then
sudo rm -rf /opt/lampp
xampp is uninstalled now, but when i go to localhost i see
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet
I decided to try and uninstall apache:
sudo apt-get remove apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
The following packages were automatically installed and are no longer required:
libsm-dev mate-corba apache2-utils libice-dev libtasn1-3-bin
x11proto-xext-dev libmatecomponent libtasn1-3-dev libatk1.0-dev
libreoffice-base python-mate libglib2.0-dev libreoffice-calc libxcb-shm0-dev
mate-common x11proto-xinerama-dev libpango1.0-dev libreoffice-gnome
x11proto-render-dev libxi-dev libxrender-dev libreoffice-emailmerge
libcairo2-dev libreoffice-core mate-vfs libgail-dev apache2-mpm-prefork
libpng12-dev libxml-parser-perl mate-mime-data libreoffice-writer
libreoffice-draw libfontconfig1-dev x11proto-composite-dev intltool
libxcursor-dev libreoffice-base-core uno-libs3 apache2.2-common
gnome-wise-icon-theme libreoffice-help-en-us libcairo-script-interpreter2
python-uno x11proto-randr-dev x11proto-damage-dev libreoffice-style-human
libgtk2.0-dev libxext-dev mate-conf-common libxdamage-dev libxerces2-java
zlib1g-dev libfreetype6-dev libart-2.0-dev samba x11proto-fixes-dev
libreoffice-impress nautilus-share libportmidi0 libmatekeyring ure
libxcomposite-dev libreoffice-java-common libxrandr-dev libexpat1-dev
libreoffice-math libmateui shiki-wise-theme mate-keyring mate-conf
libhsqldb-java libpixman-1-dev libxft-dev libX11-dev libreoffice-common
python-corba libmate libxcb-render0-dev php5-cli libmatecomponentui
libxfixes-dev mintdesktop libxinerama-dev libgdk-pixbuf2.0-dev php5-common
libreoffice-style-tango libmatecanvas mint-backgrounds-lisa-extra
libreoffice-gtk
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded
0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded
I tried sudo apt-get remove apache2 and sudo apt-get remove httpd
i got the same result
should i run apt-get autoremove? i don't think so
EDIT: @Alex
when i try to stop apache
sudo /etc/init.d/apache2 stop
I get
Stopping web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
any other command apache will give the same output
@Gregory MOUSSAT please read this
EDIT:
I ran
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
It didn't fix anything!
I just want to get apache and mysql working - I don't care about php and phpmyadmin - at the very least just mysql