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


ADVERTISEMENT

Ubuntu Servers :: (IMO) Apache - Directory PHPInfo Does Not Exist

Mar 23, 2011

Have Apache running on Ubuntu Server. Say I have a domain, www.somewhere.com, and I have uploaded a file, phpinfo.php. If I hit http://www.somewhere.com/phpinfo.php, I get my file as expected. However, If I hit non-existent file http://www.somewhere.com/phpinfo/somefile.dat, it also acts as if I hit phpinfo.php, instead of giving me a 404 error. It seems that because the DIRECTORY "phpinfo" does not exist, it decided that I must have meant to hit phpinfo.php at the root of the site.

If I create an empty "phpinfo" directory then it behaves as expected and gives me a 404 not found page. This is reproducible for any other file name you can think of. I'm sure this is some Apache convenience behavior but I would like to disable it (it is messing with some mod_rewrite stuff I would like to do). Because it's hard to describe I cannot figure out which Apache option it might be (whatever I Google for gives me completely unrelated results).

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

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

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

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

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

Ubuntu Servers :: /var/www/phpinfo.php: Operation Not Permitted

Jul 19, 2011

I just setup a server using ubuntu server edition also installed apache, php, mysql and phpmyadmin.. when i try to setup FTP permission via winscp i get the error /var/www/phpinfo.php: Operation not permitted. ans so on for other files present there..

View 3 Replies View Related

Programming :: Phpinfo Display_errors Not Set To On After Value Set To On In Php.ini

Mar 25, 2011

I had set the display_errors to On in the php.ini. But the phpinfo() still show it as off. The php.ini file that I wrote to was the one shown in phpinfo(), namely /etc/php.ini. The setting couldn't be reflected even after a reboot. I suspected that the /etc/php.ini was not the one get run so I rename it to php2.ini and reboot. phpinfo() still working and displayed the loaded php.ini file is /etc/php.ini.

View 4 Replies View Related

Ubuntu Networking :: Localhost Can Read Phpinfo() But Not Index.php?

Jan 7, 2011

