Accidentally installed Apache Tomcat on live server, how to undo? - apache

I installed Tomcat on the live server by accident using apt-get and broke it. Is there a easy way to undo the installation and go back to the way it was before? I have a virtual image from awhile ago but am wondering if there is a way to just undo it?
EDIT: The server was just running apache without tomcat before.

Related

Moving apache environment from HP-UX to RedHat w/ruby

I have been tasked with moving someone else's site and work from HP-UX to RedHat since our HP-UX system is going away. I have all the components on the RedHat server in place (apache, MySQL, Ruby, passenger) that were on the HP-UX system. I have apache UP on the Redhat system. I have exported the MySQL DB from HP-UX to the RedHat. I have copied all the directories that hold the app from one server to another.
My issue is trying to NOT get the Welcome to Apache screen on my redhat server but my app. I have the site listed in the site-enabled. I have the Include on the httpd.conf file to include all the sites. I have even tried Include /etc/httpd/sites-enabled/* as well as Include /etc/httpd/sites-enabled/. No difference.
I am not sure where else to go to look from old, old HP-UX Apache to the new, just installed RedHat system.
HP-UX 11.31 running Apache 2.2.9
RedHat 7.1 running Apache 2.4.6
What else do you need to know? Where else do I need to look?
Thanks!
Vince
Sorry can't post comment... have you tried to add
Include /etc/httpd/sites-enabled/*.conf
in the httpd.conf?
note the .conf at the end
Apparently there was a lot more required under the hood. One can not just move an older ruby/rails app to a new version. So instead of fighting this battle due to a versioning issue I am just going to close it out for now.
Thanks for all help.

MAMP error: couldn't be started

I've installed MAMP (windows) and I can't start it. When I first opened it, i got the usual error of port 80 already used. But after i changed it to another port, 8888, i got a diferent error:
Could not wait for starting of Apache child. Apache parent process id is: 6208
I'm always getting this error, even though i've reinstalled MAMP and tried diferent ports as well, like 2222, and I keep getting the error. Besides, the process id in the error is always diferent every time i try to start MAMP.
Any suggestions?
First of all, "MAMP for Windows" IS for Windows! I do prefer it to a WAMP due to simplicity.
After getting a "Could not wait for starting of Apache child. Apache parent process id is"
I have disabled a Windows firewall.
Then, I have uninstalled the .NET, C++, and then the MAMP.
Then, I have installed the MAMP again, with all the .Net and C++ files that come with it.
Then, enabled the firewall back.
It now works.
First of all MAMP is not for windows it stands for Mac Apache Mysql Php so you need to install WAMP(Windows Apache Mysql Php) than if you have installed Wamp, change the port to 80 again. the error(port 80 already in use) comes from one of the following problems:
Skype: Make sure that you have stopped skype or unistall it.
SQL Server Reporting System: if you have installed sql server so please stop the process of SQL server reporting system.
After this tips restart your server and the problem is solved. If still the problem is not solved comment back.

Apache Server can't turn off (EnterpriseDB Installation with Stack Builder)

I know it seems to be an odd question.
I have downloaded and installed PostgreSQL 9.3 from its main website, then I used Application Stack Builder to install ODBC, JDBC, Apache/PHP v2.2.22, phpPgAdmin v5.1.
Now the problem for me is I am used to use programs like MAMP (where you can exit the program and kill the server at the same time), or in an IDE (like MyEclipse's included Tomcat or Jetty), or in a framework like Play's built-in JBoss Netty server. Those servers, since they are connected to an IDE, or program, or framework, they can be easily turned off; and I am used to turn off a server when I am not using it.
I find out I can't turn off this apache server installed by Application Stack Builder. I tried terminal commands. It does not work. Whenever I type in localhost:8080, the welcome page will just pop out.
Do I need to turn it off? How do I do so? Also, can I turn of PostgreSQL database server as well? (Like in MAMP, you always have the option to turn Apache and MySQL server off)
Added: I'm using Mac OS X.
To restart EnterpriseDB Apache, I did
sudo /Library/PostgreSQL/EnterpriseDB-ApachePHP/apache/bin/apachectl graceful
Explanation:
On my machine this exact problem was because the apachectl was still default Mac OS X. This can be verified by doing
which apachectl
To which I got the response:
/usr/sbin/apachectl
This is the default apache in Mac OS X, not the Enterprise DB one. I did not want to mess with system paths so I left this one alone. You can also create aliases to if you bounce apache often.
This is what I did?
I just unsinstalled EnterpriseDB-ApachePHP and any other PostgreSQL you might have on your Mac.
Reboot your Mac and try it again.
Once you have setup Jenkins and everything is running great, you can install EnterpriseDB again if you need. Patrick K.02/8/2017

How install Wordpress in a EC2 machine?

I have an EC2 instance running with Glassfish Server Open Source Edition.
And now I need to setup the a website in wordpress.
How can I do that ?
I'm looking for 5 minutes installation tutorial but I'm stuck in the part where it's says about the webserver.
I have to install the Apache in Linux then enable the FTP access ? (to upload the wordpress files ? )
For now I'm stuck in this part guys, any tip is very welcome.
Ok. This is going to be a bit of a high level overview of what you need to do. Its a long process which you need to look into.
Glassfish server is (afaik) for Java applications. Wordpress is a PHP/mysql based system.
Apache is a free and open source web server which you can use, which integrates with php and mysql nicely. What you need is called a LAMP setup (LAMP stands for "linux, apache, mysql and php). You haven't specified what your EC2 is running (what linux distro) but lets say its Ubuntu. A quick search for "installing lamp ubuntu" on google turns up many different tutorials and walkthroughs for installing a lamp setup on your machine.
You'll need SSH access (which you'll have with EC2) then if you run through your tutorial of choice you'll have a working web server, you'll specify a public_html directory (usually by default /var/www).
Now to install Wordpress. What you could do is install an FTP server. This is going to be relatively complicated though, however it will be the easiest way to install Wordpress. Install FTP and upload the wordpress files to the public html directory, then you will be able to run through the 5 minute install process using the mysql database credentials you set up in the LAMP tutorial.
An easier way to do what you need to do is to install subversion on your EC2 instance - e.g. sudo apt-get install subversion on ubuntu. That way you can svn export the wordpress repository to your public html folder (http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion).
However, without an FTP server running on your EC2 instance you won't be able to FTP in to modify files or anything. You'll have to do everything over SSH (or SFTP) which may or may not be manageable for you.
In all honesty, and with the utmost respect, if you don't know about apache and installing a LAMP server and such then you're probably a bit out of your depth with Amazon's EC2 server. You'd be better off with a dedicated server from a hosting company who will have installed everything you need.

Cannot re-install apache 2.2 services on XP through xampp

I'm trying to experiment with xampp. After having some space issues, I wanted to move my xampp install onto another drive (d:). However I have the apache 2.2 services in XP services which are still pointing to my original c: install. I only see how to start and stop. I'm hoping just removing the service will fix my issues.
So the question is two-part 1) how do i remove the service 2) based on this info can i simply reinstall afterwards to get the services running?
thanks
In a command prompt execute:
sc delete service
Where service be Apache and mysql.
Then go into your xampp control panel and check the little svc boxes. That will make them services again.
Be sure to run the "setup_xampp.bat" script in the root of your xampp server! You must do this each time your servers change directory (this feature is useful if you put your servers on a USB drive).
Good luck :)