Submitted by ken.wiesner on Tue, 10/11/2011 - 02:51
I have a server with a ton of vhosts on it so I switched from FCGID to CGI. Most of the sites are running WordPress and for the most part seems to work fine in CGI mode. I had a few issues though with certain functions returning "insufficient permissions" in WordPress and found that they could be fixed by setting cgi.fix_pathinfo=0. Since I have to do this for 270+ vhosts I'm trying to use virtualmin modify-php to do a mass edit. When I run the following:
virtualmin modify-php-ini --all-domains --ini-name cgi.fix_pathinfo --ini-value 0
It basically hangs on the first vhost. It seems to edit the file though just doesn't continue on. Tried editing just one vhost with --domain my.domain.here and that got stuck too. Thoughts?
Thanks,
Ken
Status:
Active
Comments
Submitted by andreychek on Tue, 10/11/2011 - 07:43 Comment #1
Howdy -- what you're doing is correct, and should definitely work.
So it sounds like you may be seeing a bug of some sort. Can you run an strace of that process (against just one domain), and then attach the resulting output?
An example of how to do that is as follows:
strace virtualmin modify-php-ini --domains example.com --ini-name cgi.fix_pathinfo --ini-value 0 2>&1 > strace_output.txt
That should place the output in strace_output.txt -- then just attach that file to this request.
If it says that strace isn't installed, you can install that by running "apt-get install strace".
Thanks!
Submitted by ken.wiesner on Tue, 10/11/2011 - 10:01 Comment #2
Jamie the attachment thing on here is broken. When I try to attach I get this:
http://cl.ly/3E2S283J1z253639293S
Submitted by ken.wiesner on Tue, 10/11/2011 - 10:02 Comment #3
Okay here is the strace file which has what looks like just the output from the virtualmin command: http://cl.ly/0J2H0o2m3P0z1Z133f0s
And here is an export of my console which looks like it actually contained the backtrace you wanted: http://cl.ly/1d450j3w2e2w1A3n0D1n
Submitted by JamieCameron on Wed, 10/12/2011 - 23:48 Comment #4
Does it keep printing stuff on the console when you run the command with strace, or just hang at the end of the output you attached?
Submitted by ken.wiesner on Fri, 10/14/2011 - 20:07 Comment #5
Sorry just saw comment. It just hangs.
Submitted by JamieCameron on Sat, 10/15/2011 - 00:33 Comment #6
Ok, it looks like the script has gone into an infinite loop while modifying the apache config.
Unfortunately I can't re-produce this on my test systems. To debug it further, I'd need to SSH into your system as root and test the
modify-php-ini
command. Let me know if that is possible..