LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Virtualmin Prerequisite Installation (https://www.linuxquestions.org/questions/linux-server-73/virtualmin-prerequisite-installation-760724/)

k_oudom 10-09-2009 03:00 AM

Virtualmin Prerequisite Installation
 
Hello LQ. Today I want to install Virtualmin on CentOS 5.3. I'm looking for how to install prerequisite services Can help me?

carltm 10-09-2009 05:25 AM

I just read through the installation instructions, and it says they recommend
that you do an automated installation. For Red Hat and CentOS they write that
you must run "up2date" first. That is only true for versions of Red Hat before
5.0. For Red Hat since version 5.0 and for all versions of CentOS the up2date
command does not exist. Just run "yum upgrade" to make sure you have the
latest updates and that your depos are configured correctly. Then run the
automated installation script.

knudfl 10-09-2009 05:39 AM

1) Get the "Automatic install for Linux" , = Recommended method,
.. and CentOS is the recommended OS to use.
http://software.virtualmin.com/gpl/scripts/install.sh
> > install.sh ( 41.3 kB )

2) su
2a) sh install.sh

( Asked for hostname : ' example.com ' works. )

'sh install.sh' will use yum to get and install everything.
QUOTE :
"" INFO - Installing dependencies using command:
/usr/bin/yum -y -d 2 install <"required packages"> ""

.. or you can run yum beforehand to have everything ready :
Code:

yum -y install bind bind-utils caching-nameserver httpd postfix bind spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-domxl php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay clamav-db

SwellJoe 10-09-2009 02:21 PM

Have you looked at the docs?

Here: http://www.virtualmin.com/download

And here: http://www.virtualmin.com/documentation/installation

k_oudom 10-11-2009 11:54 PM

When I perform checking configuration require by Virtualmin GPL, Error message show up.

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

Can anyone who is excellent at scripting, analyze this automate install script and write a manual installation? You might ask me why I need that manual installation instruction. 1. I want to learn. I want understand what this script do to install Virtualmin. 2. I need to download require packages for offline installation. I prefer CentOS 5.3 Manual Installation Instruction because it is an OS for Server. Hope you will help if you have time.
Download install.sh

SwellJoe 10-12-2009 11:40 PM

Quote:

Originally Posted by k_oudom (Post 3716032)
When I perform checking configuration require by Virtualmin GPL, Error message show up.

The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.

Can anyone who is excellent at scripting, analyze this automate install script and write a manual installation? You might ask me why I need that manual installation instruction. 1. I want to learn. I want understand what this script do to install Virtualmin. 2. I need to download require packages for offline installation. I prefer CentOS 5.3 Manual Installation Instruction because it is an OS for Server. Hope you will help if you have time.
Download install.sh

I've covered the details of what install.sh does (very little, mostly just figures out which a few packages to install and how to setup the yum repository) and what virtualmin-base does (most of the hard work) on many occasions in the Virtualmin forums. Google is your friend.

I would hate to see someone waste time answering your request, when the only person that really understands all of it (me) has already written quite a bit on the subject. It is not mysterious. The source is right there...read it; if you can't understand the script, you wouldn't understand what it's doing anyway, so why do a manual install when the automated one will actually get it right?

The specific configuration warning you've found is also well-documented on the Virtualmin.com forums, and, of course, would not happen if you simply installed using the install script. It means suexec on your system is configured to run scripts in /var/www, but in a virtual hosting system, scripts would be running in user home directories, which are in /home, and so suexec needs to be rebuilt. I've documented how to rebuild the httpd to get this configuration; again, in the Virtualmin.com forums. Google will find it, but you're just making your life harder than it needs to be.

install.sh isn't doing anything sneaky, nor is virtualmin-base. They're just installing a bunch of packages (mostly the OS-standard packages) and configuring them for use for virtual hosting.

k_oudom 10-13-2009 02:06 AM

The reason that I need manual instruction because I don't want to spend hours to download require packages again and again. I have spend a lot of time understand about manual instruction on how to install ISPConfig. So I might be able to understand your guide if you will make one.


All times are GMT -5. The time now is 10:24 AM.