Folks:

I've written a number of PHP apps, which run in /var/www/html/appname. I write and test the code for those apps in /home/paulf/public_html/appname. (Apache is configured so that http://localhost/~paulf/appname gets me to the latter site.)

I recently upgraded to testing. The main apps work fine. However, when i try to run that same code in /home/paulf/public_html, I get a memory protection error, something like "mprotect() failed [13] Permission denied" from Apache/PHP. PHP is trying to write to a SQLite database, and the memory error makes it return an error which acts like the database has bad permissions.

This is puzzling, in that identical code works at /var/www/html/appname on the SQLite app/data/database.sq3 database, but not on the one at /home/paulf/public_html/appname/app/data/database.sq3. No, it's not file permissions, as I've set them to 777 for the database.

Brave's AI tells me that I can issue paxctl -m /usr/bin/php command to fix this. But paxctl doesn't appear in trixie or later for some reason.

I'd appreciate it if someone has an actual solution which works.

Paul

--
Paul M. Foster
Personal Blog: http://noferblatz.com
Company Site: http://quillandmouse.com
Software Projects: https://gitlab.com/paulmfoster
                   https://codeberg.org/paulmfoster
                   https://github.com/paulmfoster

Reply via email to