[MS4W-Users] update mapbender installation on windows errors
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Mar 27 08:48:22 EDT 2019
Kindly please never cross-post your same message to multiple lists at once.
I am glad to hear that your "php7ts.dll is missing" issue has been
solved. Great.
Regarding your next error, as you've found, sometimes PHP's extensions
are not loaded automatically by the commandline call (for example,
you'll notice when you execute "php -m" that "MapScript" is not listed
in the response. You can manually load an extension (after executing
setenv.bat) at the commandline such as:
php -dextension=C:\ms4w\Apache\php\ext\php_mapscript.dll -m
You'll notice that "MapScript" is listed in the response.
Another example is when the extension "pdo_mysql" is not loaded at the
commandline. You can manually load that extension with:
php -dextension=C:\ms4w\Apache\php\ext\php_pdo_mysql.dll -m
Hope that helps.
Again, if you notice any Mapbender enhancements or issues for MS4W, it
would be great if you could file them in the tracker at
https://ms4w.com/trac/
Thank you for using MS4W.
"MS4W: open doors as well as windows"
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
On 2019-03-27 9:07 AM, karsten via MS4W-Users wrote:
>
>
> Thanks Jeff,
>
> yes fact yes I was using ms4w.
> When setting the environment via setenv.bat
> I checked inside the mapbender subdir in ms4w the available drivers with
> php -m
> and got PDO lsietd amoung others
> However when running
> c:\ms4w\apps\mapbender3-starter-3.0.7.7>php app/console
> doctrine:schema:update
>
> it throws these errors:
> [Doctrine\DBAL\Exception\DriverException]
> An exception occured in driver: could not find driver
>
> [Doctrine\DBAL\Driver\PDOException]
> could not find driver
>
> [PDOException]
> could not find driver
>
> Any idea how to fix this ?
>
> Cheers
> Karsten
>
>
> -----Original Message-----
> From: Mapbender_users [mailto:mapbender_users-bounces at lists.osgeo.org] On
> Behalf Of Jeff McKenna
> Sent: Wednesday, March 27, 2019 12:45
> To:mapbender_users at lists.osgeo.org
> Subject: Re: [Mapbender-users] update mapbender installation on
> windowserrors
>
> If you are using MS4W, your first step always (as you know) is to open a
> Command Prompt window, cd into /ms4w and then execute:
>
>
>
> Then you can execute any MS4W tool, now that the proper PATHS are set
> through setenv.bat
>
> So while inside the directory of C:/ms4w/ (and after you execute
> setenv.bat) you can then execute a command such as:
>
> php --version
>
> If you have any MS4W questions, be sure to send them to the ms4w-users list
> athttps://ms4w.com/forum/
>
> If you notice any Mapbender enhancements for needed for MS4W, it would be
> great if you could file them in the tracker athttps://ms4w.com/trac/
>
> Thanks,
>
>
> -jeff
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Serviceshttps://gatewaygeomatics.com/
>
>
>
> On 2019-03-27 5:44 AM, karsten wrote:
>> Sorry I saw that the windows command are listed below the linux one on
> that
>> webpage, it is
>>
>> php.exe app/console doctrine:schema:update --dump-sql
>>
>> However when I run that ond e.g. I get the error:
>> The program can't start because php7ts.dll is missing from your computer.
>> Try reinstalling the program to fix this problem.
>>
>> Any hints what is wrong and how to fix this ?
>>
>> Cheers
>> Karsten
>>
>> -----Original Message-----
>> From: karsten [mailto:karsten at terragis.net]
>> Sent: Wednesday, March 27, 2019 09:37
>> To: 'Mapbender User List'
>> Subject: update mapbender installation on windows errors
>>
>> Hi All,
>>
>> When trying to go update a mapbender installation via the commands from
>> https://doc.mapbender.org/en/installation/update.html
>> I noticed that the commands for the database update work on linux however
> I
>> am having trouble on windows.
>> On windows the command
>> app/console doctrine:schema:update --dump-sql for example I get this
> error:
>> 'app' is not recognized as an internal or external command, WQhen I add
> the
>> complete windows path like
>> c:\ms4w\apps\mapbender3-starter-3.0.7.7\app\console ...
>> the erropr is the ame.
>>
>> How can I sucessfully run that command on windows ?
>>
>> Cheers
>> Karsten
>>
>> __
More information about the MS4W-Users
mailing list