How can I get Virtualmin to behave like a traditional web host (i.e. Godaddy/Hostgator)?

  • Posted on August 27, 2014
  • kaiAsked by kai

I have tried many times to spin up a droplet and then install Virtualmin. I followed the guide that was posted by DigitalOcean and then also tried with modifications. I can get Virtualmin installed, I can set up a site, and I can then do a restore of my sites, but I have issues with formatting and function.

I have one Wordpress site and one Joomla site. I can restore these sites from GoDaddy to Hostgator and back without any issue. But when I restore them onto my droplet they do not function as intended.

Clearly I am missing some things. For example my sites do not initially work due to .htaccess paramaters. I had to comment out my +FollowSymLinks line on the Wordpress site. Also on both I have to remove the expirations lines, but then I discovered I needed to install a module for that.

The closest I have come is by running the following apt-get to install as many modules as I could find that matched the phpinfo on my HostGator hosting.

apt-get install php5-gd php5-GMP php5-imagick php5-intl php5-mcrypt php5-pspell php5-tidy php5-xmlrpc php5-xsl php-gettext php-soap php-date

I just want Virtualmin up and running and it to act like a major web host from a function standpoint, but act like a droplet from a performance standpoint.

I have tried using Joomla 14 and 12 (32-bit and 64-bit).

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Just ignore what I said before, I think I’m confusing myself… There isn’t a problem at all with using a host file, I was getting mixed up with how apache name based virtual hosts are set up.

I don’t think there is a problem with your htaccess file, per se, but htaccess files usually rely on apache configuration to be allowed to do stuff. The problem is likely your apache config not allowing the htaccess to behave as expected.

In joomla.conf file change

<Directory /home/perfectprofiler/public_html>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/perfectprofiler/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/perfectprofiler/fcgi-bin/php5.fcgi .php5


<Directory /home/perfectprofiler/public_html>
Options -Indexes +IncludesNOEXEC +FollowSymLinks +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,FollowSymLinks
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/perfectprofiler/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/perfectprofiler/fcgi-bin/php5.fcgi .php5

You should now be able to uncomment this line :

#Options +FollowSymLinks

in your htaccess file

Restart apache.

Also, what is in these logs??

ErrorLog /var/log/virtualmin/perfectprofiler.com_error_log
CustomLog /var/log/virtualmin/perfectprofiler.com_access_log combined


A host file? You mean /etc/host or C:\Windows\System32\drivers\etc\hosts to override DNS?

Whats in your host file? Thats sounding like a DNS/virtual host problem. I can see from your virtual host config file that its using IP based virtual hosting - not name based? I think you need to tell your domain to point to your droplet, then setup the joomla virtual host to be named based and not IP based.

With symlinks - it depends what its doing. It looks like your config for joomla is saying follow symlinks if owner matches. I’ve just read that several hosts have moved over to that as its more secure for shared hosting. Have a look at the link below - it seems to describe similar behavior to yours even though its on drupal. You might consider changing it to followsymlinks.

I think we should concentrate on getting the site viewable without a host file/500 internal error before tackling other stuff. Other members of the community might jump in with the answer to the other stuff, also :)

Its probably an apache configuration problem.

Are there any errors?

What do the logs show?


You’ve said they don’t function as intended. You need to provide much more detail. The more you give, the more chance you have of getting help. Its also always helpful to post your distro, apache version, php version, config files of apache (via paste bin is probably best).