Hey all,
I have been working little by little to get a LAMP server up and running. I have Apache 2 working fine, PHP working fine and MySQL working fine. I wanted to use phpmyadmin.
So I ran
Code:
sudo apt-get install phpmyadmin
Did not work. Then I read that there has to be an include in the apache.conf file:
Include /etc/phpmyadmin/apache.conf
so I added that and it still did not work.
So I decided to uninstall and reinstall thinking it might have been the package I got.
Here is what I get:
Code:
sudo apt-get remove phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
phpmyadmin
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 10.3MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 95670 files and directories currently installed.)
Removing phpmyadmin ...
dpkg (subprocess): unable to execute pre-removal script: Exec format error
dpkg: error processing phpmyadmin (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
So I did a lot of looking on the web and found some things to try such as looking at the phpmyadmin.prerm and phpmyadmin.postrm scripts. The phpmyadmin.postrm was blank and still is. The phpmyadmin.prerm script is blank also.
I didn't think this was correct but couldn't find anything about them.
I have tried:
Code:
sudo dpkg --remove --force-remove-reinstreq phpmyadmin
(Reading database ... 95670 files and directories currently installed.)
Removing phpmyadmin ...
dpkg (subprocess): unable to execute pre-removal script: Exec format error
dpkg: error processing phpmyadmin (--remove):
subprocess pre-removal script returned error exit status 2
Errors were encountered while processing:
phpmyadmin
Also tried:
Code:
sudo dpkg-reconfigure phpmyadmin
apache2: Syntax error on line 300 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory
...fail!
invoke-rc.d: initscript apache2, action "reload" failed.
This is line 300 of /etc/apache2/apache2.conf:
Include /etc/apache2/conf.d/
I am really out of ideas. I really just want it to truly go away so I can reinstall it.
Any ideas/suggestions will be greatly appreciated!
Thanks AT
Bookmarks