First off, I've read these posts:
But I'm still having issues, so let me explain.
1) I installed the Virtualmin GPL version using install.sh 2) I created a virtualhost
This virtualhost requires memcache and ioncube. Both are installed, and need an extension line added to the php.ini file.
So, first, I changed the /etc/php.ini file... this was before I knew about virtualmin's way of having individual php.ini files per user. So of course, this did no good and the site still didn't work.
Next I tried creating the ~/etc/php5/php.ini file with my needed extensions. No luck.
I tried ~/etc/php.ini no luck
I then went into virtualmin and went to Services -> Configure Website -> PHP and tried adding the extension as PHP Configuration Values. I saw that they were added to the apache httpd.conf file, but they still didn't load ioncube or memcache. phpinfo confirmed this.
Finally, I found that I could specify for fcgid to use the global /etc/php.ini file by specifying it in the fcgid.conf file as:
So now, ioncube and memcache loaded and the website appeared to be running correctly, albeit while using the global php.ini file instead of a user specific one. I would have been happy with this if there were no more problems. However, I later installed phpmyadmin in this domains public_html. Installed fine and setup auth as config. Could read the DBs just fine. Then I went to password protect the directory and it continues to fail, no error, just keeps refreshing the page asking for username and password again and again. I've created htpasswd and htaccess files dozens of times in the past without issue, so I know I'm doing it correctly and not mistyping anything.
I changed a setting in phpmyadmin to use the cookie authentication mode and an error popped up that made it clear that I had broken suexec rules or something:
PHP Warning: session_start(): open(/var/lib/php/session/sess_ak0ho21cq7jpom0qo3p3b537k7736vfc, O_RDWR) failed: Permission denied (13)
What's going on? How can I get virtualmin to correctly use a userdir's php.ini file? Why is http authentication not working?
I could really use some help.