Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cgi]

The tag has no usage guidance.

0
votes
0answers
20 views

How to set up Dudle on Xubuntu server?

Been using Linux for a few months and been trying to learn more about it. I've configured a Thinkpad T43 with Xubuntu 18.04.1 into a server. I can successfully access it through PuTTy on my main ...
0
votes
1answer
18 views

Can I give the default user that runs Perl scripts from cgi-bin different permisions?

The default user that Perl scripts run from browsers is www-data. My scripts need permission to read/write/delete files in other directories. All these directories are created within the /home ...
0
votes
1answer
27 views

Change www directory mode only from web application

I am using Apache web server in ubuntu, Linux. I am writing Web Application using CGI. There are the paths of my works. WWW Dir -> /var/myproj/www/ Data Dir -> /var/myproj/data/ App Dir -> /...
1
vote
1answer
489 views

CGI script won't run on Apache2

I'm running Apache2 on ubuntu 16.04,just installed it all fresh, and trying to run a CGI script on my site! I'm aware apache needs to be configured to run it. I've put my cgi-bin directory in var/www ...
0
votes
0answers
43 views

Linux Web Service Permissions

I am implementing my simple webservice in linux using Apache, CGI(C++) and Flat File(Data). I kept my WWW location path in /usr/share/www/ CGI location path in /usr/lib/cgi-bin/ ...
0
votes
0answers
667 views

(104)Connection reset by peer mod_fcgid: error reading data from FastCGI server

My Joomla website is down, the error log says [Wed Nov 22 02:19:32.501560 2017] [fcgid:warn] [pid 4031] (104)Connection reset by peer: [client xx.xx.xx.xx:56029] mod_fcgid: error reading data from ...
1
vote
1answer
1k views

Chmod 777 all the cgi files getting uploaded

In my ubuntu i have configured cgi in /var/www/html/webcgi so when files uploaded on that webcgi its not get executed , it shows me internal server error so i need to chmod. As webcgi is chowned www-...
0
votes
1answer
164 views

unable to work with cgi on ubuntu16.04 debian

I'm a newbie and trying to create the following simple cgi script and stored it in /usr/lib/cgi-bin/hello.py: #!/usr/bin/python print "Content-type: text/html" print print "<html>" print "&...
1
vote
1answer
168 views

Apache2 Error when restarting

when i restart my apache2 i got this error's message Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for ...
2
votes
1answer
2k views

CGI scripts on Apache2 gives 403 forbidden when the CGI are in a linked folder

I am running Ubuntu 16.04 as a virtual machine. I have Apache2 2.4.18 installed. I have a folder with cgi scripts that I want to use. To do that I placed a symlink to that folder in /usr/lib/cgi-bin. ...
1
vote
0answers
55 views

Ubuntu 14.04/Serverpilot running CGI Scripts

Got an odd Serverpilot query. My client wants FTP access to a subfolder on the site - loathe to let them have full access so created a user with access to /home/FTPUSER and symlink to this from my /...
1
vote
1answer
9k views

How to Configure CGI in Ubuntu?

I am very new to Apache in Ubuntu. I recently installed Apache2 on Ubuntu and I am trying to configure CGI. I added the following lines in apache2.conf file: ScriptAlias /cgi-bin/ /home/router/cgi-...
0
votes
1answer
148 views

CGI does not execute the program [duplicate]

Newbie developer on Ubuntu I use the Eiffel language I tried a simple example of the EiffelWeb library based on cgi-bin I added to apache2.conf the following lines <Directory /usr/lib/cgi-bin/&...
-1
votes
1answer
448 views

Why do I see cgi source code on my webserver instead of its output?

In case 1, I cannot see the cgi script executed output in browser and see source code instead. However, in case 2, with similar configuration i can see the cgi script executed output in browser. Case ...
2
votes
1answer
1k views

How to run `chmod` command form script with sudo permissions?

I want the change the permissions of /dev/ttyACM0 from a script. I have tried this command: su -c "chmod -R 777 /dev/ttyACM*" -m "$user". When I execute the script it is asking for a password. I ...
0
votes
1answer
1k views

Apache2.4.10 on Ubuntu returning Internal server error on running CGI scripts

I am running Apache/2.4.10 (Ubuntu) and I was trying to run CGI scripts with the following configurations. /etc/apache2/apache2.conf With the following Mutex file:${APACHE_LOCK_DIR} default ...
2
votes
2answers
6k views

Perl .pl file downloads instead of being executed

I'm trying to get OTRS 4.0 working on Ubuntu 14.04. I've followed all instructions to install from source. When I open the site (localhost/otrs/index.pl), an empty .pl-file is served for download. ...
1
vote
1answer
1k views

Running Binary cgi on apache2

How do I get apache2 to run binaries as cgi. I have a test page, that when I access it, it returns the error code 500 Internal Server Error, and there is an "End of script output before headers" ...
1
vote
1answer
1k views

Apache configuration problems? Why Perl scripts can't be executed - browser download scripts

I've got wrong apache configuration. My script don't want to be executed and browser trying to download it as a file. <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName president.com ...
2
votes
1answer
3k views

http request to cgi python script successful, but the script doesn't seem to run [closed]

I have configured cgi scripts for my apache2 web server. Here is what I want to do: Client uploads the image to the server. (this already works) On success, I want to execute the python script to ...
3
votes
1answer
3k views

Apache not rendering Bugzilla cgi

I've just tried to install Bugzilla on my machine for test purposes. I'm going to evaluate the Bugzilla REST API for a company i'm currently interning at. The problem is that when I go to http://...
1
vote
1answer
8k views

