Server :: Changed Apache Port, Now Pages Won't Display?
May 16, 2011
I just tried changed the port that apache runs on from 80 to 8080 (I need port 80 for a difference service so I am changing the apache port). After doing this I load 127.0.0.1:8080 in a browser and get a 404 error generated by apache, if I change it back to 80 it works fine.
Im using fedora 8 and have installed php5 ,and mysql and i see only php blank pages ,some idea? must be php.ini, but i am newbie installing php and apache, i disabled selinux, and grant all the permisssions to excecute..
I have apache running on my server, and also Zoneminder, a surveillance system running on the same machine. Both services runs without glitches, and I think apache's config as well as ZM's config are fine. I am not sure I understand how apache (not to mention the whole thing zoneminder, apache, web browser...) works. Pretty hard to manage when you dont know what you are doing. Also, when I try the supposed to work zoneminder webpage in my web browser, I get nothing (a blank page), or sometimes a "Not found" error message. The latest seems to be from apache because it is the same font as the "It works!" message when I try http://localhost:80
The only bit of information I have so far is in the apache error log (/var/log/httpd/error_log) and it says: Code: [Sun Mar 21 00:35:14 2010] [error] [client 192.168.0.100] script '/srv/httpd/htdocs/zm.php' not found or unable to stat [Sun Mar 21 00:46:04 2010] [error] [client 127.0.0.1] File does not exist: /srv/httpd/htdocs/zm It seems that the "zm.php" is missing.... That would be why Apache cant find the page?
I am trying to set up my Apache server with FastCGI as the CGI engine. It will be mostly running PHP, but I may add Perl or something else later. I started from a completely fresh install of Ubuntu 11.04 with every update available. I used the install CD to install a LAMP server as part of the system install.I am using the tutorial at URL...to add the FastCGI functionality. I am having some problems with getting everything to work.The first problem was that apache2-suexec-custom wouldn't accept a different document root. I fixed that by compiling apache2-suexec from source with the document root changed to the correct path.
The next problem is that every php page I load throws a 500 error. Apache's error logs show that FastCGI isn't returning the page data correctly to Apache.
I have 2 servers that are mirrored. They host 3 separate websites. Two of these websites are regular HTTP and the other is HTTPS with Digest authentication as well. The reason there are 2 servers is because one is a primary and the other secondary in case the primary goes down. Recently I decided to upgrade the secondary server then make it the primary server. I have done most of the configuration and the sites using regular HTTP are working perfectly fine. The page using SSL is not. Apache fails to load and here are the errors I am receiving the the error log file:
Code: [Fri Aug 13 09:27:00 2010] [warn] RSA server certificate CommonName (CN) `newserver.domain.com' does NOT match server name!? [Fri Aug 13 09:27:00 2010] [error] Unable to configure RSA server private key [Fri Aug 13 09:27:00 2010] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
For the first warning, I cannot find anywhere that says the CN "newserver.domain.com", only what the CN is in the SSL key. I have no idea where to even start with the other errors.
Most of my googling odysseies lead me to articles which talk about compiling apache & php from the source as this is touted to be more flexible. But the problem we have is this...we already have an apache 2 web server running. Now how do we serve php pages of it.
I am experiencing a problem which I lack the knowledge to crack at this stage. I run a home server (2.6.28-19-server #64-Ubuntu SMP) which firewalls and proxies for my LAN (including 2 linux boxes, a vista box and a win7 box).Most of the time this works well. Very occasionally we will run into a website which will not display at all on the LAN boxes.Examples: for a long time I could hit the forums.egosoft.com site but not the egosoft.com site. Now my wife can't hit www.boden.co.uk. I'm pretty sure that the problem is in the Squid3 config. solation testing:Run the vista box direct into the ADSL modem: get the website.Hit the website using Lynx through SSH on the server box: get the website.Try to get the site on a browser (have tested with IE8 and chrome) on any of the win boxes through the proxy - no joy. DNS error.Firefox on Ubuntu desktop from the linux client boxes gives an error message about an unrecognised form of compression.I can only assume that I've misconfigured the Squid3 proxy in some way - it works for 99% of sites but fails utterly on others.
I rented a server to run CS 1.6 game servers. I had someone install Apache and configure my server to be able to use control panel for my game servers( i am running 4 gservers and have 5 ips = 1 ip is free). When i type my primary ip in the web browser it displays the Apache test page.
My question is can i add pages to the Apache without messing up anything with the control panel or my game servers. I am familiar with html. My primary ip is used for 1 of th egame servers but i can change that if necessary. And if possible to add pages how to add a site name, sth like [url] instead of entering the primary ip to display the content.
I'm trying to setup an Apache webserver on my computer in order to practice HTML5/CSS3 for an upcoming competition I'm in. I'm able to access my site from inside my network, but I cannot outside my network. I've had several people try, and they all report that the server just times out. I'm running Ubuntu 10.04 and Apache 2.2.17
I'm not that great with mailservers, and just been thrown a curveball with a MS Exchange environment for which there is apparently no solution... yeah, right. But is there a workaround?
The problem is that the site mail (SMTP) needs to be sent via port 26 instead of the commonly used 25. Port 25 is mapped to a mailfilter, which apparently causes havoc with some of the mail, and the techs that have been on site trying to coax the Exchange server to co-operate have said that the only way would be to get rid of the filter.
The problem is that there are number of apps that are unable to have the outgoing port changed and so keep sending mail out on port 25.
I look after the Unix/Linux side of things at work, and I was wondering if there was an easy way to set up a Ubuntu box to receive mail on port 25 and just forward it to the MS box on port 26? So, in other words (and I hope this makes sense): monitor port 25, and forward whatever comes in on port 25 to the server on port 26. Simple portforwarding, or is it? What steps do I need to take?
I'm running a server with Ubuntu 10.04 installed. I recently set up a VirtualHost (I'll call it my.website.com), like I have in the past without any problems. But this time, I'm stumped. When I connect to my.website.com, it should hit port 80, right? It doesn't; rather, it hits port 8000. I don't have any rewrites/redirections (I checked wherever possible) and checked apache2.conf (httpd.conf is empty).
I want to run these services on these ports:- ssh:8080- shellinabox:80- squirrelmail via apache2 and SSL:443These appear to be the only ports I can generally connect to through various firewalls I encounter. If I try to get apache2 to not run on 80 shellinxabox appears to bind to it ok, but when I visit my site at port 80 via firefox I get apache instead. 1) How do I stop this and get shellinabox and apache2 working at the same time?2) How do I find another free port that isn't firewalled? All I have been trying is starting shellinabox on various ports and trying to connect and this is a very slow process
I want to run a soft that is daemonized, and listens on port 6789. This soft is launched through a php page, so, by the apache user. The probl�me is that the apache user does not has rights to open / listen on a port. I tried to add apache user to the root group, but it won't help. In the application log, I have this every second :
I tried to add apache user in the sudoers with a nopasswd but it's still a no go.
I have a website example.com, serving pages on port 80. I want the url example.com/redmine to be rewritten to port 3000, where my redmine server is running, without actually changing the URL. So the user typing in example.com/redmine/test would serve up example.com:3000/test, without the user actually connecting through the port. I know this can work through CPanel, but I don't know exactly how it was implemented. I'm looked at how mod_proxy, mod_proxy_html, and mod_rewrite,
I am setting up Apache (Fedora 12) inside my home network. From inside my home network I access it without any problem. I need to set it up to access it from internet. I have the following questions. Here is temporary setup for testing purpose. Internet-->ADSL modem (SEIMENS Speed Stream 4200)---> Apache (Fedora 12)
1. Do I have to do any kind of ports forwarding on ADSL modem. (There is no option to do port forwarding on Modem) May be I need different Model of Modem?? 2. I tired to Ping my real IP for modem form another computer from internet. I am even unable to PING the ADSL 's real IP. Why it is that?
I'm very new to Linux, and I have ran a Windows XP server before, with a Apache2 Server software for Windows. and didn't have any problems with it, but I really want to set this server up with Linux.
The server is running, but the only thing that comes up in the browser, is the html pages, the pages call all the images from a folder /images/ but for some reason I can't get it to pull the folder up. None of the graphics show on any of the pages.
I also have a VirtualHost setup, and have another website set up in the DocumentRoot with the 2nd site, but it won't come up ether, even tho it is listed as the 2nd VirtualHost, and have that folder set up as the DocumentRoot.
I'm just using IP Addresses for now till I get this all sorted out.So if I enter the IP the main page comes up, just no graphics. if I enter the IP Address/2ndSiteFolder/ I get a directory listing with the 2nd site folder listed, so now if I click on the 2ndSiteFolderName, it comes up as IP/2ndSiteFolder/2ndSiteFolder/ Now the 2nd site comes up, and so does all the Graphics for that site, even if I go to some of the other subfolders site. So its just weird. I don't know what I need to do to get this to work right.
I know it has to do with setting up the folders for VirtualHost, I just don't know what it is. I have been working on this for a week, and I'm not getting anywhere..
I have a Cent OS 5.4 32 bit final installed in my dedicated server. I used to run lighttpd with php in my server until now and all was fine. But yesterday I changed my website which needs apache to run. So installed apache using yum install httpd command. Then I added the virtual host name of my domain in webmin panel but when i try to run my php script in browser then its not opening php pages. Instead it downloads php files like index.php when i open in browser. So I guess apache is not able to compile and run php pages. Only html pages are opening right now..
I have Joomla installed at /var/www/joomla, if I navigate to http://localhost/joomla, I get a 404 error, but if I add index.php, the page loads. What is wrong?? Also I am not able to navigate to the administration part of Joomla for the same reason, typing in index.php doesn't load it in this case. Yes I have verified that all files are present in the directory.
I am running OpenVZ.I wanted to use the VPSs IP at a particular port to load the Servers Web Pages e.g. The IP 184.108.40.206 is the VPS IP and 220.127.116.11 is the servers main ip.My files are on the main server at /usr/local/pages/
I want to load the page from the URL: https://18.104.22.168:8888
These should load the files from the main server at /usr/local/pages/ Virtuozzo a OpenVZ panel does it. So how is this going to be possible ? Will DNAT do the trick : iptables -t nat -A PREROUTING -p tcp -d 22.214.171.124 --dport 8888 -i eth0 -j DNAT --to-destination 192.168.0.1:8888
I have a web site on port 80. My apache works on port 8080. i configured cache_module in apache. so that the clients will enter the web site threw the apache and apache will gather all the cache of the web site in order to speed up the service. when i point apache to take content from port 80 - it works just fine. when i change it from port 80 to any other port, it gives an error: "failed to open stream: Permission denied in /var/www/web/cache/index.php on line 44" it works fine with port 80. so how come not other port? i will be glad to hear any suggestion.
I can connect to anything locally, I can SSH in locally but nothing works from outside my network (can't access pages in apache, can SSH, etc.) I've checked the logs I can think of, but what should I be looking for? The last thing I did today was add a FW rule to log and drop from an IP, saved my iptables to a file in /etc. (this was at 10:45am). The last time I successfully logged in remotely 1:03pm. I connected multiple times in between. I've rebooted remotely once or twice. That's it. I've already flushed iptables.