Which PHP Setting and Where?

Within a Virtual Host the Apache error log is showing:

PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 31982282 bytes)

For a script that needs to run however in both:

Virtual Server Options > PHP > PHP Configuration Values memory_limit 512M

Manage PHP Configuration > Resource Limits > Maximum memory allocation 512M

Are set to 512M

What setting is going to be 33554432 bytes / 33.55M and where is it?

Can anyone help/advise?


What is the PHP Execution Mode for this particular domain? Is it using FCGID, CGI, or mod_php?