I did sudo yum groupinstall -y "Web Server" "PHP Support", on my ec2 instance. Now I want to install apache tomcat. Do I need to uninstall httd that was installed as a part of yum groupinstall -y "Web Server" ? If yes, why ?
Although I never done it myself: no you don't have to uninstall httpd. I've seen them running next to eachother in the past. You do need to change the configuration of course since both can't listen to default port 80. :)
Related
I had apache2 installed on my raspberry pi 4 and was getting some strange behavior so I removed it via apt remove apache2, removed the /etc/apache2 directory and reinstalled by sudo apt-get apache2 -y.
After reinstallation the server would not start, I determine that there was no apache2.conf file in /etc/apache2.
I've tried installing and reinstalling several time to no avail. What am I doing wrong?
try
sudo apt-get purge apache2
If you just want a light-weight http server you might want to try Nginx as a replacement.
sudo apt-get --reinstall install apache2
I wan to updage my currently active apache v2.4.6 to latest ver 2.4.27. (CentOS 7)
I know how to install from stracth but I just want to upgrade the version with my configurations remain stil.
Would it be okay to remove whole httpd content with /etc/httpd, /run/httpd, and /usr/lib64/httpdwith takin configuration backup, then install 2.4.27 from scratch and paste the old config files?
Thank you in advance for any guidance
You can backup everything and add CodeIT rpm repo:
cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el7.repo
yum install -y epel-release
yum upgrade httpd
Please also be sure to merge your SSL configuration and mpm defaults to have new features like HTTP/2 protocol support enabled.
I just followed the instuctions found on :
https://certbot.eff.org/#debianjessie-apache
to install let's encrypt certificate on my linux vps.
but unfortunately, installation did not went as I expected because :
A. I already had an instance of apache2 installed - which conflicted
with apache instance certbot installer installs.
B. I have a dynamic dns I want to have as my domain name and add ssl
for, but let's encrypt system seems to have problem with free dns
providers.
so I finally decided to removed certbot and instead try to install local ssl certificate I sign my self personally. I can't find direct un-installation guide for certbot. can you please help ?
Thank You
Alright, I think I found out how to do it :
first I removed certbot using these commands :
sudo apt-get purge certbotapt
sudo apt-get purge python-certbot-apache -t jessie-backports
sudo apt-get purge apache2
then I manually removed files/folders in following :
/myuser/certbot-auto
/myuser/.local/share/letsencrypt/
/etc/letsencrypt/
/var/lib/letsencrypt/
/var/log/letsencrypt/
then I installed a new fresh instance of apache2 :
sudo apt-get install apache2
sudo service apache2 restart
Now things are back to where I was, and I can work on installing personal/local ssl for my project.
Hope this help you too ;)
If you would like to remove its ppa as well then:
sudo add-apt-repository --remove ppa:certbot/certbot
I recently upgraded to PHP7, now I learned to find out out while connecting to Laravel, with this problem [PDOException] could not find driver.How am I going to configure or install it?
Thank you very much.
Here is a solution:
sudo apt-get install php7.0-mysql
sudo phpenmod pdo_mysql
sudo service apache2 restart
Following steps are working for me
Installing php7.0-mysql
sudo apt-get install php7.0-mysql
You will then need to ensure the module is enabled:
sudo phpenmod pdo_mysql
Then restart Apache to load the new modules:
sudo service apache2 restart
I am trying to install Cobbler on a brand new Ubuntu 15.10 virtual box but it is not working. When I run the apt-get install cobbler cobbler-web it seems to break apache completely to the point I can't get it working again.
I see this in the apache error log:
[wsgi:crit] [pid 8112:tid 140273573488512] mod_wsgi (pid=8112): The mod_python module can not be used on conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
and this in the auth.log:
polkitd(authority=local): Unregistered Authentication Agent for unix-process:8081:54865 (system bus name :1.24, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
I have tried removing the mod_python and wsgi modules but apache still doesn't start up. And I think Cobbler uses them anyways, so I kind of need them.
I have also tried disabling polkitd. I don't find any clues when searching for that weird error message.
I was able to install Cobbler on Ubuntu 14.04 pretty easily and apache works fine.
Here is the basic chain of install commands I used:
apt-get update
apt-get install apache2
apt-get install isc-dhcp-server
apt-get install bind9 bind9utils bind9-doc
apt-get install cobbler cobbler-web debmirror mkisofs
Disable the module by typing sudo a2dismod python
You should then see this:
Module python disabled. To activate the new configuration, you need to
run: service apache2 restart
So type sudo service apache2 restart.
If that doesn't fix it, check the error log for more information by typing
cat /var/log/apache2/error.log.