Если запрещено выполнение PHP, открыть папку в htacces:
<Directory "/site.by/quad/api172yW"> <Files "*.*"> Require all granted </Files> </Directory>
Настройки API
(select case when coalesce(ps.stock_4_summ, ps.stock_1_summ) > 0 then coalesce(ps.stock_4_summ, ps.stock_1_summ)::varchar else (select ex.val8 from c_exists ex where ex.id = p.is_exists) end from product_stat ps where ps.prod_id = p.id)
(select ex.val9 from c_exists ex where ex.id = p.is_exists)