Background: - I always been on shared hosting but decided to host my new site on a VPS.
- VPS and Linux n00b (although I use a Linux machine for day to day use)
Requirements: - Will be hosting Wordpress sites on the main domain and on a sub-domain
- Main domain will be pretty static
- Sub-domain will be hosting another wordpress site
- Will be using Interspire email marketer on both main domain and on the sub-domain separately for weekly/monthly news-letters
- The sub-domain should be able to handle some unexpected traffic spikes.
- Will be using separate email addresses for them. i.e. main domain will be using @maindomain.com and the sub will be using @sub.maindomain.com email addresses
- The operation of the main domain and sub will be separate.
What have I done so far:- At first I installed the lamp stack by following the Quick Start Guides of the Linode libarary, and it was fine, the demo site was working.
- Then I wanted to install Ispconfig and phpadmin because I prefer to use an GUI
*after the Ispconfig and phpadmin installation the site stopped working* After googling and browsing this forum, I realised that I should install the Ispconfig first BEFORE deploying the LAMP
- I rebuilt the linode and installed the Ispconfig first. Ispconfig was working fine as well as
http://176.58.122.148/ <--it was showing "It works!" message.
- Then I decided to optimize Apache, PhP, Mysql etc (which were installed with the Ispconfig) as shown here
http://library.linode.com/hosting-websiteAlso I created the firewall as shown here
http://library.linode.com/securing-your-server After this, both the
http://176.58.122.148/ and the ispconfig are showing 403 forbidden "You don't have permission to access / on this server"
I checked the /home/user_name/public/sitename.com/public's last "public" directory permission/file attributes on filezilla, it is showing 755.
Now my patience and energy are running out as I spent the whole weekend on this.
So I would really appreciate if anyone could tell me what have I done wrong or what should I really do in order to achieve those requirements?
Thank you very much.
Update:Just checked the error log using filezilla at /home/usernae/public/site.com/log/error.log
It is saying [Mon Sep 17 10:50:39 2012] [error] [client *ip-address*] client denied by server configuration: /home/username/public/sitename.com/public/
Update-2After more googling I came across to this post
http://www.cyberciti.biz/faq/httpd-clie ... iguration/ and updated the apache configuration according to that post.
The apache configuration now look like this
Quote:
# domain: example.com
# public: /home/example_user/public/example.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin
webmaster@example.com ServerName
http://www.example.com ServerAlias example.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/example_user/public/example.com/public
# Log file locations
LogLevel warn
ErrorLog /home/example_user/public/example.com/log/error.log
CustomLog /home/example_user/public/example.com/log/access.log combined
</VirtualHost>
<Directory "/home/example_user/public/example.com/public">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Now the
http://176.58.122.148/ is working BUT Ispconfig saying can't connect.
I am still lost
_________________
Ubuntu 10.4 LTS, Apache2, LAMP, n00b
Online Shopping