When you open the local software in php's CGI mode, it is reported that the software dependent library does not exist, but it is normal in cli mode.

test.php file

<?php
exec("deepin-movie");

for example, open the local deepin-movie video software with php. In php"s cli mode, executing
php test.php works normally, but when I trigger the call with a button on the page, I report an error. The page request is http://localhost/test.php

.
deepin-movie: /opt/lampp/lib/libstdcPP.so.6: version `CXXABI_1.3.8" not found (required by deepin-movie) deepin-movie: /opt/lampp/lib/libstdcPP.so.6: version `CXXABI_1.3.9" not found (required by deepin-movie) deepin-movie: /opt/lampp/lib/libstdcPP.so.6: version `GLIBCXX_3.4.18" not found (required by deepin-movie)
Mar.22,2021

I have answered similar questions before.
Click to jump

it should be that you have 2 or more versions of php locally, and the versions used in cli mode and cgi mode are different, so there will be dependent libraries that do not exist.


there is only one configuration, and the local video software dependent environment should not be related to php. The reason has not been found yet. But at present, it has been solved by using a background service to monitor a port, push the playback address to the port address when the page playback link is clicked, and the background service executes the command. This realizes the web trigger, and runs @ qqlcbb

in cli mode.
Menu