Installed apache2 and php5, got the message "It works!" and phpinfo() displays the info page from withing the my folder. But when i put my index.php and rest of the files in www/mysite/ I only get a blank page displaying nothing, as if my php scripts wont parse. If I create a plain html "hello world" doc it displays that.. I've used this guide before [URL] and got it to work last time some months ago, but this time around after clean ubuntu reinstall it's showing nothing, remember I struggled with some permission things last time doing sudo chmod a+rwx /var/www/* and same for subfolders css and images. but now nothing happens, no errors or nothing. I didnt have to do enything else last time, no php.ini or nothing, it just worked, after I set permissions to get css and images to display correctly. Tried to put my files in www alone but dont work either (also cannot delete the default index.html in the www folder). Tried to restart apache2 and the computer, but no luck. My site also works online from other servers, so this is a local problem.

View 3 Replies View Related

Ubuntu Servers :: Phpinfo Didn't Show Configure Options?

Oct 22, 2010

I created a file to show phpinfo. But configure command is missing from the list.

Check some other servers, confiugure command is there.

Is this an ubuntu issue?

View 1 Replies View Related

Ubuntu Multimedia :: Flash Doesn't Work And Removing / Re-installing Package Doesn't Fix It

Sep 1, 2011

I'm using 'Adobe Flash plug-in 10.3.183.4ubuntu0.11.04.1', installed from the package repos on kubuntu, and since the last update, it has broken all flash functionality in both rekonq and firefox.I have tried removing and reinstalling the package multiple times, both with and without the browsers open. Can anyone suggest a way to restoring functionality?

View 7 Replies View Related

Server :: Phpinfo Stops On Showing Date Module Information?

Feb 7, 2011

I have an apache2 php5 on an ubuntu 10.04 it was working fine except today and does not open web site now. I tried to open phpinfo.php but it takes long time and at the end it loads php informations just until date module. I installed php5-cli to find out what does not work properly then I used:

Quote:

# php5 -i
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so' - /usr/lib/php5/20090626+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib

[Code]....

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

Ubuntu Multimedia :: Skype - Pulseaudio - Sound Output Or Input Does Not Work At All Doesn't Work

Sep 11, 2010

When I installed my 64 bit system of Ubuntu 10.04 the sound worked very well and I were very happy. The problem started however when I installed Skype which uses pulseaudio. As soon as I start skype (or any other application that uses pulse, HoN for example) the applications sound output or input does not work at all. If I have pulseaudio started in some way, applications that I suppose do not use it like spotify or flash player stops to produce sounds. And when I type "pulseaudio" in the terminal it gives me this:

[Code]...

View 3 Replies View Related

Software :: When View Browser (localhost/test.php) It Just Shows The Code Itself Instead Of Displaying The Phpinfo Page

Dec 19, 2010

I'm using fedora 14. And I have installed apache, PHP and MySQL. I tried testing PHP with phpinfo(). But when I view it view my browser (localhost/test.php) it just shows the code itself instead of displaying the phpinfo page. This is the content of my test.php page.

<?php
phpinfo();
?>

View 3 Replies View Related

Ubuntu :: Compiz Doesn't Work - How To Make It Work

Jul 29, 2010

I'm having trouble getting compiz to work on my Laptop. It worked for a while and then I turned on Shift Switcher and a message popped up saying..."The new value for the button binding for the action Terminate in plugin Shift Switcher conflicts with the action Zoom Window of the Scale Addons plugin. Do you wish to disable Zoom Window in the Scale Addons plugin?" I was given the option of Set Terminate anyway, Don't set Terminate, and Disable Zoom Window. I clicked Don't set Terminate and ever since the only thing that works in compiz are the bindings in the general options. I've used synaptic to completely remove and then reinstall compiz but the problem persist. Something else weird, all of the changes I made are still there, even after complete removal, but they don't work?

View 2 Replies View Related

Ubuntu :: Hibernate Doesn't Work - How To Make It Work

Oct 29, 2010

When I try to hibernate, the computer just goes to a blank, black screen and doesn't turn off. I have to hold the power button to get it to shut down, and when I turn it back on none of the programs running before hibernation have been saved.

View 8 Replies View Related

Ubuntu :: Unity Doesn't Work - How To Make It Work

Feb 16, 2011

I just recently (about an hour ago) installed Ubuntu Netbook edition on my old laptop, and I was greeted with the message, that unity could not be run due to some sort of missing driver...fair enough, I was then greeted with the default Ubuntu desktop, I installed all my needed software (wine, google chrome) and installed the missing display drivers. I then rebooted the system, and once again I am stuck with the default desktop, and not the Unity interface. I checked the software center, and it says Unity IS in fact installed.. And yet I cannot make it appear. So now I ask you Ubuntu veterans. How do I make it work?

P.S. I wiped the system of windows, and the computer is an old HP Pavilion DV6000

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

General :: Mail() Function Doesn't Work With HOTMAIL But Its Work With Others?

Apr 27, 2011

i have tried mail function in php to send email from the local host its work for yahoo but not with HOTMAIL whay ! actually i tried to figure it out,

View 1 Replies View Related

Debian :: Installed Apache - Doesn't Recognizes Folder?

Jun 23, 2010

I have just installed a Virtual Machine with Debian. My goal is to set up a LAMP server to work with. I have installed Apache, PHP and MySQL, everything without any problems and following WIKIs.

Now, I have a problem, because I'm trying to work with folder within my /var/www folder. If I use the address http://192.168.1.103 in my Host computer's browser, I can see the "It works!" from Apache without a problem.

Now, if I try to see: http://192.168.1.103/test/ I can't see the index.html that is within the folder test that is on the path: /var/www/test Why is this? What do I need to do and keep this simple?

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

Fedora Servers :: Apache Doesn't Resolve Hosts?

Nov 2, 2009

Recently my home PC crashed and I had to re-installed it. I put a "clean" install of Fedora11, then copied my /home directory and some other stuff over from the old installation.I have a couple of PHP scripts I wrote, and one of them stopped working. It uses cURL, and when I enable error tracking I get:cURL error number:6cURL errorouldn't resolve host 'www.host.com'I started digging around and I found out Apache doesn't resolve anything at all, so it's not only a cURL problem. For example,

$ip = gethostbyname('host.com');
echo $ip; die();

returns "host.com" and not an IP address.My best guess so far is that Apache has no access to the DNS service (from command line and in browsers everything resolves). had a suspicion it's a SElinux issue and disabled it, but that didn't change anything.I found some old forum posts mentioning problems with chroot-ed Apache, but I haven't done anything to mine and in any case couldn't figure out what the problem was, or the solution, so I'm stuck.

View 7 Replies View Related

Programming :: Restart Apache If File Doesn't Exists?

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache serverMore specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restartSo I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:run a crond every minute to do:

rm -Rf /root/testarea/*
wget http://ip/work.gif
then check if work.gif exists.

[code]...

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

CentOS 5 Server :: Need To Restart Apache If File Doesn't Exists

Jun 6, 2009

I'm running CentOS 5.3 64bit and from the get go I've had problems with the Apache server.More specifically, on what seems to be a random occurance, the apache server stops to respond.The process is still running, but nothing happens with it, and it is not responding.The /var/logs/httpd/error_log is blank for the occurance and only shows an entry after I give it a restart.So I'm a bit confused about what is going on.With that said, I need to make sure the httpd is working one way or another.I don't want to force a restart service every 10 minutes as this seems a bit too much.However, I do want to have the following:

run a crond every minute to do:If it fails, then do service httpd restart (and log the failure and restart to a file and email me a message).Any pointers on how to do that?It ain't the pretty solution, but it will save me from a very angry user until I'll figure what is the real cause for this failure.

View 5 Replies View Related

CentOS 5 Server :: Webmin Doesn't Show Apache Modules?

Apr 26, 2010

this might not be a Centos related issue, but since I'm using Centos I guess it doesn't hurt to ask; I've used Ubuntu before and haven't encountered this. So, I've just installed Centos and Webmin and now I'm trying to configure the server. Problem is that on the Apache configuration page I don't have the option (should be there) to configure the Apache modules. I've attached a file to show where the modules option should (as before) appeared.

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







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