Fedora Servers :: Apache Does Not Output Php

Jul 20, 2010

I have now blown Windows XP away completely and done a clean install into 80Gb hard disk (x86). I know that httpd is running and I've added the snippets to httpd.conf that output server status and server info to the web browser, so I can see that all the required PHP stuff is loaded. So something like http://localhost/server-info works fine but something like http://localhost/helloworld.htm produces the wrong output:

contents of helloworld.htm:

<?php>
print("hello world");
print(phpinfo());
<?>

[Code]....

View 4 Replies


ADVERTISEMENT

Fedora Servers :: Run Apache On LAN?

Feb 23, 2009

I installed fedora10 on my system with live cd.I started httpd service.I also set static IP address, subnetmask and default gateway as my proxy server.It is only accessible through http://localhost at the same machine.but I need to access it through http://ipaddress/ on my other LAN machines which has window operating system.

View 8 Replies View Related

Fedora Servers :: CentOS 5.2 - Apache And New PHP

Feb 7, 2009

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?

View 2 Replies View Related

Fedora Servers :: Apache Does Not Start?

Feb 15, 2010

FedoraVersion 12 ConstantineNoyau Linux 2.6.31.12-174.2.3.fc.x86_64Gnome 2.28.2Memory 871.4 MoAMD Athlon LE-600Free disk 71.5GoSelinux is deactivated.Httpd doesnot start and, when I start "onfiguration des services", and click D�marrer, it runs for ever, but never starts Apache...

View 8 Replies View Related

Fedora Servers :: 14 Apache Error 403?

Dec 24, 2010

I moved from F12 to F14, I've installed using yum Apache, MySql, php, phpMyAdmin. That all works fine, I've made index.php with phpinfo() function and if it is in /var/www/html/ it opens in web browser. I extracted daloradius-0.9-8 in /var/www/hmtl/daloradius folder changed ownership to apache:apache set alias to myradius. When I point web browser to localhost/myradius I get error 403, forbidden. I moved index.php with phpinfo() to daloradius (overwriting old index.php) and same stuff happens. Error 403. What am I doing wrong?

View 4 Replies View Related

Fedora Servers :: Apache Binding Only To Ipv6?

Feb 14, 2009

I just installed FC 10 and have apache running with the default config. the problem is that it is only listening on ipv6 for ports 80 and 443

Code:

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 2059/exim
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 2059/exim

[code]....

here is the only part in the httpd.conf file that seems to have anything to do with this:

Code:

Listen 80

which from my understanding should make it listen on all interfaces, ipv4 and ipv6

View 8 Replies View Related

Fedora Servers :: Non Default Apache Install?

Feb 28, 2009

having an absolute mare on this one and doin me in.! I'm trying to install apache on fedora 9 to a non default directory /usr/local/apache as i need to set it up with resin see[URL]... I've removed the default install with yum remove httpd and then tried installing using apache's ./configure make make install commands. This all appears to work ok but when trying to start the server i get command not found error.any suggestions **ps why are the apache files all over the place in fedora..

View 14 Replies View Related

Fedora Servers :: SSL Apache Non-Standard Port

Mar 21, 2009

I have been struggling with this for the past two days and I can't seem to figure it out.SIMPLE GOAL: use subdomains with my wildcard Rapid SSL cert on Apahce2. This is not a chained certificate.Currently my default SSL virtual host, listening on 443 works fine. So, https://www.myDomain.com is recognized correctly by all browsers. But, the below virtual host listening on port 1025 is not coming across to the browser securely. The page renders, but the browsers do not see it as encrypted SSL.

View 1 Replies View Related

Fedora Servers :: Apache Mod_proxy Abuse?

Mar 29, 2009

I'm running Fedora 10 with Apache 2.2.11 and I noticed something a little strange going on. This morning, logwatch alerted me to the following concerning apache:

Code:

Sure enough, the apache access log file shows the following:

Code:

