PDA

View Full Version : Changing from PHP5 to PHP4



MasterX
02-09-2008, 03:47 PM
Dear readers,

I just (finnaly) got my server up and running with DA.
But the server uses php5 and i think my codes arent optimized for php5.

Does someone know how to change the apache to use php4 instead of php5?

Regards,

Anne Willems

EDIT: i get errors like:

Fatal error: Cannot use object of type stdClass as array

suhailc
02-10-2008, 08:50 AM
If you're using custombuild, simply edit options.conf under:
/usr/local/directadmin/custombuild

and change the default PHP to 4.

Refer to the following custombuild page for more info:
http://files.directadmin.com/services/custombuild/1.1/

And of course read:
http://www.directadmin.com/forum/showthread.php?t=19221

before trying anything.