Quantcast

[pmapper-users] PHP Mapscript Error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[pmapper-users] PHP Mapscript Error

Emmanuel Adegboye
Hi all.

I get this error on a fresh install of pmapper 4.3 on an ubuntu setup:

[11-Apr-2014 22:32:12 Africa/Brazzaville] P.MAPPER: This version of PHP
does support the 'dl()' function. Please enable 'php_mapscript.dll' in your
php.ini
[11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Undefined variable:
map in /var/www/vhosts/map.oauife.edu.ng/httpdocs/incphp/init/init.php on
line 33
[11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Trying to get
property of non-object in /var/www/vhosts/
map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 283
[11-Apr-2014 23:32:12 Europe/Vienna] PHP Fatal error:  Call to a member
function getAllGroupNames() on a non-object in /var/www/vhosts/
map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 289


I'm guessing that the PHP mapscript extension has not been enabled. Am I
right about this? The only challenge is that the server admin is the only
one that has access to this file as I am on a shared server. What are my
options?

Regards,

Emmanuel Adegboye
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] PHP Mapscript Error

Marcello Benigno
Hi Emmanuel,

You need edit your php.ini file (probably in  /etc/php5/apache2/php.ini) and
put the line below:

extension=php_mapscript.so

Then restart apache:

sudo /etc/init.d/apache2 restart

Other settings are required, I suggest you read the instructions in this link
(PHP.ini section):

http://svn.pmapper.net/trac/wiki/DocQuickinstall

Best,


2014-04-11 19:36 GMT-03:00 Emmanuel Adegboye <[hidden email]>:

> Hi all.
>
> I get this error on a fresh install of pmapper 4.3 on an ubuntu setup:
>
> [11-Apr-2014 22:32:12 Africa/Brazzaville] P.MAPPER: This version of PHP
> does support the 'dl()' function. Please enable 'php_mapscript.dll' in your
> php.ini
> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Undefined variable:
> map in /var/www/vhosts/map.oauife.edu.ng/httpdocs/incphp/init/init.php on
> line 33
> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Trying to get
> property of non-object in /var/www/vhosts/
> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 283
> [11-Apr-2014 23:32:12 Europe/Vienna] PHP Fatal error:  Call to a member
> function getAllGroupNames() on a non-object in /var/www/vhosts/
> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 289
>
>
> I'm guessing that the PHP mapscript extension has not been enabled. Am I
> right about this? The only challenge is that the server admin is the only
> one that has access to this file as I am on a shared server. What are my
> options?
>
> Regards,
>
> Emmanuel Adegboye
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> pmapper-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>



--
*Marcello Benigno B. de Barros Filho*
Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
http://profmarcello.blogspot.com
http://about.me/marcello.benigno
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] PHP Mapscript Error

Emmanuel Adegboye
Thanks, I already did but the error persists. I noticed that a
mapscript.ini file already exists with the extension=php_mapscript.so line
in it and its in a directory being scanned for additional configuration
files.

Using phpinfo and with a little scanning of the directories, I realised
that the extension wasn't being loaded because mapscript is in a different
directory from the default php extensions directory.

I've tried to do a symbolic link between both folders but it still does not
work.

I did a standard installation of all mapserver dependencies from the ubuntu
gis repository and I have a separate setup that works without any issues.
On Apr 15, 2014 1:52 PM, "Marcello Benigno" <[hidden email]>
wrote:

> Hi Emmanuel,
>
> You need edit your php.ini file (probably in  /etc/php5/apache2/php.ini) and
> put the line below:
>
> extension=php_mapscript.so
>
> Then restart apache:
>
> sudo /etc/init.d/apache2 restart
>
> Other settings are required, I suggest you read the instructions in this link
> (PHP.ini section):
>
> http://svn.pmapper.net/trac/wiki/DocQuickinstall
>
> Best,
>
>
> 2014-04-11 19:36 GMT-03:00 Emmanuel Adegboye <[hidden email]>:
>
>> Hi all.
>>
>> I get this error on a fresh install of pmapper 4.3 on an ubuntu setup:
>>
>> [11-Apr-2014 22:32:12 Africa/Brazzaville] P.MAPPER: This version of PHP
>> does support the 'dl()' function. Please enable 'php_mapscript.dll' in
>> your
>> php.ini
>> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Undefined variable:
>> map in /var/www/vhosts/map.oauife.edu.ng/httpdocs/incphp/init/init.php on
>> line 33
>> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Trying to get
>> property of non-object in /var/www/vhosts/
>> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 283
>> [11-Apr-2014 23:32:12 Europe/Vienna] PHP Fatal error:  Call to a member
>> function getAllGroupNames() on a non-object in /var/www/vhosts/
>> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 289
>>
>>
>> I'm guessing that the PHP mapscript extension has not been enabled. Am I
>> right about this? The only challenge is that the server admin is the only
>> one that has access to this file as I am on a shared server. What are my
>> options?
>>
>> Regards,
>>
>> Emmanuel Adegboye
>>
>> ------------------------------------------------------------------------------
>> Put Bad Developers to Shame
>> Dominate Development with Jenkins Continuous Integration
>> Continuously Automate Build, Test & Deployment
>> Start a new project now. Try Jenkins in the cloud.
>> http://p.sf.net/sfu/13600_Cloudbees
>> _______________________________________________
>> pmapper-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>
>
>
> --
> *Marcello Benigno B. de Barros Filho*
> Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
> Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
> Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
> http://profmarcello.blogspot.com
> http://about.me/marcello.benigno
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [pmapper-users] PHP Mapscript Error

