Questions tagged [cgi]

This tag apparently represents the cgi-bin. A CGI-bin is a folder used to house scripts that will interact with a Web browser to provide functionality for a Web page or website. Common Gateway Interface (CGI) is a resource for accommodating the use of scripts in Web design.

Filter by
Sorted by
Tagged with
1 vote
1 answer
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....
0 votes
0 answers
56 views

apache2.4.52(ubuntu)configuring cgi without executing scripts, the browser directly presents the code

Ubuntu 11.4.0-1ubuntu1~22.04 apache 2.4.52 safri chrome conf-enabled/serve-cgi-bin.conf ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/ <Directory "/var/www/html/cgi-bin"> ...
8 votes
3 answers
10k 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 (...
2 votes
2 answers
3k 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" ...
0 votes
1 answer
226 views

Failing to connect apache2 with ScriptAlias

I'm trying to set up a ScriptAlias on an apache2 server, but when I try to connect to it using the alias, I get a Forbidden error: This is my /etc/apache2/apache.conf: cgi.load is enabled on /etc/...
0 votes
0 answers
201 views

GCI (and LC server) not working Ubuntu server 20.04 on Raspberry 4 8GB

it seems CGI is not working, and if I'm correct it should work out of the box with Ubuntu server 20.04 64bits. I installed Ubuntu following this tut: how to install Ubuntu server 20.04 on Raspberry ...
2 votes
1 answer
423 views

my index.cgi does not run instead it only prints its content

I want to run an index.cgi in my front end directory rather than an index.html. However the script does not run and only prints out the script in text. I am on running apache2 on ubuntu 18.04. What ...
0 votes
1 answer
615 views

What Steps are needed to set up Apache2 to utilize multiple “cgi-bin”

Currently My /etc/apache2/sites-enabled/000-default.conf looks like this: DocumentRoot /var/www/htm ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> Options +...
1 vote
0 answers
319 views

How to use suexec to execute commands as a different user in cgi

I'm implementing a login page with cgi. I was able to retrieve the login and password correctly, yet I am unsure of how to change to that user. I am using httpd apache. After researching possible ways ...
2 votes
0 answers
2k views

How to run CGI file in docker

.yml apache: build: apache/ links: - php:phpfpm devices: - "/dev/ttyUSB0:/dev/ttyUSB0" volumes: - ./public:/var/www - ./apache/hosts:/etc/apache2/sites-...
0 votes
1 answer
156 views

Displaying dynamic created jpg inside an html apache

I have an image created by a CGI script.. if you call the script directly it displays quite happily with. Content-type: image/jpeg However I need to embed this inside a page, and no matter what I ...
3 votes
3 answers
9k 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 ...
3 votes
2 answers
16k 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
1 answer
268 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 ...
2 votes
2 answers
10k 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. ...
0 votes
1 answer
77 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
1 answer
2k 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
0 answers
344 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
1 answer
664 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 "&...
5 votes
2 answers
6k 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?
1 vote
1 answer
3k 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
2 answers
184 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 ...
1 vote
1 answer
275 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 ...
1 vote
1 answer
11k 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
2 answers
8k 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 ...
2 votes
1 answer
4k 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
0 answers
73 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 /...
4 votes
1 answer
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://...
0 votes
1 answer
288 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/&...
0 votes
1 answer
1k 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
1 answer
3k 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
1 answer
2k 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
1 answer
4k 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 ...
2 votes
2 answers
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
1 answer
2k 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
1 answer
10k 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
0 answers
830 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
1 answer
962 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? ...
2 votes
1 answer
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
1 answer
1k 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
1 answer
835 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 ...
1 vote
1 answer
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
1 answer
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
1 answer
7k 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
2 answers
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
1 answer
720 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 ...
3 votes
1 answer
14k 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
1 answer
951 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
1 answer
440 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 ...