Software :: How To Get PHP And Apache To Work

Apr 26, 2010

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.

View 3 Replies


ADVERTISEMENT

CentOS 5 :: Cannot Get Apache To Work?

Aug 5, 2009

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

View 4 Replies View Related

Ubuntu :: Getting Apache To Work On Anything Other Than Port 80?

Oct 13, 2010

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

[Code]...

View 3 Replies View Related

Server :: All Apache Vhosts Work Except One

Aug 20, 2010

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.

View 1 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

Ubuntu Servers :: How To Set Up Apache To Work With DynDNS

Jul 2, 2010

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'.

View 1 Replies View Related

Ubuntu :: Apache + PHP Doesn't Work In 11.04 - Phpinfo Gives 500

May 30, 2011

I have installed apache+PHP, but even phpinfo gives 500. CLI PHP works fine. What can be the cause?

View 1 Replies View Related

Fedora Servers :: Apache On Local Network Does Not Work

May 23, 2010

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.

View 10 Replies View Related

Fedora :: Apache Python ( Mod_python ) Does Not Work In FC14?

Feb 26, 2011

I installed (with yum) apache, python and mod_python in FC14. I added following contents to file /etc/httpd/conf.d/python.conf

Code:
<Directory /var/www/html>
AddHandler python-program .py
PythonHandler myscript
</Directory>
I tried to visit 127.0.0.1/myscript.py

[Code]...

View 1 Replies View Related

OpenSUSE Network :: Make Apache Mod_rewrite Work?

Jun 1, 2010

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?

View 9 Replies View Related

General :: Cgi Doesn't Work With New Apache Site Configuration

Mar 24, 2010

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:

Code:
<VirtualHost *site1:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/site1/public_html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
[Code]...

View 1 Replies View Related

Server :: Fighting Apache To Make It Work With Symlinks?

Jun 23, 2010

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:

<Directory />
Options +FollowSymLinks
AllowOverride None

[code]....

View 6 Replies View Related

Software :: Configure GlassFish-V2 To Work With Apache's Port 80?

Jun 21, 2010

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

View 1 Replies View Related

Programming :: CGI Written In C Doesn't Work In Ubuntu + Apache

Oct 21, 2010

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...

[Code]....

View 4 Replies View Related

CentOS 5 Server :: Apache MySQL PHP Does Not Work On New Install

Jul 17, 2010

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...

View 5 Replies View Related

Ubuntu Servers :: Cgi Doesn't Work With New Apache Site Configuration?

Mar 24, 2010

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:

Code:
<VirtualHost *site1:80>
ServerAdmin webmaster@localhost

[code]....

View 4 Replies View Related

Ubuntu Servers :: Created A New Virtual Host In Apache Using Webmin - Doesn't Work ?

Nov 14, 2010

I created a new virtual host in Apache using Webmin and am having trouble getting it to work. When I created it, I opted to create the config file as a "New file under virtual servers directory /etc/apache2/sites-available". So now I have a default config file /etc/apache2/sites-available/default and a new one created by Webmin at /etc/apache2/sites-available/webmin.1412323.conf. It seems like the settings in that new Webmin config file aren't being picked up by Apache -- when I try and browse to mywebsite.com it shows my root /var/www folder, not the subdirectory /var/www/mywebsite.

Is there a way I can tell Apache to include the new Webmin config file for the virtual host or should I just copy the directives into the default file at /etc/apache2/sites-available/default? It seems like Webmin should automatically configure Apache to work with any newly generated config files.

View 4 Replies View Related

Server :: Change Of Apache Httpd.conf Doesn't Work On CentOS/RedHat?

Jun 30, 2010

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.

View 91 Replies View Related

CentOS 5 Server :: Dovecot/apache Not Working Properly - How To Make It Work Correctly

Mar 20, 2010

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?

View 2 Replies View Related

Ubuntu Servers :: Writing Specialization Work About Administration Apache And Ftp Server On 10:10 Server?

May 22, 2011

Does anyone have some material about statistics using ubuntu / linux server, or a text which generally describes the ubuntu server?I need urgent, i'm writing specialization work about administration apache and ftp server on ubuntu 10:10 server, so I need something for the conclusion.

View 7 Replies View Related

SUSE / Novell :: Clear Apache Cache Without Restarting Apache Server?

Feb 4, 2010

Any one have an idea How to clear apache cache without restarting apache server.

View 5 Replies View Related

Server :: Tunnel Apache Virtual Host To An Internal Apache?

Jan 24, 2010

I am upgrading my server and I have a lot of sites. Since I cannot take my server down for a few days, maybe a week until I manage to migrate all the sites to the new machine, I figured I could migrate them one by one. After migrating one, I would somehow tunnel the requests of that name virtual host to my internal machine. When everything is migrated, I would then switch the machines, update ip's and stuff and everything will work just fine.

However I cannot seem to find a way to do this tunneling. is this at all possible? If not, what alternatives do I have?

View 5 Replies View Related

Server :: Server Apache Doesn't Work

May 21, 2011

Server Apache doesn't work.Note the LOG line,you cannot modify or delete "logs/"

View 1 Replies View Related

CentOS 5 :: Apache Error 403 - "Forbidden You Don't Have Permission To Access /bb/ On This Server" - 5.2 With Apache 2.2.3

Jan 20, 2011

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..

View 3 Replies View Related

CentOS 5 Server :: Apache 'server-status' 404 Not Found + Munin Apache Stats?

Oct 14, 2010

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

[code]....

View 7 Replies View Related

General :: Apache Command And Terminal / Command With Apache Through Web Browser And It Is Not Working?

Aug 18, 2009

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

View 7 Replies View Related

General :: SMP Kernel Would Work With Single Processor / Work With Multiple Processors System?

Feb 10, 2010

If I have SMP kernel would it work with single processor or only work with multiple processors system?

View 6 Replies View Related

Ubuntu Multimedia :: Creative Webcam Doesn't Work - How To Make It Work

Feb 17, 2011

how to make creative web cam working with ubuntu

View 1 Replies View Related

Networking :: DNS Lookup Doesn't Work, Ping, Firefox Will Not Work Properly?

Apr 23, 2009

I have this annoying problem since day one.I am testing out Red Hat RHEL5, everything is fine except DNS look up.If I ping www.google.com, it doesn't work, ping ip address it all works;if I bring up browser, put www.google.com it doesn't work, can't find the name, however, simply put ip address there it works.My DNS seeting seems ok, and the DNS works from Windows box.

View 2 Replies View Related

Slackware :: Get Rtsp:// In Firefox To Work \ (adding Entries In :config Does Not Work)?

Feb 2, 2010

I have followed the instructions at http://www.vcn.bc.ca/~dugan/setting-up-slackware.html (under "Making Firefox Perfect"), but I still get the error message"Firefox doesn't know how to open this address, because the protocol (rtsp) isn't associated with any program."

View 13 Replies View Related







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