mod_proxy is disabled in the apache config file anyway (default mod_proxy commented out):

Code:

When I tried to access my web server to check, it was down, and I got the following when checking its status:

Code:

So I checked the apache error logs and found the following:


Code:

There's nothing wrong with line 188 of the config file:

Code:

It seems fairly apparent that there has been an attempt to use my web server as a proxy to gain access to other servers, so I have a couple of questions:

1) I presume that the attack failed, since mod_proxy was disabled?

2) Why did my web server crash? (It has never done this before). It seems very suspicious that it tried to restart, but failed to load proxy_module modules/mod_proxy.so on the same night that someone had attempted to use mod_proxy. I have since successfully started apache without making any configuration changes.

3) Do I need to worry that any part of my system has been compromised?

View 4 Replies View Related

Fedora Servers :: Setup The ERuby On Apache?

Jun 17, 2009

I'm trying to setup eRuby on my Apache server, and I'm having problems. Currently, I have this in a separate config file in "/etc/httpd/conf.d/eruby.conf":

Code:

AddType application/x-httpd-eruby .rhtml
Action application/x-httpd-eruby /cgi-bin/eruby
DirectoryIndex index.rhtml

I have a file named "index.rhtml" in a folder called "test" that's in the root of my server. When I try to get to the file I get this, though:

Code:

You don't have permission to access /cgi-bin/eruby/test/index.rhtml on this server.

View 3 Replies View Related

Fedora Servers :: Changing Cgi-bin Folder In Apache

Jun 17, 2009

I've run into some problems trying to change the default cgi folder from /var/www/cgi-bin to /var/www/cgi-local (in order to migrate scripts from a much older server to a new one). I have edited httpd.conf to modify the following:

Code:
ScriptAlias /cgi-bin/ "/var/www/cgi-local/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-local">
[Code]...

I have also tried several variations. I left ScriptAlias at the default "/var/www/cgi-bin" and I have tried it with AllowOverride None and without the +ExecCGI after Options. I am getting a 404 error when a form has an action directed at a cgi script that is in cgi-local.

View 4 Replies View Related

Fedora Servers :: Apache Randomly 'timing Out'?

Aug 16, 2009

Running a LAMP server, CentOS as the OS.The sites always been slow, but now that ive optimized it with mysql cache, gzip compression and some other things, its really fast.Except when pages loading seem to randomly 'time out'. The browser sits on 'waiting for x.com'. Closing the browser and/or the tab and opening a new one fixes it, but then it'll happen again eventually. Clicking further links while its 'waiting for x.com' does nothing, basically the site becomes unusable until you close the tab and reopen it.

This happens on all 3 virtual servers we're running within apache. Mainly noticable on the PHPbb forums, probably because they are visited the most.It's not a slow mysql query, i turned on slow query logging over 2 seconds, and the only two hits i got on that i know are unrelated.Ive turned off some optimizations thinking they might be it, but no dice.

View 2 Replies View Related

Fedora Servers :: Host All The Manpages On A Apache?

Sep 24, 2009

I am using FC9. Can anyone tell me how to host all the manpages on a Apache Server so that a user can access it using the webbrowser like firefox. After googling I came across something called man2html but it really did not work.

View 11 Replies View Related

Fedora Servers :: Apache And Character Encoding Using UTF-8?

Oct 14, 2009

I am having a problem with my web server. On index.html, it should say "Welcome to my website! More coming soon!" but instead, in Firefox, if I go through my server by going to eggbertx.linium.net or localhost, it shows this:

[Code]...

I know it isn't the file, because the file looks normal if I open it by going to /var/www/html/index.html I looked at /etc/httpd/conf/httpd.conf and it says that it is using UTF-8, which I'm pretty sure is normal. I don't remember it doing this before I installed kdewebdev and ran Quanta Plus, although I have no idea how it could have caused this. Has this happened to anyone else?

View 3 Replies View Related

