500 Internal Server Error when trying to open webgrind - apache

I am using linux. I have installed webgrind for xdebug profiling of php code. I have made the proper changes in the httpd.conf etc.
when i am trying to connect from browser it says 500 Internal Server Error
I cant figure it out.
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/share/webapps/webgrind/index.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in Unknown on line 0
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
[Tue Feb 18 22:07:02 2014] [error] [client ::1] PHP Fatal error: Unknown: Failed opening required '/usr/share/webapps/webgrind/index.php' (include_path='.:/usr/share/pear') in Unknown on line 0

Related

NSS Apache SSL Incorrect Password

I'm setting up NSS for my Apache server but I'm running into an error. I feel like this is a really easy fix that I'm overlooking.
Here's my Apache error log:
[Tue Mar 21 16:09:13 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:09:13 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:09:13 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:14:22 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:14:22 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:14:22 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:24:25 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:24:25 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:24:25 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
[Tue Mar 21 16:29:00 2017] [error] Password for slot internal is incorrect.
[Tue Mar 21 16:29:00 2017] [error] NSS initialization failed. Certificate database: /etc/apache2/nssdb/.
[Tue Mar 21 16:29:00 2017] [error] SSL Library Error: -8177 The security password entered is incorrect
I checked apachectl -t, here is the output:
[Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_module is already loaded, skipping
[Tue Mar 21 17:16:23 2017] [warn] module proxy_http_module is already loaded, skipping
Syntax error on line 1 of /etc/apache2/conf.d/NSSPin.conf:
Invalid command 'token:password', perhaps misspelled or defined by a module not included in the server configuration
Here is my nss.conf file:
NSSPassPhraseDialog file:/etc/apache2/conf.d/NSSPin.txt
NSSPassPhraseHelper /usr/sbin/nss_pcache
I've tried multiple combinations of NSSPassPhraseDialog with file, exec, "password", password. In my /etc/apache2/conf.d/NSSPin.txt file (the file that NSSPassPhraseDialog is being linked to) I've tried "password", password, toke:password, token:"password", internal:password, internal:"password". I'm not really sure what else to do.

proxy: error reading status line from remote server

I got this kind of Apache Proxy error in SSL_ERROR_LOG file.
[Mon Jul 18 11:03:52 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:03:52 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
[Mon Jul 18 11:12:53 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:12:53 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
[Mon Jul 18 11:15:53 2016] [error] [client [IPAddress]] (70007)The timeout specified has expired: proxy: error reading status line from remote server [serverIP]
[Mon Jul 18 11:15:53 2016] [error] [client [IPAddress]] proxy: Error reading from remote server returned by /project/webservice
Any idea for this kind of error? Client have to waits 3 minutes for a response before disconnecting forcibly. This error occurred after ssl certificate changed. We have updated certificate with SHA-1 to SHA-2 which is compatible with all browser.
Various timeouts have been observed and logged.
Check if SELinux is installed, if so then enable httpd using the below command -
sudo setsebool -P httpd_can_network_connect 1

QGIS Server Not working

alright guys I have been stuck on this for the last 2,3 days I have searched online for a solution, I have tried re-installing QGIS Server. But I can't get the Digital Maps to Load.
I am using Windows Server 2008 R2.
I install packages using the osgeo4w-setup file.
After installing when I browse to localhost:9090/ I can see the following.
Then the next step when I browse to:
http://localhost:9090/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&map=d:/dgmps/GIS.qgs
I get following error:
In the Apache Error Log files I am getting this:
First I was getting this error:
[Sat Mar 07 00:25:40 2015] [warn] [client 127.0.0.1] (OS 109)The pipe has been ended. : mod_fcgid: get overlap result error
[Sat Mar 07 00:25:40 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe
So I followed all links 1 , 2 I could find online, after that I was getting the following error:
The Error Log in Apache Error Log is:
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Premature end of script headers: qgis_mapserv.fcgi.exe
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment variable.\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] QFSFileEngine::open: No file name specified\r
[Sat Mar 07 23:24:18 2015] [error] [client 127.0.0.1] ImportError: No module named site\r
Anybody know the solution to this?
A bit late for an answer, but it might still help someone:
copy all .dll from osgeo4w/bin to osgeo4w/apps/qgis/bin
copy all .py from osgeo4w/apps/python/Lib to osgeo4w/apps/qgis/bin
copy folder "encodings" from osgeo4w/apps/python/Lib to osgeo4w/apps/qgis/bin
amend the httpd.conf file as follows (I'm using the 64 bit, so be careful when copy-pasting):
DefaultInitEnv PATH "C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\qgis\bin;C:\OSGeo4W64\apps\grass\grass-#grassversion#\bin;C:\OSGeo4W64\apps\grass\grass-#grassversion#\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
DefaultInitEnv QGIS_PREFIX_PATH "C:\OSGeo4W64\apps\qgis"
DefaultInitEnv QT_PLUGIN_PATH "C:\OSGeo4W64\apps\qgis\qtplugins;C:\OSGeo4W64\apps\qt4\plugins"

mod_tile rendere is not working with apache on openSUSE

i want to run tile server
i configured by following this Link
When i try to access the http://myserver.domain/osm_tiles/0/0/0.png i'm getting the response as
Object not found!
When i see the apache log it says socket file is missing
tile_state: determined state of default 0 0 0 on store 7f05ba987d70: Tile size: -1, expired: 1 created: 0
[Thu Nov 06 16:15:59.396965 2014] [tile:debug] [pid 6334] ./src/mod_tile.c(166): [client 192.168.1.180:52068] Connecting to renderd on Unix socket /var/run/renderd/renderd.sock
[Thu Nov 06 16:15:59.397003 2014] [tile:warn] [pid 6334] [client 192.168.1.180:52068] socket connect failed for: /var/run/renderd/renderd.sock with reason: No such file or directory
[Thu Nov 06 16:15:59.397007 2014] [tile:notice] [pid 6334] [client 192.168.1.180:52068] Failed to connect to renderer
[Thu Nov 06 16:15:59.397010 2014] [tile:debug] [pid 6334] ./src/mod_tile.c(960): [client 192.168.1.180:52068] tile_storage_hook: Missing tile was not rendered in time. Returning File Not Found
What went wrong in the configuration..

OS X Apache Error Log Entries - crls (Macports to Homebrew?)

Yesterday I moved my local development environment from MacPorts over to Homebrew, and everything is running great. However I'm getting some odd apache log errors I've not come across before and wondered if anyone can help diagnose.
On tail'ing the error_log, they seem to happen every 10-15 seconds when general web browsing in chrome:
[Thu Apr 26 14:19:41 2012] [error] [client 127.0.0.1] File does not exist: /Users/username/Sites/pca3.crl
[Thu Apr 26 14:20:04 2012] [error] [client 127.0.0.1] File does not exist: /Users/username/Sites/ThawtePremiumServerCA.crl
[Thu Apr 26 14:22:02 2012] [error] [client 127.0.0.1] File does not exist: /Users/username/Sites/crls
[Thu Apr 26 14:23:48 2012] [error] [client 127.0.0.1] File does not exist: /Users/username/Sites/SVRSecureG3.cer
[Thu Apr 26 14:23:49 2012] [error] [client 127.0.0.1] File does not exist: /Users/username/Sites/SVRSecureG3.crl
Thanks for any input.