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


ADVERTISEMENT

Programming :: Downwards Compatible Is JRE / Software Written In The Current JDK (1.6) Still Work?

May 13, 2010

I noticed there's a new JRE in town, the upgrade 20, I still use the 13. What will the up to 20 do for the software I write? I use openJDK (came with the Fedora I use) to write software, and the JRE to use it in the browser, I needed to see the Java console, hence the need for the Sun JRE...

So: bottomline: if I upgrade to the new JRE - use the alternatives configurator to use that in the browser, will the software written in the current JDK (1.6) still work? Or: is Java downward compatible?

PS : I dont use anything fancy, just RMI, mySQL connectivity and a bit of Swing...

View 1 Replies View Related

Ubuntu :: Apache - Website Maintenance Written In ASP

Apr 29, 2010

I was asked to take over maintenance for a web-site written in .asp. Can Appache handle it installed on linux, as a local test-server?

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

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

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

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

Ubuntu :: Cron Entry - Doesn't Seem To Be Running - Don't See Any File Gets Written To The Log Directory

Oct 4, 2010

I have the following cron entry but it doesn't seem to be running:

Code:

The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:

Code:

I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.

View 9 Replies View Related

Programming :: Is Firefox Written In GTK Or QT

Apr 6, 2011

I wanted to develop a cross platform GUI application.So I thought I would research on Firefox.I havent been able to find out which GUI framework is FireFox using ?Is it GTK, QT, or what ?

View 14 Replies View Related

Programming :: Oscillating Number Script Written In Thyme?

Mar 29, 2010

I'm playing around with a 2D physics game called Phun, which has an "advanced" mode, where you can mess around with scripts. I'm rather new to Thyme, having just started using it a few days ago, lol. I'm just wondering if there's a script I could use to create an oscillating number to use in a spring (in the game) for one of my little builds?

View 13 Replies View Related

Programming :: Regular Expression {x} Doesn't Work?

Sep 2, 2010

I am trying myself on regular expressions. A read on [URL]/regex.htm) that {x} means search X times preceding character. So, why is this :

Code:
wstation~> echo '123456789' | grep [0-9][0-9][0-9]
123456789 # MATCH !! I have 3 numbers in a row.

[code]...

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

Programming :: Bash: String Verifier Doesn't Work

May 26, 2011

I'm currently learning bash programming and am trying to create a program to maintain a list of people. Here is the code so far:

Code:

#!/bin/bash
# Namelist
clear

[code]....

As you can see, I attempted to build in a protective measure to prevent duplicate entries using "if grep -Fxq "$FN $LN" /home/andrea/namelist.txt", FN and LN being first name and last name as you can see in the first read operation. However, this fails to actually work. Demonstrations:

[URL]

It saves the details to the file rather than displaying the error message, or in other words, it doesnt check the file properly.

View 4 Replies View Related

Programming :: Digital Cardreader Doesn't Work Well On System / Fix It?

Oct 14, 2009

This is my first linux related question so be kind!

One thing I find is my digital cardreader doesn't work well on Linux.
I've wrote some code to fix this but when I try to click on visual studio nothing happens it won't install.

View 5 Replies View Related

Programming :: Create Regular Expression - Get English Written Sentence Only Using Preg_match

Aug 7, 2010

From the following code

Code:
<table width="100%" border="0" cellspacing="3" cellpadding="3">
<tr>
<td colspan="2"><p style="width:460px; display:block;">

I wan to get this text only from the whole html code. </p></td> From the above code I want to get that english written sentence only using php preg_match or anything other which makes it possible. I've tried following so far but doesn't work

Code:
preg_match("#<td colspan="2"><p style="width:460px; display:block;">[ .]+</p>#i", $aboveCode, $match);

View 5 Replies View Related

Programming :: C++ - Snprintf - Inside - For - Doesn't Work As Expected. - Int To Char

Aug 30, 2010

I need to convert an int array into a char* array.

I'm using the following code:

Code:

But it returns me

Code:

View 14 Replies View Related

Programming :: While Read Line - Doesn't Work With Ssh In The Loop Body

Mar 26, 2010

I am trying to read the names of hosts from a file and do a ssh to see if processes are all running or not.

Here is the outer loop that is causing problem:

hosts.lst is a text file that has the host names in each line.

The problem is that the loop just breaks after the first run. Somehow while read line becomes invalid when the body of the loop does the ssh and returns.

View 5 Replies View Related

Programming :: HTML::LinkExtor Doesn't Work \ Always Return 0 Links Even If The Status Code Is 200 OK?

Sep 25, 2010

I try to fetch links from a URL using HTML::LinkExtor, but it always return 0 links even if the status code is 200 OK. I am running the following code in Ubuntu 9.04, just curious if the module is too old and its ways of HTTP request is disabled by some platforms.

Code:
#!/usr/bin/perl
use HTML::LinkExtor;

[code]...

View 2 Replies View Related

Programming :: Call Socket Prog Code Written In User Space From Kernel Space?

Jul 14, 2009

How to use execv from kernel space to call a user space program writtenfor socket prog.

I tried to write code for socket in kernel but its not working.

Socket code in kernel is also needed.

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

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

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







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