My PHP is composed of two parts. A file loader, and python processing. The Python function/script works manually from Jupyter, partially from terminal with php .php, and not from the web page.
From Jupyter, script runs with all messages and outputs (output are html files).
If from terminal, script prints of each of the execution steps but no output saved.
If from webpage, php only uploads file, python script does not run.
The following are the errors in the log file (after running from webpage):
*[Tue Mar 08 16:46:41.160945 2022] [ssl:warn] [pid 682:tid 139662578498432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 08 16:46:41.246185 2022] [ssl:warn] [pid 683:tid 139662578498432] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 08 16:46:41.246393 2022] [core:warn] [pid 683:tid 139662578498432] AH00098: pid file /opt/bitnami/apache/var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Mar 08 16:46:41.247991 2022] [mpm_event:notice] [pid 683:tid 139662578498432] AH00489: Apache/2.4.52 (Unix) OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Mar 08 16:46:41.248018 2022] [core:notice] [pid 683:tid 139662578498432] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf'
[Tue Mar 08 17:04:03.797324 2022] [proxy_fcgi:error] [pid 687:tid 139661934589696] [client 75.54.228.60:52986] AH01071: Got error 'PHP message: PHP Notice: Unknown: file created in the system's temporary directory in Unknown on line 0', referer: http://i.p./Load.html*
BTW, there is a similar post with a recommendation to modify the php.ini file which I would like to follow but can not find the file to modify... :/
Also, php fileUploadScript.php from terminal runs completely, but partially if executed within another php file.
And partially (only printed messages) with:
#!/usr/local/bin/php