Coldfusion10 + Apache web server - apache

I am running an install of Coldfusion10 on my local Windows7 machine. I now want to configure it to serve the site on apache web server (primarily I want to use the apache mod_rewrite functionality to rewrite urls).
However, once I have configured Coldfusion to use Apache (via the web server configuration tool) my apache service is stopped and I cannot restart it.
On restarting I get this error:
Syntax error on line 2 of C:/apache/apache2/conf/mod_jk.conf:
cannot load C:/coldfusion10/config/wsconfig/1/mod_jk.so into server: The specified procedure could not be found.
I have tried re-downloading the mod_jk.so file that should work with my version of apache, and whilst that stops the above error being shown, me apache server still doesn start.
Anyone experienced this or have any suggestions?
Cheers

Related

Apache Error While Import .war file. "Error: FAIL - Application at context path [/folder] could not be started"

After deploying the war file from apache server it shows the Running status fail. Then I deploying the .war file its shows error like FAIL - Application at context path [/folder] could not be started. How can I solve this issue and how can I run my war file in Apache server. Kindly guide me to solve this issue.
You need a java server to run war files. A common way to integrate this with Apache is to run your war file in a java server such as tomcat or wildfly, then with apache, reverse proxy to your java server using a virtual host. This way apache works as your gateway interface, then the java server actually handles your logic for your specific application.
Unless you are using Apache Tomcat? If so, please provide more context. What server are using and what are the logs?

Why my webpage title shows "Apache" when webserver was changed to nginx in AWS Elastic BeanStalk

I have two issues:
When I first started Elastic BeanStalk it had Apache webserver for Java8 Tomcat8 combination.
I was able to access my webapp using the link shown
a) https://i.stack.imgur.com/PmEka.png
After working on Apache, I went to configurations and changed the server to
nginx as I would like to try nginx.
I re-deployed and restarted app server after changing my webserver to nginx in my configuration, and
Issue 1: not able to access homepage by clicking link (as shown in a) )
Issue 2: The webpage title still shows as "Apache..." Why is that?
https://i.stack.imgur.com/l17WJ.png
But when I checked chrome console, I see nginx there.
Tomcat is an Apache Software Foundation project. Your screenshot is of an "Apache Tomcat" error page. It is not telling you that the Elastic Beanstalk reverse-proxy is Apache Web Server, it is simply telling you that the application server is Apache Tomcat.

Setting up tomcat6 using mod_jk for Apache, page not found using https

I have been trying to setup an Apache web server along with a Tomcat6 web server, using SSL/HTTPS. On my Apache web server the SSL is working correctly, and I can access the web pages it serves up using SSL/HTTPS, but I am having a problem accessing the web apps on the Tomcat server using SSL/HTTPS. The new setup is on a Centos 6 machine, and I have a similar setup on a Fedora 13 machine.
I have compared all the files that I can think of between the two machines, but can not get to the web apps using HTTPS. When I try I get a "Not Found" error. I can access the web apps if I use just HTTP.
Can anyone point me to where my problem might be?
Thank you

Installing OTRS on DreamHost

I'm using a Debian VPS on DreamHost and wanted to install a feature-rich customer issue-tracking system (not for software development like Bugzilla). OTRS made my shortlist and I followed the Installation Instructions through the "Web Server Configuration" step (/etc/init.d/apache2 restart), but the restart step reported failure. Nevertheless pgrep apache showed it was running. In fact, it turned out that although www.mysite/otrs/installer.pl was running, my regular website showed a page claiming it had no content (but when I looked in the website's folder, its content was fine, just not being served).
DreamHost Support was very helpful, but explained that they don't use the standard Debian Apache server for hosting websites and instead use their own. Specifically, the Debian server is in /etc/apache2, but the DreamHost server is in /dh/apache2. DreamHost Support determined that the OTRS installation instructions were configuring the usual Debian Apache location which somehow prioritized that server instead of the DreamHost server. They tried moving the otrs.conf file into /dh/apache2, but though the regular website was working again, the OTRS page wasn't.
Has anybody had success installing OTRS on a DreamHost VPS?
I've consulted one of our admins on this, and these are our suggestions:
You will either need to:
Adapt DreamHost's Apache build to incorporate the OTRS modifications
Get Debian Apache up and running
Both options will require an admin user and some knowledge of Linux command line and Apache management tools. You will also need to set your VPS to UNMANAGED, which means that any changes in the DH Web Panel to any of your domains will have no effect whatsoever. Just make sure the DNS records for any domains are pointing to your server. You will also need to be able to manage your own Apache configurations.
NOTE: This will also essentially mean that DreamHost support cannot and will not troubleshoot your domains. Unmanaged means unsupported in any way!
There are a few core differences between DreamHost's apache2 configuration and the default Debian build. The first issue I observe is that DreamHost's configuration does not allow for extra configuration files to be loaded in the manner that the OTRS documentation suggests. This means if choosing option 1, you will need to manually insert the OTRS directives into DreamHost's configuration files, which may prove difficult.
I would recommend moving or otherwise disabling the /dh folder entirely after setting your VPS to unmanaged. This will not allow DH-default Apache to start when the VPS starts. You may also need to remove the DH Apache startup script in /etc/rc3.d/S02httpd2 and the actual script at /etc/init.d/httpd2.
Once you have your own version of Apache running successfully, you might consider copying the VirtualHosts that were previously at /dh/apache2/apache2-ps/etc/httpd.conf into your own domain configuration files in your conf.d directory, or you can shuffle your website files around and configure your Apache to your desire.
Once you've got your own flavor of Apache running, you should be able to implement the OTRS instructions per their wiki. :)

How to Detect cause of 503 Service Temporarily Unavailable error and handle it?

i am getting the error 503 Service Temporarily Unavailable many times in my application
and i want to detect why this error occurs, how ? if there's a log file or something like that, since i am not familiar with apache.
second thing is that, is it possible to handle this error, that when it occurs apache is restarted ?
There is of course some apache log files. Search in your apache configuration files for 'Log' keyword, you'll certainly find plenty of them. Depending on your OS and installation places may vary (in a Typical Linux server it would be /var/log/apache2/[access|error].log).
Having a 503 error in Apache usually means the proxied page/service is not available. I assume you're using tomcat and that means tomcat is either not responding to apache (timeout?) or not even available (down? crashed?). So chances are that it's a configuration error in the way to connect apache and tomcat or an application inside tomcat that is not even sending a response for apache.
Sometimes, in production servers, it can as well be that you get too much traffic for the tomcat server, apache handle more request than the proxyied service (tomcat) can accept so the backend became unavailable.