Emmanuel Adegboye
Hi all.

I discovered that php-mapscript is incompatible with PHP 5.4.2 which is
what the server is running. So I got the admin to install 5.3 instead.

The server uses a Plesk panel for hosting and now I can choose between both
versions of PHP if I want PHP to run either in CGI or FastCGI mode. Problem
is, p.mapper doesn't start in both modes and only runs when I configure PHP
as an Apache module, which only gives me the default PHP 5.4.2 version and
hasn't solved the original issue.

Does anyone know how I can modify p.mapper PHP files so they can run in CGI
mode? Is this even possible considering its a PHP/Mapscript application?

Thanks.

Emmanuel
On Apr 15, 2014 2:17 PM, "Emmanuel Adegboye" <[hidden email]>
wrote:

> Thanks, I already did but the error persists. I noticed that a
> mapscript.ini file already exists with the extension=php_mapscript.so line
> in it and its in a directory being scanned for additional configuration
> files.
>
> Using phpinfo and with a little scanning of the directories, I realised
> that the extension wasn't being loaded because mapscript is in a different
> directory from the default php extensions directory.
>
> I've tried to do a symbolic link between both folders but it still does
> not work.
>
> I did a standard installation of all mapserver dependencies from the
> ubuntu gis repository and I have a separate setup that works without any
> issues.
> On Apr 15, 2014 1:52 PM, "Marcello Benigno" <[hidden email]>
> wrote:
>
>> Hi Emmanuel,
>>
>> You need edit your php.ini file (probably in  /etc/php5/apache2/php.ini) and
>> put the line below:
>>
>> extension=php_mapscript.so
>>
>> Then restart apache:
>>
>> sudo /etc/init.d/apache2 restart
>>
>> Other settings are required, I suggest you read the instructions in this link
>> (PHP.ini section):
>>
>> http://svn.pmapper.net/trac/wiki/DocQuickinstall
>>
>> Best,
>>
>>
>> 2014-04-11 19:36 GMT-03:00 Emmanuel Adegboye <[hidden email]>:
>>
>>> Hi all.
>>>
>>> I get this error on a fresh install of pmapper 4.3 on an ubuntu setup:
>>>
>>> [11-Apr-2014 22:32:12 Africa/Brazzaville] P.MAPPER: This version of PHP
>>> does support the 'dl()' function. Please enable 'php_mapscript.dll' in
>>> your
>>> php.ini
>>> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Undefined
>>> variable:
>>> map in /var/www/vhosts/map.oauife.edu.ng/httpdocs/incphp/init/init.phpon
>>> line 33
>>> [11-Apr-2014 22:32:12 Africa/Brazzaville] PHP Notice:  Trying to get
>>> property of non-object in /var/www/vhosts/
>>> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 283
>>> [11-Apr-2014 23:32:12 Europe/Vienna] PHP Fatal error:  Call to a member
>>> function getAllGroupNames() on a non-object in /var/www/vhosts/
>>> map.oauife.edu.ng/httpdocs/incphp/init/initmap.php on line 289
>>>
>>>
>>> I'm guessing that the PHP mapscript extension has not been enabled. Am I
>>> right about this? The only challenge is that the server admin is the only
>>> one that has access to this file as I am on a shared server. What are my
>>> options?
>>>
>>> Regards,
>>>
>>> Emmanuel Adegboye
>>>
>>> ------------------------------------------------------------------------------
>>> Put Bad Developers to Shame
>>> Dominate Development with Jenkins Continuous Integration
>>> Continuously Automate Build, Test & Deployment
>>> Start a new project now. Try Jenkins in the cloud.
>>> http://p.sf.net/sfu/13600_Cloudbees
>>> _______________________________________________
>>> pmapper-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>>
>>
>>
>>
>> --
>> *Marcello Benigno B. de Barros Filho*
>> Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
>> Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
>> Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
>> http://profmarcello.blogspot.com
>> http://about.me/marcello.benigno
>>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
pmapper-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/pmapper-users
Loading...