Fedora :: Run Apache-tomcat5.5.29 On Fedora9 But Sometimes Its Working And Sometimes Not?
Jun 11, 2010
I am trying to run apache-tomcat5.5.29 on fedora9 but sometimes its working and sometimes not.Error messages are: 1.could not connect to the server running at 8080(message is at browser) 2.port is not free(again at browser)then I tried to change the port no. of tomcat in server.xml but still it is not working. But sometimes it again starts running without any modification.
I have installed Fedora 9,together with the DNS server.I tried to configure the /etc/named.conf and created my zone files in the /var/named directory.But its giving me errors that it cant find mydomain�s zone files.
How do I go about,or can u assist me with the full steps on configuring a DNS server on the Fedora9
I've trying to run openmoko thru qemu, i went thru the tutorial given at openmoko home page and did install and other things as given there and when i start the qemu, the emulator brings up a GUI which shows "openmoko" logo and then asks to select 1 out of 4 option[the options are like boot-up, enable some usb devices ,one more i dont remember the name, boot off] when i select boot-up i shows a new console and that shows some 4/5 lines os something[it just vanishes in less than a sec and show something like "checksum " blah blah blah] and then it again goes back to the same startup page and displays those 4 boot options. i tried the other options too but it never worked, not able to come up with any coclusion why this occurs. Has anyone faced this kind of problem ? Please help me out fix this problem as google dint help much. BTW i'm running Fedora9 2.6.26 kernel and qemu-0.9.1-6.fc9.
I have a customer whose's webapps are all running under Tomcat5 on a CentOS 5 installation. They have requested to have PHP installed as they want to be able to deliver content in that form as well. I've installed PHP 5.2.13 using yum but I don't know how to configure it run under Tomcat. Does anyone know the best way to accomplish this?
On RHEL5/CentOS5:Can someone please enlighten me, why there is a /etc/tomcat5/tomcat5.conf that gets ignored and a /etc/sysconfig/tomcat5.conf?This always puzzles me and I really want to understand, why there are two config files in place...
I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?
NOTE: apache have the privileges to execute the command
I've been trying to enable SSL in a Apache+Debian server. I already enable the ssl module, I added the 443 port in the ports.conf and I added a virtual host for the 443 port, as follows.
ErrorLog /var/log/apache2/error.log CustomLog /var/log/apache2/access.log combined SSLEngine On SSLCertificateFile /etc/apache2/ssl/apache.pem </VirtualHost>
The certificate is installed also. After I restart Apache, the error log don't show anything unusual. The only showed is this: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations. Still, I can't open any pages with https protocol, only with http.
When I go to localhost, and try to open any PHP file, it asks me to download the file rather than run it like it should. JSP doesn't appear to be working either. I'm not to concerned about the JSP though.
I'm running KUbuntu 8.04 with KDE 3 on a 64bit machine.
I am trying to get PHP5 working on Apache 2.2.13. When loading the PHP file in the web browser, the server does not appear to be passing the php off to the interpreter.Instead, the browser just treats the first command as an HTML comment and displays the rest to the user.
I desperately need to get my apache server on OPenSuse to use the worker MPM I have tried simply placing worker in the quotes of the apache file /etc/sysconfig/apache2 but when I stop and start apache in the task monitor it is still showing the httpd2 processes to be prefork. Also there seems to be a problem on restart saying it cant find MPM.
I have a virtual server setup on port 80 that works fine, however, if I change the port to, say, 8080 the browser then fails to connect.I'm using webmin to configure everything, all the other settings seem to work as I would expect.I get the error "Safari canï open the page http://192.168.0.12:8080 because Safari cant connect to the server 192.168.0.1." in safari, and i get something similar on the xubuntu machine in firefox connecting via localhost.It's almost as though theres a firewall in the way, but I think it's more likely to be some config problem.
After Ubuntu autoupgraded my Apache, some VHosts are nor working anymore and PHP Code is not oarsed any longer. I think the apache2.conf was overwritten. I do not have a clue how ti fix that, I tried some things but now I am stuck. I have only three hosts: the default, an svn (over port 443) and one called "imcar" which has PHP scripts to be parsed.
So, in my apache2.conf I have this: Code: DocumentRoot /var/www ServerName localhost
The imcar host is set up like this: Code: <VirtualHost *:80> ServerName imcar ServerAdmin webmaster@imcar DocumentRoot /var/www/imcar
<Directory /var/www/imcar> Options FollowSymLinks Indexes AllowOverride None Order allow,deny allow from all </Directory>
ErrorLog /var/log/apache2/imcar-error.log LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost>
If I go to imcar in the browser, the default DocumentRoot is shown. If I remove the default DocumentRoot, I get a 404 on imcar.
I want to try and get apache and php working on Natty. I have got apache displaying an index page but when i try to show a php file firefox just asks me if I want to save the file and doesn't display the file in the browser.I installed using some info from websites to install al LAMP Server which seems to have finished ok.I have tried using php from the command line to see what happens and it seems the html is being generated ok.
I have mod_rewrite and mod_proxy loaded properly for the apache2 package in 11.04. I added the following to the bottom of my apache2.conf:
RewriteEngine: On RewriteRule: ^/$ /test [L]
The server restarts fine, but / is not getting rewritten in the slightest. And when I added the RewriteLog directive, the log file had absolutely nothing in it.
I have a LAMP server configured. Yesterday, I had a test.php file displaying everything fine. I transferred some files over to the new server and now I can't connect to the test page, webmin, or phpmyadmin. I think it has something to do with Apache but Im not sure what to do next. I have restarted Apache, MySql and all services are running.
I am running a syslogd on my ubuntu 10.10 system. I have a apache2 server on the same machine. I have configured my apache2.conf file to send the error logs to the local syslog server.
The config is as under :- LogLevel notice ErrorLog syslog:local1
I have also configured the /etc/syslog.conf as under :- local1.info /var/log/apache2/error_logs
I have created a file in the /var/log/apache2 dir with the ownerships and permissions as under:- -rwxrwxrwx 1 syslog adm 77 2011-08-11 18:14 /var/log/apache2/error_logs
Next I restarted the sysklogd and apache2 servers with a service command as under:- sudo service sysklogd restart sudo service apache2 restart
I thereafter observed the /var/log/apache2/error_logs file and found the entries for apache2 closing down and coming up as under:- Aug 11 18:14:14 cc apache2[4940]: [notice] caught SIGTERM, shutting down Aug 11 18:14:19 cc apache2[5282]: [notice] ModSecurity for Apache/2.5.12 [URL] configured. Aug 11 18:14:19 cc apache2[5282]: [notice] Original server signature: Apache/2.2.16 (Ubuntu) mod_ssl/2.2.16 OpenSSL/0.9.8o Aug 11 18:14:20 cc apache2[5285]: [notice] Apache/2.2.16 (Ubuntu) mod_ssl/2.2.16 OpenSSL/0.9.8o Microsoft-IIS/5.0 configured -- resuming normal operations
Now the problem is I donot get any other messages thereafter. So it is hardly useful. How can I increase the logged messages from apache. I tried the facility: local1.*
Then restarted the sysklogd and apache2, but the contents of the /var/log/error_logs file remained similar. Next, I followed the link. I created the perl script for recording access logs of apache2. I then restarted the apache2 and sysklogd. when I opened my website from a browser, the access log did not work. I think I am getting something wrong with the facility value , in apache2.conf it is ErrorLog syslog:local1 ! but the script is suggesting that it should be local2 in the line 4 openlog('apache','cons','pid','local2'); I therefore changed the script to local1 in above line. But still no access log?
I am trying to add a second vhost to my once working apache config. Now I have things really bollixed up and cannot access anything. I am getting a error 400. The access log shows this:
I'm trying to make a redirect rule on my .htaccess but it's not working as planned.
Quote:
The first rule works fine, but on the second rule i do have a problem.
When I type http://domain.com/?tempskin=_rss2 the redirect does not work, but if I change the ? to any other character or even group of characters, the redirect works fine. example:
[url] will be redirected to [url]
But i do need to redirect the ?tempskin=_rss2. I already tried some variations on the redirect rule without any success.
I've installed Apache Tomcat--6 and even jdk1.6.I've even created a tomcat.sh file to start the serverautomatically and it includes the Environment variables also ($CATALINA_HOME & JAVA_HOME) for automatic startup.Next when i'm using http://localhost:8080 to call the server it shows unable to connect.I've tried changing the port no of tomcat in server.xml file. but still its not working.
-->Then i tried using--telnet localhost comand--it shows Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Here I'[m stuck i don't understand how do i make the localhost work.
-->If I'm giving telnet localhost 25 the sendmail server is working.But the 80 and 8080 ports are not getting configured.
-->I've tried adding the port and its name in /etc/services file but still its not working.
-->When I'm giving the command--/sbin/chkconfig --list--->Its shows: xinetd based services:
... ...
telnet on.what should i do to get my tomcat server work properly.
I run mysqld on another server. I just switched to another dedicated server now, and i'm having trouble connecting to the mysqld server. If i run the php script from the bash console( php connect.php ) it works perfectly and connects to the mysqld server. However, if i run the script from apache ( http://localhost/connect.php ) it returns this: Can't connect to MySQL server on '(mysqld real ip)' (13) Mysql connection from another server(old httpd server) works perfectly, so it's not from the database server.
The other day there were a number of updated needed on my server which I installed with yum (the software updater GUI). Now my websites are not coming up even on the server using http://localhost
I reviewed the info and found that httpd was updated to 2.2.3-45 and am suspecting that this is the cause of the issue. So my silly little question is how do I roll back this update?
Having some memory loss i think (in my head not my pc). I have set up apache before , then changed to dsl in the last week and cant seem to get this new modem/router to work. i can get the loopback address to work, as well as the network ip. can NOT get my other machines to hit the server on the network . also no connection from outside the network from port 80. my modem is a motorola (att) ,apache2 on my toshiba laptop, amd x2, 3gigs ram.
This is what writes when I enter localhost in browser and press Enter.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
http://localhost/~david/baby.php
Not Found
The requested URL /~david/baby.php was not found on this server.
Apache/2.2.19 (Debian) Server at localhost Port 80
So , I copied file directly into /var/www folder, entered /localhost/baby.php and get this :
Server error The website encountered an error while retrieving http://localhost/baby.php. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
So , it's not 'bout path or server .. or about php file (I tried few). I don't know what to do
I have a fresh install, everythings working great, just trying to get my vhosts working, i set them up in yast, but all the requests just go to the second vhost.
i have apache and mysql running, i can access my web server by visiting localhost on port 80 but for some reason when it doesnt work when i try using my ISP provided IP address... (it used to work).. i have my router setup with a DMZ on my LAN IP (my computers IP, this is the computer in my home network that serving with apache).. i also cant seem to shut down my mysql server (theres an update ive been trying to get) even when i use sudo...
I have tried setting apache up on port 8000, because my ISP blocks port 80.
When I try to listen on just port 8000, I can never connect, internally or externally. When I try to listen on both 8000 and 80, my internal computers will drop the 8000 from the url and connect on 80, and external computers try to do the same thing, but can't get through on port 80.
I know my router is set up correctly, I have 80, 8000, and 8888 all being forwarded, I have confirmed with [URL] that 80 is blocked, but 8000 and 8888 are open. I am able to connect to gnump3d through port 8888 internally and externally, but not apache2 on port 8000.
netstat -tnap confirms that apache is running and listening on ports 80 and 8000 to all users.