Or rather I can't reach it when I try to reach it in my web browser, I get a "network link timed out" error.I start it by issueing "/usr/sbin/apachectl -k start", and i know its running b/c i can see it in the process list "ps auxf".The request isn't showing up in httpd's access_log, which lead me to think this is a SELinux issue, perhaps not allowing httpd to bind to port 80, idk.I'm remotely administering this machine from the command line
I just installed Centos 5.5 on one of my systems today and something is eluding me. Basically I had a web site and forum software (phpBB, but I don't think it's that, other forum software like Xoops does the same thing) running on Fedora 13, and I copied it over to the new Centos installation. Apache is running fine and displays a PHP test file and .html files just fine.
MySQL seems to be fine, I can log into that, show databases etc. Just can't get any forum software to know there is MySQL there. I did change the path of the site, and the databases, and edited /etc/my.cnf and /etc/httpd/conf/httpd.conf to reflect that. Thought I made the needed changes in /etc/php.ini but who knows. Seemed like everything should have tar'd up and moved easy, but not the case...
I've been trying to make install apache 2.1.8 and php 5.2.3 and work on them. After updating and installing some dependence files, apache and php could both be installed.
Then I tried to configure them. I added the following content to the end of Apache httpd.conf:
Code:
Then I run /path/to/apachectl start, and saw the message:
Quote:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Then I remembered that I didn't include the rewrite module while making install apache. So I removed the 2 lines I just added to httpd.conf.
But, after running /path/to/apachectl stop and start again, I could still see:
Code:
When I use firefox to open http://host_ip:8080/, I could see "It works!". But when I open http://host_ip:8080/hello.php (the file is already under htdocs), firefox said Quote:
Failed to Connect
Why and how to solve it?
I noticed that for some stupid reason, the conf file wasn't updated at all and the 2 erroneous lines were still there.
I am running a quad core centos 5.4 box that is having a strange problem with dovecot. The administration panel is able to send emails through dovecot but not any of the user accounts (ie with webmail). I've done a bit of research with what could be wrong but haven't had any luck so far I am also having a weird problem with apache: on a c++/php bittorrent application I was going to be running on a subdomain of my main site I get a 500 error every time I try to log in. The only way to get rid of the 500 error is to clear the chache (so its horribly broken somehow). The error generated in the log whenever I try to log in is that "ffmpeg is already loaded" (which I am running on the main site and is critical). Is there a way of either repairing my apache install or excluding ffmpeg on the subdomain in the conf or something?
I am installing Big Brother on a CentOS 5.2 running the default Apache 2.2.3. When I try to access any web page I get the following error: Forbidden You don't have permission to access /bb/ on this server. Apache/2.2.3 (CentOS) Server at fmsubbnix Port 80 So far I have:
1) Set the Directory options to FollowSymLinks 2) Verified all directory and file permissions are at 755 3) Set permissions temporarily to 777 and received same error so I am assuming the issue is in a config file somewhere 4) in hhtpd.conf verified <Files ~ "^.ht"> is correct 5) verified the "default" directory is correct (/var/www/html)
I have read and tried several ideas in posts listed on the web but to no avail and am at a loss as to what to look for next..
I am trying to solve a problem where Apache stats aren't displaying correctly in Munin. I've ran through quite a bit of checks and tests regarding Munin setup, but I think my issue is related to Apache, but my skill set there is lacking.
first, system info: monitored server: CentOS 5.3 2.6.18-128.1.1.el5
i opened up my browser to surf the web and a page popped up i had never seen before.Apache 2 Test page powered by centos. Any address i put into my firefox browser won't come up and i'm stuck on this test page and,i can't locate it on my computer to remove it.How do i get rid of it and more importantly how did it get on my computer in the first place?
U have spent 4 days trying to configure my router thinking that it is my router that is not working but when I go to my dynamic dns or my static ip address it takes me to my admin router on the local computers.when I type httpd it says it cannot bind to port 0.0.0.0:80 i checked it is set up to listen to port 80 this is really confusing me i am beginning to think the people who built my server did not set it up properly if i go to localhost or 0.0.0.127 it goes to the apache default page fine.I have not changed anything since it wad installed except the centos 5 updates any ideas?When i login my password is root and the password is the default I have changed nothing else on the system as I still have no clue about it.Just to clarify on my router I have port 80 and port 443 set to my static ip address is this correct or should it be the eth0 Bcast ip address?Can anyone give me an idea of what i need to check? On my router I have set up port 80 and port 443 and dynamic dns and static ip address.Sorry I am totally new to linux never used it before would be nice if anyone has any ideas how i can proceed with this.
I wanted to play around with PHP and already have Apache installed, but instead of showing the intended page I just see the PHP source code, despite having tried many of the guides online.
I can't seem to get apache to work on a non default 80 port. I've got in to ports conf and changed it to the follwoing.
Code: # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default # This is also true if you have upgraded from before 2.2.9-3 (i.e. from # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and # README.Debian.gz
I'm switching internet providers and right now have service with 2. I tried switching my server over today, and ran into trouble so decided to switch it back. I got everything set up again, and it all seems to work - except for ONE of my vhosts. The others work as expected. One (the only "real" site I host) simply hangs. I am "watching" the log file, and the top-level request for "/" (sometimes) comes through and reports response code 200. But, none of the other files (images, css, etc) get requested, and the page never loads.I'm not sure where to even start. Apache is fine since the other vhosts work. I didn't make any changes to my config - except for changing the ip address in my dns. But, that's the same for all vhosts.
It may be worthwhile to note that I changed it back when I tried bringing up the site with the new ISP and it brought up my (new) modem settings with the url. I panicked and couldn't figure out how to fix it.. I thought maybe someone could have been playing with my modem settings (I was automatically logged in as administrator), so I set it back to factory settings. Then I couldn't get the internet to work at all, and changed it back to my original service. Now everything works except for the one vhost.
I've write a php code to upload files. by move_uploaded_file. I've given 777 to the folder. But file upload unsuccess, error log show no premission. I test the code in Centos it wotks. I change the dest folder in Fedora to /tmp it works, but it only work on /tmp. neither /tmp/abc nor /temp. I guess it's a setting problem on apache or php. I also copy http.conf and php.ini from Centos, but mod_file_cache and mod_mem_cache not find in Fedora.
I do not know a lot about Ubuntu Servers, but I made one. I wanted to set up a web server using Apache and DynDNS. So far, I have created an account on dyndns.com and installed apache. I also installed another program (i dont remember the name) that had something to do with DynDNS. Right now, I can access the page on my server by using eLinks (text based web browser) and going to the address (myaddress.dyndns.org). If I try to access it from any other computer, I get a page that says 'Unable to Connect'.
The situation is this, I have one of those router cable/wifi. So I have the main pc plugged to the router, the router give local ip for all my network (the others computers connects via wi-fi). Main pc starts up apache under Fedora 12, http://localhost.. works, http://127.0.0.1.. works, http://192.168.0.13 (my local ip) works. But when I try to connect to http://192.168.0.13 from another pc of my local network, it doesn't work. The others pcs are running windows vista.
I go another computers ping 192.168.0.13, responds! From the main computer ping 192.168.0.14, responds! So, there is communication between the machines, but I cant get to work under apache. I tried opening port 80 with iptables, i tried changing apache's port to another.
I want to enable Pretty URLs in Concrete5 and Joomla CMSs. So far I have- enabled pretty urls in the CMS- created .htaccess files (as they showed)- changed AllowOverride None to All in /etc/Apache2/httpd.conf <directory>- restarted ApacheBut the pretty urls still don't work, When I click any link on either site it gives me a page not found error. If I use the "non-pretty" URLs, all the links work. So I guess Apache either doesn't read the httpd config file or it doesn't read the .htaccess files or something else. Has anyone got this working? What else did you do?
I installed apache on my local machine to test websites. I have one problem: I created a new site configuration in /etc/apache2/sites-available and enabled it. The problem is that cgi is not working, it just prints the content of the files. (The default location for cgi, /usr/lib/cgi-bin works without problem.) Here is the content of the site configuration file:
I'm having a real problem getting Apache to allow a symlink on a particular folder. The symlink is at /var/www/html/images and it points to /home/foo/images.Here is the relevant section to my httpd.confQuote:
I've searched the web and couldn't find anything simple to configure GlassFish-v2(port 8080) to use Apache's Port 80. Similar to how tomcat's 8080 port workds with mod_jk. Anyone have a sample configuration file of GlassFish or Apache's mod_jk that they have working
I just tried the simplest 'Hello world' example as below.
Code: #include <stdio.h> int main() { printf("Content-type: text/html "); [Code]...
Code: gcc -o hello.cgi hello.c Also grand a+x to the file and enable *.pl and *.cgi for cgi-script at apache2.conf The server reminds me 'Internal Server error' The weird thing is that I have a perl cgi in the same place with same privilege, which works perfect...
I am trying to setup a simple Linux Virtual System (LVS). The 1st layer is two Virtual Servers, the 2nd layer is two Real Servers and the 3rd layer is one PostgreSQL Server. All data is on the third layer (PostgreSQL). The Apache Server is running on the 2nd layer but it is supposed to retrieve data (Folders) from the 3rd layer servers (PostgreSQL). I like to setup NFS server on the 3rd layer and NFS client on the 2nd (Apache) layer. I can't figure out how to do it! I have searched the Internet with no luck. I am sure many people on the CentOS community have done it. Can somebody point me to a Howto.. or email me a procedure they have.
If I wanted to update Apache manually, instead of having Yum update it, how would I remove apache from Yum's database? What else would be involved if I download Apache source; and then configured, built, and installed it?
I've just installed latest verion of centos and am having trouble getting Apache to work or even knowing how to test it's working.
When I open up firefox and type 'http://localhost/' I am getting the message "failed to connect" firefox can't establish a connection to server localhost.
I installed apache on my local machine to test my sites. I have one problem:I created a new site configuration in /etc/apache2/sites-available and enabled it. The problem is that cgi is not working, it just prints the content of the files. (The default location for cgi, /usr/lib/cgi-bin works without problem.)Here is the content of the site configuration file:
I am trying to set up an unused machine as a web server for my students.
I originaly tried with Redhat 9 and had the same problems. I am using an HP Pentium 4 system with 2 network cards.
1) The built in Realtek RTL8139 configured as eth0.
2) An add in Broadcom BCM5782 Gigabit card that was added I presume when the built in card failed (we have a number of machines like this around the school), configured as eth1.
I did not realize the second card was installed when I had Red hat 9 on the system, but I discovered it after installing centos 5.5. I have tried to configure the system to use DHCP with and without getting the DNS from the provider, and both ways the system complains that there is no connection, check the cable, so it will not activate the device.
When I configure the device to use a fixed IP, I can configure the device, but I can't ping anything on the network other than myself. I suppose it is possible that both network cards have failed, but I get green link lights with both cards, when I connect them to my router, so I am at a loss as to why neither board seems to work. I don't have a spare network card to slide in because the computer takes a special mini card. Is there an easy way to test the board to see if the board is a problem?
I've installed a server (CentOS5.2) - and I need a new(er) PHP, so, I get me one. This is what I did: - unzipped the bundle in the root's home - of course, I entered the folder - entered "./configure" - entered "make" - the compile didn't come back with errors - entered "make test" - there was a _possible_ fail... - entered "make install"
I noticed there's nothing in the /libs, where I'd expect a module (lib5php5.so) to exist. there is one, but it belongs to the older PHP. It's located in ets/httpd/modules (a link BTW - but I think that's normal). At the console I type: "which php" and get a path to PHP /usr/local/bin/php "php --version" and get 5.2.8 and some extra info in the server I entered "<?php phpinfo(); .>" in a PHP page, as I call that page, I get ... 5.1.6 as version.
Of course, I suspect Apache to have the OLD PHP in its config, (the old lib5php.so) and that I may have to overwrite the old one with the newly compiled one, if I had it. I ran a locate on the system, but no other lib5php.so files exist. Where did I loose track?
I'm attempting the lovely task of uninstalling Apache 2.2 and installing Apache 2.0 on CentOS 5. This is because of my original task of installing RSA web agent which only works with Apache 2.0. I also am not allowed to just install CentOS 4. I uninstalled Apache 2.2. Attempted to install Apache 2.0 (with rpm) and got multiple dependency errors. I installed the dependencies (and sometimes their dependencies including a little dance around some circular dependencies). Then I installed Apache 2.0 with no errors. However Apache failed to start.
Here is the error: httpd: symbol lookup error: /usr/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno. Please don't tell me it "seems like you're missing your gdbm libraries." I'm not. I'm assuming I'm having a version incompatibility issue between gdbm and libaprutil. I just don't know what version of which I need to make Apache 2.0 happy. I tried uninstalling gdbm and installing an older version but I still have the same problem. Another option is to uninstall my openldap package (2.3.13-2) which I just installed and install an older version of that but again don't know which version is right.