QGIS Server Not working - apache

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"

Related

WHM/Cpanel (Centos 6) Installing bugzilla

I have installed bugzilla on my whm/cpanel server but it's redirecting me to 500 error.
My error log contains
[Wed Aug 03 00:11:09.525772 2016] [cgi:error] [pid 8054] [client :32814] AH01215: BEGIN failed--compilation aborted at index.cgi line 19.: index.cgi
[Wed Aug 03 00:11:09.525716 2016] [cgi:error] [pid 8054] [client :32814] AH01215: Compilation failed in require at index.cgi line 19.: index.cgi
[Wed Aug 03 00:11:09.525655 2016] [cgi:error] [pid 8054] [client :32814] AH01215: BEGIN failed--compilation aborted at Bugzilla.pm line 19.: index.cgi
[Wed Aug 03 00:11:09.525538 2016] [cgi:error] [pid 8054] [client :32814] AH01215: Can't locate CGI/Carp.pm in #INC (#INC contains: . lib/x86_64-linux-thread-multi lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Bugzilla.pm line 16.: index.cgi
I didn't find solution for this by googling. Please anyone help me.
Thanks,
Lanka.
24x7servermanagement server should have some problem with compatibility or not installed all required modules. Is your bugzilla installed successfully after switching server to AWS?
You can find complete installation guide for bugzilla here..
If you still receive error, provide us error message logs details from new server.
I can see there are some library missing on your server and due to that you are getting all these error. Please check your library status with following command.
./checksetup.pl --check-modules

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..

drupal site on working on apache

my apache2 error.log shows:
[Sun Nov 10 18:40:46 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.8 with
Suhosin-Patch configured -- resuming normal operations
[Sun Nov 10 18:41:13 2013] [error] [client 127.0.0.1] File does not exist:
/home/vishal/Dropbox/sites/pw/js, referer: http://pw/
[Sun Nov 10 18:41:22 2013] [error] [client 127.0.0.1] File does not exist:
/home/vishal/Dropbox/sites/pw/node, referer: http://pw/
[Sun Nov 10 18:43:27 2013] [notice] caught SIGTERM, shutting down
[Sun Nov 10 18:43:28 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.8 with
Suhosin-Patch configured -- resuming normal operations
[Sun Nov 10 18:46:47 2013] [error] [client 127.0.0.1] File does not exist:
/home/vishal/Dropbox/sites/pw/js, referer: http://pw/
[Sun Nov 10 18:46:50 2013] [error] [client 127.0.0.1] File does not exist:
/home/vishal/Dropbox/sites/pw/user, referer: http://pw/
Here is my details of the default http://pastebin.com/sWFDN5Yr
the confusing thing is that other sites work but only the vhost for pw
gives error. The main page comes up however the inner pages does not come up.
Thank you,
Vishal
its most likely a problem with ur clean url.
type http://yoursite?q=user/login and see if ur login page comes up, if so its a issue with ur vhost entry is not set to allow redirect and clean urls

deploy issue on ckan 2.0 over apache2

I have the following problem after try to deploy ckan 2.0 over apache2.
here is the log from apache:
tail -f /var/log/apache2/demo.ckan.net.error.log
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] return context.create()
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 710, in create
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] return self.object_type.invoke(self)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] return fix_call(context.object, context.global_conf, **context.local_conf)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] File "/home/ubuntu-ckan-last/pyenv/lib/python2.6/site-packages/paste/deploy/util.py", line 56, in fix_call
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] val = callable(*args, **kw)
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] File "/home/ubuntu-ckan-last/pyenv/src/ckan/ckan/config/middleware.py", line 104, in make_app
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] who_parser.parse(open(app_conf['who.config_file']))
[Tue Apr 02 10:34:34 2013] [error] [client 127.0.0.1] KeyError: 'who.config_file'
i followed the latest documentation on how to deploy a ckan 2.1a instance over apache or nginx...
thanks !
The error suggests it cannot find the who.config_file bit of your CKAN config file (e.g. std.ini):
[app:main]
...
who.config_file = %(here)s/who.ini
However this is the first point in the code which accesses this config file, so it suggests the something more fundamental is up with the config file.
Check your wsgi script file contains the correct path to your config file. The line looks like this:
config_file = '/usr/local/demo.ckan.net/pyenv/src/ckan/development.ini'

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.