Hi I’m such noob on Linux environtment… but I made successfully install virtualmin on my Linux server (latest version).
The error that i got previously was related to php modules which is everything I tried to run the any php files such index.php or etc… it’s always download the file so it makes me confuse while I’m trying to run the test.php seems to working fine…
PHP Version 5.3.5-1ubuntu7.2
System Linux domain.com 2.6.38-11-server #50-Ubuntu SMP Mon Sep 12 21:34:27 UTC 2011 x86_64
Build Date May 2 2011 22:59:33
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/fpm
Loaded Configuration File /etc/php5/fpm/php.ini
Scan this dir for additional .ini files /etc/php5/fpm/conf.d
Additional .ini files parsed /etc/php5/fpm/conf.d/curl.ini, /etc/php5/fpm/conf.d/gd.ini, /etc/php5/fpm/conf.d/ldap.ini, /etc/php5/fpm/conf.d/mcrypt.ini, /etc/php5/fpm/conf.d/mysql.ini, /etc/php5/fpm/conf.d/mysqli.ini, /etc/php5/fpm/conf.d/pdo.ini, /etc/php5/fpm/conf.d/pdo_mysql.ini, /etc/php5/fpm/conf.d/pdo_sqlite.ini, /etc/php5/fpm/conf.d/sqlite.ini, /etc/php5/fpm/conf.d/sqlite3.ini, /etc/php5/fpm/conf.d/xsl.ini
PHP API 20090626
PHP Extension 20090626
Zend Extension 220090626
Zend Extension Build API220090626,NTS
PHP Extension Build API20090626,NTS
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters zlib., bzip2., convert.iconv., string.rot13, string.toupper, string.tolower, string.strip_tags, convert., consumed, dechunk, mcrypt., mdecrypt.
I went to the virtual server that I just created and I set the
PHP script execution mode CGI wrapper (run as virtual server owner) (enable).
Now I got another error which is…
“The requested URL /cgi-bin/php5.cg/installer.php was not found on this server”
Another clue for the error i saw on the apache logs which is…
“script not found or unable to stat: /home/domain/cgi-bin/php5.cg”
Yes I tried to run installer script for some application based on php and mysql… and this error smakes me think something wrong with my php configuration on apache or what…
Is there any one can help me or lead me with the solution as I’m not familiar with the error…
See, I’ve never heard of this happening before… and then all of the sudden two folks mention that happening within two days. Another fellow was seeing that here:
Thanks for the quick response…
the ubuntu version is 2.6.38-11-server.
I install refresh copy of Ubuntu server and upgrades when it cames new upgrades… installing the webmin first and then decided to try virtualmin for advance configuration by downloading and installing the files (both GPL version)
root@prodigiworld:/home/mydomain/public_html# dpkg -l ‘php’
dpkg-query: error: package name in specifier ‘php’ is illegal: must start with an alphanumeric character
root@prodigiworld:/home/mydomain/public_html# dpkg -l php
No packages found matching php.
I forgot about on how I installed the virtualmin, for sure it’s not from ubuntu packages, also I did try to rerun the install.sh scrip just to overwrite the existing system/installation, but still the problem exist…
root@prodigiworld:~# dpkg -l php
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
++±==============-==============-============================================
un libapache2-mod (no description available)
un libapache2-mod (no description available)
un libapache2-mod (no description available)
un php-pear (no description available)
un php5 (no description available)
ii php5-cgi 5.3.5-1ubuntu7 server-side, HTML-embedded scripting languag
un php5-cli (no description available)
ii php5-common 5.3.5-1ubuntu7 Common files for packages built from the php
ii php5-curl 5.3.5-1ubuntu7 CURL module for php5
ii php5-fpm 5.3.5-1ubuntu7 server-side, HTML-embedded scripting languag
ii php5-gd 5.3.5-1ubuntu7 GD module for php5
un php5-json (no description available)
ii php5-ldap 5.3.5-1ubuntu7 LDAP module for php5
ii php5-mcrypt 5.3.5-0ubuntu1 MCrypt module for php5
un php5-mhash (no description available)
ii php5-mysql 5.3.5-1ubuntu7 MySQL module for php5
un php5-mysqli (no description available)
ii php5-sqlite 5.3.5-1ubuntu7 SQLite module for php5
un php5-suhosin (no description available)
ii php5-xsl 5.3.5-1ubuntu7 XSL module for php5
un phpapi-2009062 (no description available)
ii phpmyadmin 4:3.3.10-1 MySQL web administration tool
“script not found or unable to stat: /home/mydomain/cgi-bin/php5.cg”
Dont you think is supposed to
“script not found or unable to stat: /home/mydomain/cgi-bin/php5.cgi”
There is php5.cgi on the cgi-bin folder, let me know if this causing the problems…
Well, I remember that I intended to use fastcgi for this virtualmin installation, and I read on several discussion that the fastcgi is not really working well with Virtualmin? is that true??
Well, two things… one, it looks like the Ubuntu version you have there isn’t one of the supported versions, and the installer wouldn’t be able to configure things correctly.
If you haven’t gotten far in configuring this server – even if it doesn’t solve this specific problem, you might benefit from using the most recent supported Ubuntu version, 10.04 LTS. You’ll run into less issues over the long haul. You can see a list of supported distros and versions here:
If it’s possible to do that, my suggestion would be to install Ubuntu 10.04 LTS (server edition), and then use the install.sh from the Download link at the top of the page in order to install Virtualmin (and all of it’s dependencies).
Two, I just wanted to verify what you said – you mentioned that putting phpinfo() in a script named test.php worked – are you saying the same script named index.php doesn’t work?
That’s true, it is… however, that should be just fine, that’s the default on a Virtualmin system. There are security benefits to running it via CGI rather than as an Apache module.
There are some PHP apps that don’t always play nice with that though.
There’s two things you could try –
In your $HOME/etc/php.ini file, try setting this option:
cgi.fix_pathinfo=0
If that doesn’t help, you could always switch it to use mod_php rather than CGI or FCGID. To do that, you can go into Server Configurations -> Website Options, and you can change the PHP Execution Mode setting.
Hi Andrey, sorry for the long response, i just got time to play again with Virtualmin, but before continue with your suggestion. I would like to inform you that I got impression form the application support that I had problem with my Apache rewrite…
I know i supposed to place this question on differences forum but I’m thinking that there might be user experiences the same problem like I do so i just want to share it with you all.
They said that…
“your system, I don’t know why, doesn’t have configured right
the apache rewrite module, so the “/” doesn’t work properly.”
And they suggest me to enable the “enable the rewrite module”
Which is I did on global configuration inside webmin. but it doesnt seem to help…
Based upon the NCSA server configuration files originally by Rob McCool.
This is the main Apache server configuration file. It contains the
configuration directives that give the server its instructions.