[TYPO3-english] php4/php5 parsing

Michael Cannon mc at aihr.us
Fri Mar 4 00:03:58 CET 2011


I've got a page at http://www.2elearning.com/index.php?id=1231 that is being
served via PHP5, but is trying to include a PHP4 script. In the past 48
hours, this page and others like it was working fine, but no longer.

I've double-checked WHM's Apache configuration and PHP settings.

I've checked that /usr/local/apache/conf/userdata/std/2/elearni/vhost.conf
is okay determining which scripts and where get PHP versions applied.

/home/elearni/public_html/typo3conf/ext/lumophpinclude/pi1/class.tx_lumophpinclude_pi1.php
via PHP5 is calling /home/elearni/public_html/uploads/reg_form_ext.php which
calls /home/elearni/public_html/el_flexreg/subform.cgi which is the Zend
encoded PHP4 script.

Ideas on how to fix or debug further?

Any ideas on how to tell or customize lumophpinclude to use PHP4?


vhost.conf
--
# Options +ExecCGI +Includes
DirectoryIndex index.cgi index.php index.html index.htm
RemoveHandler cgi-script .cgi

<Directory /home/elearni/public_html/>
    AddType application/x-httpd-php5 .cgi
    AddType application/x-httpd-php5 .cnf
    AddType application/x-httpd-php5 .inc
    AddType application/x-httpd-php5 .php
    AddType application/x-httpd-php5 .php5
</Directory>

<Directory /home/elearni/public_html/directory/>
    AddType application/x-httpd-php4 .cgi
    AddType application/x-httpd-php4 .cnf
    AddType application/x-httpd-php4 .inc
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php4
</Directory>

<Directory /home/elearni/public_html/uploads/>
    AddType application/x-httpd-php4 .cgi
    AddType application/x-httpd-php4 .cnf
    AddType application/x-httpd-php4 .inc
    AddType application/x-httpd-php4 .php
    AddType application/x-httpd-php4 .php4
</Directory>


--
Michael Cannon
CEO, Aihrus

Professional Migration to TYPO3 from most Website Management Systems


More information about the TYPO3-english mailing list