VPS Ubuntu 14.04LTS apache2.4 python cgi

nitin chandra nitinchandra1 at gmail.com
Sun May 1 16:48:50 UTC 2016


Thank you for replying.

1. python cgi script is not rendering.

2. Once the page loads, it does not update itself with new content.

in the

http://13x.2xx.91.2xx/vimal/public_html/passtms/public/index.html

OR when I enter

http://13x.2xx.91.2xx/vimal/public_html/passtms/index.html

It will show "Test" ... but if I change "Test" TO "Hello" ... the
change does not show, it will still show "Test".
----------------------------------------------------------------------------------------------------------
root at Ubuntu-1404-trusty-64-minimal ~ # tail /var/log/apache2/error.log

[Sun May 01 15:35:59.696358 2016] [mpm_event:notice] [pid 25242:tid
140649208219520] AH00489: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9
mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun May 01 15:35:59.696454 2016] [core:notice] [pid 25242:tid
140649208219520] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 01 15:37:47.220215 2016] [mpm_event:notice] [pid 25242:tid
140649208219520] AH00491: caught SIGTERM, shutting down
[Sun May 01 15:37:47.333221 2016] [mpm_event:notice] [pid 25362:tid
139779072911232] AH00489: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9
mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun May 01 15:37:47.333370 2016] [core:notice] [pid 25362:tid
139779072911232] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 01 15:38:57.513620 2016] [mpm_event:notice] [pid 25362:tid
139779072911232] AH00491: caught SIGTERM, shutting down
[Sun May 01 15:38:58.610712 2016] [mpm_event:notice] [pid 25473:tid
139855647356800] AH00489: Apache/2.4.7 (Ubuntu) mod_fcgid/2.3.9
mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun May 01 15:38:58.610864 2016] [core:notice] [pid 25473:tid
139855647356800] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 01 17:00:51.353724 2016] [cgi:error] [pid 25478:tid
139855500363520] [client 115.231.222.14:1200] script not found or
unable to stat: /home/*
[Sun May 01 19:06:55.586180 2016] [cgi:error] [pid 25480:tid
139855533967104] [client 115.231.222.14:2483] script not found or
unable to stat: /home/*
root at Ubuntu-1404-trusty-64-minimal ~ #
---------------------------------------------------------------------------------------------------------------

root at Ubuntu-1404-trusty-64-minimal ~ # cat
/etc/apache2/conf-available/serve-cgi-bin.conf

<IfModule mod_alias.c>
<IfModule mod_cgi.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>

<IfModule mod_cgid.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>

<IfDefine ENABLE_USR_LIB_CGI_BIN>
ScriptAlias /cgi-bin/ /home/*/public_html/
<Directory "/home/*/public_html">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch (should this match
with VH conf)
Require all granted
</Directory>
</IfDefine>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
root at Ubuntu-1404-trusty-64-minimal ~ #
---------------------------------------------------------------------------

root at Ubuntu-1404-trusty-64-minimal ~ # cat
/etc/apache2/mods-enabled/userdir.conf

<IfModule mod_userdir.c>
UserDir /home/*/public_html
UserDir disabled root

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Require all granted
</Limit>
<LimitExcept GET POST OPTIONS>
Require all denied
</LimitExcept>
</Directory>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
root at Ubuntu-1404-trusty-64-minimal ~ #

On 1 May 2016 at 16:13, Tony Baechler <bats at batsupport.com> wrote:
> On 4/30/2016 12:32 PM, nitin chandra wrote:
>>
>> I am getting a 403 Forbidden error on the browser. And I have been
>> trying to overcome this issue for the last one week. Project is also
>> getting delayed.
>
>
>
> What is the output of this command?
>
> sudo tail /var/log/apache2/error.log
>
> Without the exact Apache error, it's impossible to help you.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list