Virtualmin webiste problem

July 10, 2013 6.1k views
Hello I have installed virtualmin panel on centos, with as the main domain. now after creating a virtual server for when I visit the website it shows that "You don't have permission to access / on this server." Please help me in getting this, after this I am going to setup ftp and email services, and this would be a step by step process for complete website setup. I have tried everything explained on DO tutorials, forum and other tuts on web, till now I have been only able to setup with cpanel..... I have tried without control panel, with virtualmin, zpanel , ispconfig2 etc but was not able to setup any of these.. Any help is appreciated. Thanks
1 comment
  • I'm sure that you found a solution but this goes to anyone who could be encountering the same problem.

    Just create an index.html file in /home/your_virtual_server_username/public_html folder

    if that fails,

    type the following command

    sudo chmod 755 /home/your_virtual_server_username -Rvf
21 Answers
What are your current permissions for your root web folder?

As an aside, are you going to be hosting your own website(s) or are you planning on selling web hosting to customers?

Lastly, if (assuming) you're a beginner, why not go with 64-bit Ubuntu Server 12.04 LTS, instead of CentOS?
thanks for your reply.
1) firs of all I am confused with my root directory as there are no directory name by the domain names, i.e. or
according to virtualmin my root directory is \home\usename1 and its permission is drwxr-x--- 11

2)I am going to host my website , but there are more than 1 website

3) Yes I am a total newbie, and using centos because in case I am not successful with other solutions , I have an last option -- cpanel

Can you please let me know why do you prefer ubuntu over centos.?

Do you have any files in the domain's document root? Try adding in a index.html file, it usually fixes that error.
@kamal Thanks, it worked.
Now I have created the ftp too and it also works, but while starting it gives some kind of warning message.
Now my problem is I have created email accounts but not able to send and receive emails. i get the following error message "Failed to send mail : Failed to connect to localhost:25 : Connection refused"
If you put five Linux geeks together in a room, you'll get five different opinions and no agreement on anything. With that said ...

Nothing makes any OS better then any other. It's all a matter of (i) outlining your goals or objectives; (ii) identifying the relative strengths and weaknesses of the various OSes out there; and (iii) selecting the OS whose strengths match most of your goals or objectives. Even then, you'll find yourself, most of the time, having to pick from more than one OS (a testament to the quality of most Linux distro's out there). Thus, often, the most cited reason people give as to why they chose one distro over another is (iv) personal preference.

At their core, Ubuntu and CentOS are EXACTLY the same: Both are built on the Linux kernel.

Normally, distributions are made for specific reasons and have been tailored to address a series of concerns. There are many versions of Linux that were developed specifically to be installed on servers that receive heavy traffic, like web servers. Some distributions of Linux were developed to be used in networks where security is a priority; where sensitive information should only be accessed by a privileged few.

The basic differences between CentOS and Ubuntu are:

CentOS is based off of RedHat and Ubuntu is based off of Debian. For serious - near enterprise - level server requirements, CentOS would suit you perfectly. The downside (for some), however, is that RedHat has a tradition of being more conservative (not so quick to provide the 'latest and greatest'); thus, CentOS is also 'conservative'. In contrast, the package repositories of Ubuntu contain fresher packages, while CentOS tends to focus more on security patches. Many regard Ubuntu as a good, easy to use OS and, thus, a perfect starter server for those who are willing to learn Linux and don't know where to start.

I anticipate that the most influential factor for most newbies are the "communities" for each respective distro. If you are looking for which is better for you, I would suggest to browse through their forums and see which one you like better. I would venture to guess that the Ubuntu forums will have more newbies than the CentOS forums--hence, you'll probably find answers to your questions a lot quicker/easier, simply b/c you'll share a lot of common questions with more people in the Ubuntu forums.

If you're married to cPanel, then you have to run CentOS--cPanel doesn't work on Ubuntu. If you're open to an open-source control panel, such as Webmin/ Virtualmin; ISPConfig 3 or Zpanel (or, better yet, no control panel at all!), then either distro is fine.

In 2012, W3Techs reported that Debian became the most popular web server in the world. The report went on to note that many sites subsequently switch from Debian to the Ubuntu distribution (which is based on Debian). One note of caution, however, is that Debian had held the No. 1 spot before and it lost that position in June 2010 to CentOS. So, it's fair to infer that people's preferences change quickly.

Bottom line ... either CentOS or Ubuntu can/ will do. They are very similar and after someone becomes comfortable with one, the other distro is not that difficult to dive into (you just have to remember where things are located).

According to DistroWatch's Page Hit Rankings, the most popular Linux distributions (for the last 12 months) are:

1.) Mint;
2.) Mageia;
3.) Ubuntu;
4.) Debian;
5.) Fedora;
6.) openSUSE;
7.) Arch;
8.) PCLinuxOS;
9.) Puppy;
10.) Zorin;
11.) Centos;
Thanks of the your information and comparison between the linux distro. As you highlighted "near enterprise - level server requirements" i would go with Centos.
I have been able to solve the first problem now my problem is with emails, if you can help me out in this I would be very thankful to you.

If you're not going to be (i) selling hosting services to customers that (ii) require the ability to log into their own user accounts... why use a control panel at all?
I have even tried without control panel, I was able to create websites, but was not able to upload files through ftp/filezilla , not able to create email a/c and send emails ?

I you can provide any link to a detailed tutorial for ftp and emails , then I would like to try once more without control panels.
What platform/ framework are you using for your website? WordPress Multisite?
PHP MySQL application and there would be more than one domain for different application
For your information my requirement would be
1) php
2) mysql
3) bulk email
4) heavy traffic
5) file uploads
6) phmyadmin
7) security

Yea, I would totally say: Dump the control panel and follow these:

1.) How to Install Wordpress, Nginx, PHP, and Varnish on Ubuntu 12.04

2.) WordPress email notifications
by Etel Sverdlov
Varnish is an HTTP accelerator and a useful tool for speeding up a server, especially during a times when there is high traffic to a site. It works by redirecting visitors to static pages whenever possible and only drawing on the server itself if there is a need for an active process. This tutorial covers installing wordpress on a LEMP stack (with nginx instead of apache), and then installing varnish.
What did you do for e-mail prior to signing up w/D.O.?
thanks I will try these too now
I was sending emails through my hosting provider, but it has some limitations. so thought of doing myself through the mail server.
If you're going to be doing bulk e-mail you're better off going through a service like MailChimp; so that you minimize the number of your e-mails going into recipients' Junk Mail folders.
Ok, But at least can I go for transactional emails from my server ?
For sure. It's simply a question of how robust of an e-mail program you want. I'd imagine that a lot of people outsource their email (like I do) to Google Apps--given that it's relatively cheap @ approx. $5/user/mo.
I have never used google apps, can you let me know whether I am able to send emails from my scripts through google apps and is there any limitations of no. of emails?
You could if you used Google's SMTP server settings. I believe Gmail has a limit of 500 emails within 24 hours; and Google Apps is limited to 2,000 emails per day.
Have another answer? Share your knowledge.