Fedora Servers :: Apache: Connection Times Out Even On LAN?

Dec 19, 2009

I'm using Fedora 12 with Apache 2.2.14, and I was having this error on 2.2.13 as well.

Even when I connect to my server over LAN, Firefox times out occasionally while connecting. I can't figure out what is causing this. The error_log isn't showing anything. I even cleaned the error_log file, so that if something happened, it'd be a little easier to spot. But I'm still getting time outs, and nothing in the error_log.

Here is my httpd.conf [URL]

It's the default Fedora configuration, I've only changed the ServerName if I remember correctly. it's not the Timeout setting, because on LAN it should never time out.

View 4 Replies View Related

Fedora Servers :: Run Tomcat Behind Apache Httpd?

Dec 19, 2009

I just did a clean install of FC12 x86_64 and want to configure tomcat to run behind apache httpd. What is the easiest way to accomplish this? I'm a newbie at server configuration so detailed instructions would be nice

View 4 Replies View Related

Fedora Servers :: Build Of Apache 1.3.41 Fails On F12?

Jan 9, 2010

I'm trying to move an existing webserver from an old machine to a machine with Fedora 12 installed on it. ThSince the version available in the repository is version 2.X I downloaded the source from apache.org and tried to compile it. I ran configure using the default options and it an without any warnings or errors. However when I run make it fails with the following error:

gcc -c -I../os/unix -I../include -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -DNO_DL_NEEDED `../apaci` htpasswd.c
htpasswd.c:101: error: conflicting types for getline
/usr/include/stdio.h:653: note: previous declaration of getline was here
make[2]: *** [htpasswd.o] Error 1
make[2]: Leaving directory `/root/apache_1.3.41/src/support'
make[1]: *** [build-support] Error 1
make[1]: Leaving directory `/root/apache_1.3.41'
make: *** [build] Error 2

what the problem and more importantly the solution to this problem is?

View 9 Replies View Related

Fedora Servers :: Apache - PHP - Sendmail - TrustedUser ?

Jan 13, 2010

I'm running a fresh F12 server configuration install from DVD, and I'm having some issues with getting sendmail to actually function when called from a php script..

I'm using a mail() function in php run by apache. The httpd error log reports.

Httpd Error_Log

Code:

Code:

View 5 Replies View Related

Fedora Servers :: Apache Won't Pickup Website

Feb 7, 2010

Apache wont picup my website when i dropped my Site folder in the /var/www/html directory even after starting the Apache service.

View 2 Replies View Related

Fedora Servers :: Apache To Block Old Websites?

Apr 8, 2010

I have got a small queston: I have got several websites and some time ago I decided to delete some of them. As a result there is no virtual hosts on my web server, but if I will go to my_old_website dot ru I will be redirected to one of my current web sites (or if I will paste an ip address in browser), I want to know, how to block this?My virtual host's looks like this now:

Code:
<VirtualHost *:80>
ServerAdmin my_mail

[code]...

View 4 Replies View Related

Fedora Servers :: Apache Will Not Pick Up More Than One Site

Apr 13, 2010

On Fedora 12, I guess this is a security setting. How do I get Apache to pick up more than one website in my document root directory. It only picks up one and denies me permission to view the others on my document root directory. This problem doesn't exist in XAMMP. How do I go about it please.

View 5 Replies View Related

Fedora Servers :: Securing Apache From Php-shell

May 8, 2010

About apache security. How to protect web-server from programms like phpshell [url]?

View 8 Replies View Related

Fedora Servers :: Apache Php Upload Not Work

Dec 24, 2010

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.

View 2 Replies View Related

Fedora Servers :: START PAGE In Apache

Mar 4, 2011

I have an apache server and /var/www/html/index.html startpage working fine. But I want to have files accessed by apache in my /home/beny/ director.

View 8 Replies View Related

Fedora Servers :: Apache Will Not Serve Beyond Local Network

Jan 6, 2009

