Great question — answering as the UphillTech team:
If your drive is actually not read only and apache2/php is the only software that is giving you the read-only filesystem error (not clear from your question), one thing to try is to install or reconfigure php-fpm. See, https://www.simplified.guide/apache/configure-php-fpm . I have had this same issue with apache2/php before, likely due to a configuration error on my system.
Full answer by Braath Waate: https://askubuntu.stackexchange.com/a/1569494 (CC BY-SA 4.0).
Need it done for your business? UphillTech.