Submitted by kory on Mon, 08/17/2009 - 10:55 Pro Licensee
I've been fighting a problem with some php code and have not been unsuccessful at finding a resolution to the problem. So I asked a friend of mine to look at the issue and he asked me to turn on php debug and after some discussing we found out that I don't have some of the options that he has on his server. The link that I'm missing is under services and PHP 5 Configuration. Do you have any ideas on what I could be missing? They are both on FreeBSD OS and have Virtualmin 3.703 running on them. I've attached a couple of screen shots of the two servers waynecrop.jpg has the link and mycrop.jpg does not.
Thank you for any help!
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 08/17/2009 - 12:17 Comment #1
Does the domain in mycrop.jpg have the PHP execution mode set to fcgid or cgi , at Server Configuration -> Website Options? Only in these modes will per-domain PHP configs exist, and be editable at Services -> PHP 5 Configuration.
Otherwise, you need to edit the global PHP config, which will probably be at /usr/local/etc/php.ini
Submitted by kory on Mon, 08/17/2009 - 15:04 Pro Licensee Comment #2
I have tried it on both cgi and fcgid. Neither seems to give me the options.
Submitted by JamieCameron on Mon, 08/17/2009 - 15:00 Comment #3
Ok .. are you logged in as root, or as the domain owner?
Also, does the etc/php5/php.ini file existing under the virtual server's home directory?
Submitted by kory on Mon, 08/17/2009 - 15:12 Pro Licensee Comment #4
I am logged in as root.
I looked in the home directory and have a etc directory and inside of their, there is a link to php.ini -> php5/php.ini.
Thanks!
Submitted by JamieCameron on Mon, 08/17/2009 - 15:43 Comment #5
Does the php5/php.ini file exist though?
Also, does upgrading to Virtualmin 3.72 (the latest release) help?
Submitted by kory on Tue, 08/18/2009 - 17:35 Pro Licensee Comment #6
I ran the updates on the server now running 3.72 Pro still no link.
But looking at the php5/php.ini file I don't believe the file exists.
Thanks!
Submitted by JamieCameron on Tue, 08/18/2009 - 17:47 Comment #7
That's a bug .. so the etc/php.ini link actually points to a file that doesn't exist?
If so, you should copy your system's global php.ini file (maybe at /usr/local/etc/php.ini) to etc/php5/php.ini , and make it owned by the domain owner.
Submitted by kory on Wed, 08/19/2009 - 17:47 Pro Licensee Comment #8
That is what the problem was. I put the php.ini file in the domains directory and changed the owner and now I have the link.
Thanks!
Submitted by JamieCameron on Wed, 08/19/2009 - 17:56 Comment #9
Cool .. perhaps it was somehow deleted by mistake.
Submitted by Issues on Wed, 09/02/2009 - 19:18 Comment #10
Automatically closed -- issue fixed for 2 weeks with no activity.