I’m evaluating Virtual server on a test server and it work very well. To make it work i disabled mod_suexec and now everithing works fine except PHP in virtual servers. It’s enabled but when i start php scripts (such as Joomla setup, the php code is displyed instead of interpreted.
Ubuntu 8.10 with PHP 5, Apache2, and all the latest patches
When you go into Server Configuration -> Website Options, what does the PHP script Execution mode show?
PHP should definitely work out of the box though, so it’s a little odd that it isn’t… when you did the install. did you by chance use the install.sh script? That’s the best way to do things, as it handles all the setup for you, as well as making sure all the correct software versions are installed.
-Eric
in Virtualmin, under “Server Configuration”, i have 4 options:Change Domain Name, Change IP Address, Edit Proxy Website,Move Virtual Server. I cannot find “Website options” (I’m still using GPL edition of webmin).
I did the installation following these instructions:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
++±===================================-===================================-======================================================================================
ii php-pear 5.2.6-2ubuntu4 PEAR - PHP Extension and Application Repository
un php3 <none> (no description available)
un php4 <none> (no description available)
un php4-cgi <none> (no description available)
un php4-cli <none> (no description available)
un php4-dev <none> (no description available)
un php4-gd <none> (no description available)
un php4-mcrypt <none> (no description available)
un php4-mysql <none> (no description available)
un php4-pear <none> (no description available)
ii php5 5.2.6-2ubuntu4 server-side, HTML-embedded scripting language (metapackage)
un php5-cgi <none> (no description available)
ii php5-cli 5.2.6-2ubuntu4 command-line interpreter for the php5 scripting language
ii php5-common 5.2.6-2ubuntu4 Common files for packages built from the php5 source
ii php5-curl 5.2.6-2ubuntu4 CURL module for php5
ii php5-dev 5.2.6-2ubuntu4 Files for PHP5 module development
ii php5-gd 5.2.6-2ubuntu4 GD module for php5
ii php5-idn 1.2b-5.2 PHP API for the IDNA library
ii php5-imagick 2.1.1RC1-1 ImageMagick module for php5
ii php5-imap 5.2.6-0ubuntu3 IMAP module for php5
un php5-json <none> (no description available)
ii php5-mcrypt 5.2.6-0ubuntu2 MCrypt module for php5
ii php5-memcache 3.0.1-1 memcache extension module for PHP5
ii php5-mhash 5.2.6-2ubuntu4 MHASH module for php5
ii php5-ming 1:0.3.0-14 Ming module for php5
ii php5-mysql 5.2.6-2ubuntu4 MySQL module for php5
un php5-mysqli <none> (no description available)
ii php5-pspell 5.2.6-2ubuntu4 pspell module for php5
ii php5-recode 5.2.6-2ubuntu4 recode module for php5
ii php5-snmp 5.2.6-2ubuntu4 SNMP module for php5
ii php5-sqlite 5.2.6-2ubuntu4 SQLite module for php5
ii php5-tidy 5.2.6-2ubuntu4 tidy module for php5
un php5-timezonedb <none> (no description available)
ii php5-xmlrpc 5.2.6-2ubuntu4 XML-RPC module for php5
ii php5-xsl 5.2.6-2ubuntu4 XSL module for php5
un phpapi-20060613 <none> (no description available)
ii phpmyadmin 4:2.11.8.1-1 MySQL web administration tool
Well, if the installer isn’t able to complete, that means something is wrong with your setup that will likely adversely effect Virtualmin in the future… Apache, PHP, and suexec should all work perfectly out of the box.
However, to at least get what you have there ATM working, I may try enabling mod_php then restart Apache. To do that, log in as root over SSH, and run:
a2enmod php5
/etc/init.d/apache2 restart
That will setup your system to use mod_php. The preferred setup is with PHP using suexec, but mod_php does work, though it’s less secure as everything runs as Apache, rather than the invidivual users who own the sites.
-Eric