php virtual-server question

4 posts / 0 new
Last post
#1 Wed, 01/16/2013 - 14:03
edwardsmarkf

php virtual-server question

hi all -

i notice that virtualmin creates a php.ini file for each virtual-server.

is there any way (as there always is with virtualmin) to edit this file?

and while on the subject - is there any reason for allowing the short syntax <?=$hello?> would not be the default?

thanks!

Wed, 01/16/2013 - 14:29
tpnsolutions
tpnsolutions's picture

Hi,

To adjust PHP settings inside Virtualmin, go to:

Virtualmin > Services > PHP5 Configuration

additional PHP options can be adjusted by going to:

Virtualmin > Server Configuration > Website Options

-Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/16/2013 - 14:34
tpnsolutions
tpnsolutions's picture

Hi,

One of the reasons why it is NOT recommended to use "short tags" such as <? and ?> is because languages like XML start with <?xml which could in some cases be confused with being a PHP document.

You can read more about this at:

http://php.net/manual/en/ini.core.php#ini.short-open-tag

-Peter

Best Regards,
Peter Knowles | TPN Solutions
Email: pknowles@tpnsolutions.com | Skype: tpnassist
Wed, 01/16/2013 - 14:39
andreychek

Also, regarding what's enabled by default -- Virtualmin doesn't make decisions on what's included in the php.ini file by default -- it's simply taking the php.ini file from /etc/, and using that for each domain that's created. What you're seeing are the distros defaults (which are often derived from PHP's recommendations).

What tpnsolutions mentioned above is how you can make changes to your existing domains.

Since the php.ini file in /etc/ is what Virtualmin copies out to new domains, you can change that one in order to make sure any changes are applied to new domains.

-Eric

Topic locked