What modules do I need to run perl CGI with apache?

I have some CGI script using perl and I would like to make them work on Apache. I have the following installed : $ dpkg -l | grep perl | grep apach ii libapache-session-perl 1.90-1 ...
1
vote
0answers
807 views

Ubuntu 13.10 install php-fpm with apache 2.4

I tried multiple tutorials on how to install php-fpm (cgi) with apache2. None of them worked with 13.10. I even installed ubuntu completly new after each one. This is one for example: How to configure ...
0
votes
1answer
519 views

Where do I get PHP-CGI binaries for Ubuntu?

I want to set up an Nginx or Apache server which is PHP-capable. In order to use multiple PHP versions in parallel I need to use CGI. I can set up the CGI stuff, but where do I get PHP binaries from? ...
1
vote
1answer
8k views

Error in apache configuration

Initially my PHP was running well and after that when I installed perl CGI modules in order to run my CGI programs, there was problem. From the local host, I am not able to compile my PhP files nor ...
2
votes
1answer
1k views

is this malcious traffic?

I was reviewing my server logs, when I came across several thousand this gem: from a multiple IP addresses: My question is what is all this junk? what is this trying to execute? I am pretty sure that ...
0
votes
1answer
843 views

How do I enable CGI execution in the root directory of Apache

I have built an Ubuntu server and need to execute CGI scripts in the root directory. I keep finding tutorials on how to execute them from cgi-bin but that isn't desired in my situation. I've installed ...
0
votes
1answer
494 views

Are there any security problems to running an http server using Python's built in module?

I have a presentation to make to a few people. It's interactive with python CGI scripts. Are there any security problems with using python3 -m http.server --cgi 8000? Each person will be using their ...
2
votes
2answers
11k views

Smokeping web front end on Ubuntu 13.10

I have upgraded a PC from Ubuntu Desktop 12.04 to 13.10. On 12.04 the URL to Smokeping web front end used to be http://localhost/smokeping/smokeping.cgi. After upgrading to 13.10 this does not work ...
1
vote
1answer
5k views

index.pl getting downloaded instead of executing on Ubuntu 12.04 and Apache 2.2.22

I have installed Apache 2.2.22 on Ubuntu 12.04. But in browser when I type localhost, it gives index.pl file to download instead of executing it. What I tried: 1. chmod 755 index.pl 2. Adding line ...
2
votes
1answer
2k views

Unable to install a CGI script on Ubuntu

I'm trying to install CGIProxy on Ubuntu. http://www.jmarshall.com/tools/cgiproxy/install.html#install Basically it's a single "nph-proxy.cgi" file which I placed in my /var/www folder. I used ...
0
votes
2answers
153 views

Perl: problem with locales

I'm trying to install CGIProxy on my Ubuntu server and according to the instructions I have to: Copy the file nph-proxy.cgi onto your Web server somewhere, but not at the top Web directory, or else ...
0
votes
1answer
4k views

How can I install php5-fpm and apache and configure the apache vhost?

I don't find a valid a description how can I install configure the apache vhost correctly. Can everybody help me? <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName webpage....
2
votes
2answers
6k views

How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins [duplicate]

I am trying to configure apache2 with cgi (python). For that, I have to change permissions of some folders and files but I am getting sudo fatal errors every time I try to change the permission of a ...
0
votes
1answer
4k views

run sh script from browser

For a tiny task, I wish to execute a .sh script from within browser. I have kept the .sh script in "/usr/lib/cgi-bin" directory. The .sh file contains following code. #!/bin/bash echo "Content-type:...
2
votes
2answers
4k views

Internal Server Error 500 Bugzilla installation

I followed this tutorial in installing Bugzilla, I didn't encounter any problem not until I hit localhost/bugzilla in the URL. My sites-available/default config is as follows: #ScriptAlias /cgi-...
0
votes
1answer
577 views

Local cgi server

I'm doing some python cgi programming and was wondering if there was a script for running cgi instead of having to install an entire LAMP server for doing it. I've been using CGIHTTPServer but it ...
6
votes
3answers
6k views

Which free software can you use to create rotating 3D Spacefill models of molecules in .gif format?

An example of what I'm talking about is this animation from Wikipedia. I am running 32 bit 12.10 if it is relevant. Please describe step-by-step, with pictures (screenshots with the appropriate areas (...
5
votes
2answers
4k views

how to install c++ fastcgi development library?

I can't seem to find anything on this. I know apt-get install, but I don't know the name of the package for the standard c++ fastcgi development library. What is it?
3
votes
1answer
12k views

libapache2-mod-fastcgi “not available”

I've been here http://www.howtoforge.com/using-php5-fpm-with-apache2-on-ubuntu-12.10 and here http://www.versatilewebsolutions.com/blog/2012/11/installing-apache-2-with-php-fastcgi-on-ubuntu-12-10....
0
votes
1answer
845 views

Basic instructions for running a CGI script inside Apache on Ubuntu 12.04?

I try to run a cgi-script on my webserver (Ubuntu 12.04). But always when I type the URL in my Browser I get an Error Message "404 Not Found" I tried to install the CGI-Mod for Apache2 but all the ...
0
votes
1answer
416 views

Cannot run cgi as httpd.conf is empty!

For help I checked out these links: This This and This I have an empty httpd.conf file but apache2.conf is not and the formats and tags in apache2.conf are similar to what httpd.conf has in windows ...
3
votes
3answers
8k views

nagios on virtualhost cgi problems

I have been moving my nagios on apaches virtualhost and adding the following configuration file <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName nagios.example.com ...