These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for [SOLVED] PHP file are downloading instead of excuting. on the new forum.
PHP file are downloading instead of excuting. I can chose in website options: Apache mod_php (run as Apache's user) CGI wrapper (run as virtual server owner) FCGId (run as virtual server owner) FPM (run as virtual server owner)
Only the option mod_php seems to work. When I select CGI wrapper or FCGId the php files are download instead of parsed. I need FCGId because I want to chose between php 5.6 and 7. This is a new install with a migration from my previous server.
My server is running on ubuntu 16.04 lts and the latest virtualmin and webmin. How can fix this?
[Mon Jul 23 21:32:59.731892 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:00.042277 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:00.369643 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:00.681204 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:00.985417 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:01.289346 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:01.631218 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:01.930652 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:02.261566 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:02.582489 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:02.893726 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:03.228966 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:03.547136 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:03.847757 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:04.134936 2018] [proxy_fcgi:error] [pid 12575] [client 213.219.166.133:57434] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:20.776164 2018] [proxy_fcgi:error] [pid 12572] [client 213.219.166.133:57601] AH01071: Got error 'PHP message: PHP Fatal error: Cannot use 'String' as class name as it is reserved in /home/domain/public_html/lib/Cake/Utility/String.php on line 26\n', referer: http://domain.com/
[Mon Jul 23 21:33:21.765791 2018] [proxy:error] [pid 12572] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:8001 (*) failed
[Mon Jul 23 21:33:21.765820 2018] [proxy_fcgi:error] [pid 12572] [client 213.219.166.133:57601] AH01079: failed to make connection to backend: localhost, referer: http://domain.com/
[Mon Jul 23 21:33:22.424762 2018] [proxy:error] [pid 12574] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:8001 (*) failed
[Mon Jul 23 21:33:22.424792 2018] [proxy_fcgi:error] [pid 12574] [client 213.219.166.133:57620] AH01079: failed to make connection to backend: localhost, referer: http://domain.com/
[Mon Jul 23 21:30:38.240487 2018] [mpm_prefork:notice] [pid 6328] AH00171: Graceful restart requested, doing restart
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Jul 23 21:30:41.375208 2018] [mpm_prefork:notice] [pid 6328] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Jul 23 21:30:41.375231 2018] [core:notice] [pid 6328] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 23 21:31:05.626216 2018] [mpm_prefork:notice] [pid 6328] AH00171: Graceful restart requested, doing restart
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Jul 23 21:31:06.599894 2018] [mpm_prefork:notice] [pid 6328] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Jul 23 21:31:06.599910 2018] [core:notice] [pid 6328] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 23 21:32:50.928719 2018] [mpm_prefork:notice] [pid 6328] AH00171: Graceful restart requested, doing restart
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Jul 23 21:32:54.054216 2018] [mpm_prefork:notice] [pid 6328] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Jul 23 21:32:54.054237 2018] [core:notice] [pid 6328] AH00094: Command line: '/usr/sbin/apache2'
[Mon Jul 23 21:33:22.517768 2018] [mpm_prefork:notice] [pid 6328] AH00171: Graceful restart requested, doing restart
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_curl.dll' - /usr/lib/php/20151012/php_curl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_gd2.dll' - /usr/lib/php/20151012/php_gd2.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[Mon Jul 23 21:33:25.644697 2018] [mpm_prefork:notice] [pid 6328] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Mon Jul 23 21:33:25.644714 2018] [core:notice] [pid 6328] AH00094: Command line: '/usr/sbin/apache2'
curl and gd2 are already "fixed".
I just step into this few days ago... still dont have soliution...
Found solution! :) check this file: /etc/httpd/conf.d/php.conf - put comments on every line #
after update older one was renamed as .rpmnew so you can delete new and rename older
To solve the problem I did this:
https://www.virtualmin.com/node/54563
and (what andreychek said)
https://www.virtualmin.com/node/41071