0 Members and 1 Guest are viewing this topic.
<FilesMatch \.php$> SetHandler x-httpd-php52 .php </FileMatch>
Try 'sh /script/fixphp; sh /script/fixweb; sh /script/restart-web -y'.
<FilesMatch \.php$> SetHandler x-httpd-php52 </FileMatch>
Changed but still Internal Server Error 500
Still Error 500...
Quote from: Spacedust on 2015-07-01, 10:19:24Still Error 500...Open '/etc/suphp.conf' and then change 'errors_to_browser=false' to 'errors_to_browser=true' to know more info about error.
[global]logfile=/var/log/httpd/suphp_logloglevel=infowebserver_user=apachedocroot=/;; MR - chroot still not work!;chroot=/home/*/env_path=/bin:/usr/binumask=0022min_uid=48min_gid=48;; Security optionsallow_file_group_writeable=trueallow_file_others_writeable=falseallow_directory_group_writeable=trueallow_directory_others_writeable=false;; Check wheter script is within DOCUMENT_ROOTcheck_vhost_docroot=true;Send minor error messages to browsererrors_to_browser=true[handlers];; Handler for php-scriptsx-httpd-php="php:/usr/bin/php-cgi"x-httpd-php51="php:/opt/php51m/custom/php-cgi.sh"x-httpd-php52="php:/opt/php52m/custom/php-cgi.sh"x-httpd-php53="php:/opt/php53m/custom/php-cgi.sh"x-httpd-php54="php:/opt/php54m/custom/php-cgi.sh"x-httpd-php55="php:/opt/php55m/custom/php-cgi.sh"x-httpd-php56="php:/opt/php56m/custom/php-cgi.sh";; Handler for CGI-scriptsx-suphp-cgi="execute:!self";;; MR -- for using php52 just enough add 'AddHandler x-httpd-php52 .php' on .htaccess.;;; The same way for other version like php53;;; it's make possible running 'multiple php' on server!
No issue related to ownership/permissions in php and .htaccess file?.
I used apache24 with php55u, working very well
[root@c44-49 etc]# sh /script/fixphp- For help, type '/script/fixphp [--help|-h]'- No argument supplied. Defaulting to localhost (master) serversFixing php.ini/php-fpm.conf/php5.fcgi/.htaccess- '/etc/php.ini' at 'localhost'- Fix 'extension_dir' path in php.ini at 'localhost'- '/etc/php-fpm.d/default.conf' at 'localhost'- '/home/kloxo/client/php5.fcgi' at 'localhost'- '/home/admin/tester.pl/.htaccess' ('admin') at 'localhost'- '/home/kloxo/client/admin/php.ini' at 'localhost'- '/home/kloxo/client/admin/php5.fcgi' at 'localhost'- '/home/kloxo/client/admin/prefork.inc' at 'localhost'- '/etc/php-fpm.d/admin.conf' at 'localhost'*** Process Time: 00:00:00:00.770 (dd:hh:mm:ss:xxxxxx) ***[root@c44-49 etc]# sh /script/fixweb- For help, type '/script/fixweb [--help|-h]'- No argument supplied. Defaulting to localhost (master) serversFixing Web server config- 'defaults' pages at 'localhost'- remove all domains configs at 'localhost'- 'tester.pl' ('admin') at 'localhost'*** Process Time: 00:00:00:00.755 (dd:hh:mm:ss:xxxxxx) ***[root@c44-49 etc]# curl -s --head http://tester.plHTTP/1.1 500 Internal Server ErrorServer: nginxDate: Wed, 01 Jul 2015 10:25:17 GMTContent-Type: text/html; charset=UTF-8Content-Length: 2104Connection: keep-alive
A. Kloxo-MR: 7.0.0.b-2015070101 - Web: hiawatha-9.13.0-f.6.mr.el6.x86_64 - PHP: php54s-5.4.41-1.ius.el6 (fpm mode)B. Plateform: - OS: CentOS release 6.6 (Final) x86_64 - Hostname: c44-49.icpnet.plC. Services: 1. MySQL: MariaDB-server-10.0.20-1.el6.x86_64 2. PHP: - Branch: php-cli-5.4.32-1.el6.remi.x86_64 - Multiple: * php52m-5.2.17-102.mr.el6 * php53m-5.3.29-1.ius.el6 * php54m-5.4.42-1.ius.el6 * php55m-5.5.26-1.ius.el6 * php56m-5.6.10-1.ius.el6 - Used: --Use PHP Branch-- 3. Httpd: httpd24u-2.4.12-5.ius.el6.x86_64 - PHP Type: [unknown] 4. Lighttpd: --uninstalled-- 5. Hiawatha: hiawatha-9.13.0-f.6.mr.el6.x86_64 6. Nginx: nginx-1.9.2-1.el6.ngx.x86_64 7. Cache: --uninstalled-- 8. Dns: pdns-3.3.3-1.el6.x86_64 9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64 - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64D. Memory: total used free shared buffers cached Mem: 64425 1664 62761 31 107 682 -/+ buffers/cache: 873 63551 Swap: 199 0 199E. Disk Space: Filesystem Size Used Avail Use% Mounted on /dev/sda3 16G 6,8G 7,7G 47% /
Page created in 0.066 seconds with 18 queries.