Server :: Configure Apache To Execute Php Scripts / Pages?
May 14, 2009
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.
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 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 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 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.
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.
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 want to put Google analytics code on all legacy pages on my server, most of them don't have a template so I was wondering if Apache can automatically append the code.
how can I run CGI scripts that are without extensions under the document root?i can not use ScriptAlias on the document root, i can run .pl scripts but i cant run any script without extension...ofcourse all files are executable on the fs.
I have a nagios server monitoring around a 1000 hosts in our office. To make things easier, i've integrated apache into Active Directory for the website authentication. This works perfectly, however the Nagios website uses alot of CGI scripts to display information I get the message below when trying to show CGI scripts with an AD user. Local users work fine. 403 Forbidden You don't have permission to access /nagios/cgi-bin/status.cgi on this server. I tried adding the AD users to the cgi.conf file within Nagios (which works for local accounts) but it doesn't seem to work even with this change.
I have a web server in my kitchen with apache running on it. Since the upload speed is quite low due to my isp I would like to execute a bash script that uploads a file to another server through a website (which is htaccess protected) The idea in general: Someone with access to my website browses through a folder, copies a file path to an input form and presses "upload". Rather than executing a bash script directly I could have a cron job running in background that finds the path and then uploads the file to the other server I have userspace on and is accessible via sftp/ssh. The file would be than erased later after a couple of days or so. That person would be able to access the file with higher speed some time later without logging in via ssh and doing all that manually.
I am making a webserver running apache2.2.11. The webserver is running fine. I didn't configure/enabling apache with ssl when compiling. So how do I get my webserver to run the SSL? As far as I now apache2.2.11 i does not require to download mod_ssl and openssl, to have the webserver run SSL, But I should have something like this: # /configure --prefix=/usr/local/apache --with-ssl=/usr/bin
When configuring. Is there a way I can enable it now and do I need to install something before enabing it? Or can I just redo this: # /configure --prefix=/usr/local/apache --enable-ssl And then rewrite the old version I have with no problems?
I need to configure Apache for a 16 GB Server for maximum performance. It should have maximum requests and also with stand load. I have given the current configuration below.
I have apatchi (httpd) installed on Fedora, and I am trying to configure the virual server. I have two websites: [URL] and [URL] and the machine has one public IP address. The problem that:
It always returning the default virual host (even if we typed in the url: [URL] or [URL]), it returns the default configured one (which is the first configured virual host). I have one public address on my machine, and my configuration as following:
[Code]....
Actually [URL] is the one which is used for the global configuration.
I have a question to masters of Apache. In my operating system (CentOS 5) I have installed two Apaches. One is Apache (port 80) from repository where I planning to configure proxy and second one is Apache integrated(port 8090) with KnowledgeTree software. The problem is that when I am trying to configure proxy reverse it simply doesn't work.
This is link to KnowledgeTree software: - http://127.0.0.1:8090/knowledgeTree
This link I would like to rewrite with proxy like this: https://myserver.com/knowledgeTree (HTTPS dont forget)
In my ssl.conf in VirtualHost part I have created something like this: Code: <IfModule mod_proxy.c> <Proxy *> Order allow,deny Allow from all </Proxy>
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've been for a while trying to configure my apache to host 5 domains as virtualhosts in the same IP address, but seems that neither one makes it through... it always takes first one, because it is the default:
i'm using James on Cent OS 5.4. NOw we figured out, that our firewall changes the signed mails on the signing gateway, which is the Cent OS Server with James. So... the question ist, how do i configure James to send mails out directly... not passing it to the firewall?
I need to deploy a dedicated Apache on Linux server which will host drupal based website. to serve around 5000 simultaneous requests. I need suggestions from experts on Hardware and Apache configuration, load balancing and clustering etc.
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 own several websites and have always developed on my local Apache server.
I am in the middle of releasing a new product on one of my sites and have been making rapid changes to the site based on feedback from customers, etc. as my product has gone live...
My local server is NOT refreshing pages. I make a change, click "refresh" in my browser and nothing happens.
I have tried clearing my browser cache and it makes no difference. Eventually (several minutes later) my changes happen.
Problem is, I need to be making these changes rapidly, and I really prefer to check my work on localhost before uploading it to a live server where I'm getting a lot of visitors right now.
This is a very recent problem as I have never had this occur before. Running 10.04.
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 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.
I've enabled LDAP authentication on my 2.2.15 Apache server, but now pages load very slowly. As in, 1.515s with it enabled, and 187.4ms without (just the base page, numbers collected via Firebug). Here's my LDAP config (other directives snipped) -
I would like to set-up a pretty fast a running apache. I would like to use him so to launch a pretty small web site of 10 static html pages. At this time there is no security concerns (even though I want to do it right) , because the computer has not even ethernet cable. I have some experience, 8 years ago I Was setting up virtual hosts in fedora, so this process is not a blackbox for me.