I've tried, but now I give up. I'm trying to run Apache on FC9. Nothing fancy, no extras, just the default installed apache. [correction, I have coldfusion installed, however the service is not running] I've set the Listen variable to every combination I could think of, with no success. I can set it whatever I like (such as my local IP) on any port other than port 80. If I try to set it to 192.168.x.x:80, it gives me the error message:
Starting httpd: (98)Address already in use: make_sock: could not bind to address 192.168.x.x:80

I've run netstat commands to try and find applications listening on port 80 and found nothing. Whenever I chose a port other than 80 to get the service to start successfully, I am able to serve pages locally. But even with my ports forwarded correctly, no one outside the local network can see it. I've checked with nmap that my machine is opening the ports and even cheated, disabling the firewall during testing to ensure it was not part of the problem.

I noticed while locally nmaping my server that whenever I set Listen 192.168.x.x:8081, 8081 is opened, as well as normal port 80. When I stop the httpd service, both those ports are simultaneously closed. Why is httpd opening port 80? I'm assuming this is related to why I cannot assign Listen to port 80. If I run remote scans from sites like www.nmap-online.com and www.canyouseeme.org, nmap-online will report filtered on ports 80 and 8081 if my httpd is running, and if httpd stopped, 80 is closed, filtered 8081.

Can you seem reports success on ports 80 and 8081 if httpd is running, fail if httpd is stopped. I'm sure thats all a lot of information cluttered in to all that. To summarize, I cannot start my httpd server on port 80, and I cannot ever see my webpages beyond my local network. Am I missing something extremely is simple and I'm just over looking it?

View 5 Replies View Related

Fedora Servers :: Apache Says User Directory 'Not Found'

Feb 2, 2009

I have FC10 newly installed, and Apache is serving content from /var/www/ okay.

I'm trying to get Apache to serve web content from user's home directories. This is what I've tried with no success:

Uncommented 'UserDir public_htm' in /etc/httpd/conf/httpd.conf and commented out 'UserDir disabled'.

And...

Uncommented user directory section in /etc/httpd/conf/httpd.conf. It now reads as follows:
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#

[Code].....

I also tried setenforce 0 to temporarily disable SELinux until the next reboot. No luck. It doesn't appear to be an SELinux issue.

That's as far as the information available will take me. I still get URL 'Not Found' when I try to access http://192.168.0.2/~myusername/

setting up user home directory web access?

View 1 Replies View Related

Fedora Servers :: Apache External IP To Internal IP Redirect

Feb 18, 2009

I would like to redirect a external IP to a internal IP, all done with Apache. Is that possible.

View 4 Replies View Related

Fedora Servers :: Apache - Listen Only On Specific Domain?

Jun 7, 2009

I am trying to figure this out and it seems I can't So, I have a server which hosts various domains, each domain with multiple subdomains. All websites are set up with "VirtualHost" and they all work properly.The problem I'm having is that if I enter any subdomain of the main domain, I can still reach the webpage.Is there some way of telling apache to DROP / display a forbidden message for all subdomains which are not listed in the VirtualHosts?

View 14 Replies View Related

Fedora Servers :: Get Apache To Show A Different Or Default Page?

Jul 15, 2009

I have apache installed and I have it all setup so that when I create a user, in their home directory i created a folder called public_html and then that user can upload web content. Users then can browse to their site by going to[URL],,.How can I get apache to show a different or default page if the user does not have a index.html file in their public_html folder. Cause if they dont, you get a 401 saying you dont have permissions to view, etc. So id like apache to default to something else if the user doesnt have a index.html.

View 1 Replies View Related

Fedora Servers :: Apache Httpd Doesn't Start On 11

Sep 3, 2009

I have just installed Fedora 11 on a "fresh machine" and everything works ok, except for Apache httpd
the message seen in the error_log is the following: Name or service not known: mod_unique_id: unable to find IPv4 address of "myserver"

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved