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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea5efb-1d9b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea5efb-1d9b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?