Setup Bind Dns, Apache, And Vsftpd
Nov 11, 2008
I been using plesk, and cpanel so this is the first time I have Webmin for my CentOS.
After some googling and reading, i able to install apache, mysqld and vsftpd (for some reason, my host (hivelocity) didnt install these. So this is my setup.
a.com: in godaddy, i add nameserver host as ns1.a.com and ns2.a.com and change the dns to point to that
b.com: in godday, point dns to ns1.a.com and ns2.a.com
BIND DNS Server
========================
I create two master zone for a.com and b.com
a.com
Code:
$ttl 38400
a.com. IN SOA server.a.com. abc.yahoo.com. (
1226206691
10800
3600
604800
38400 )
a.com. IN A 1.2.3.4
server.a.com. IN A 1.2.3.4
a.com. IN NS server.a.com.
mail.a.com. IN A 1.2.3.4
ftp.a.com. IN CNAME a.com.
www.a.com. IN CNAME a.com.
a.com. IN MX 10 mail.a.com.
b.com
Code:
$ttl 38400
b.com. IN SOA server.a.com. abc.yahoo.com. (
1226206691
10800
3600
604800
38400 )
b.com. IN A 1.2.3.4
server.a.com. IN A 1.2.3.4
b.com. IN NS server.a.com.
mail.b.com. IN A 1.2.3.4
ftp.b.com. IN CNAME b.com.
www.b.com. IN CNAME b.com.
b.com. IN MX 10 mail.b.com.
APACHE
========================
I created 2 virtual servers for a.com and b.com
/home/sites/a.com/html
/home/sites/b.com/html
I create an index.php in a.com/html with content: "a.com YEAH"
I create an index.php in b.com/html with content: "b.com YEAH"
After wait for dns to propogated,
when i try to go to a.com, content "a.com YEAH" shows up.
But when goto b.com, content "a.com YEAH" shows up? Why?
Also, when goto ns1.a.com, content "a.com YEAH" is there.
I also has problem with vsftpd but let fix that later.
View 4 Replies
ADVERTISEMENT
Aug 20, 2014
I would like to setup a caching Bind nameserver for which I need to modify the file /etc/named.conf. The file is automatically created by Plesk however and I am unable to find information on how to modify the file in Plesk.
Code:
#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
// $Id: named.conf,v 1.1.1.1 2001/10/15 07:44:36 kap Exp $
Any way to modify named.conf?
View 1 Replies
View Related
Apr 29, 2007
I have a big problem because ban command for APF:
Quote:
/etc/apf/apf -d iptoban
Doesn't working for vsftpd service (only for apache & ssh).
Code:
Apr 29 13:35:05 xxx vsftpd: (pam_unix) authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=217.20.127.191 user=web0
How can I ban this IP for vsftpd service in APF?
View 0 Replies
View Related
Sep 12, 2007
Which one would you consider using the most? Currently I use vsftpd and while it's fast and light, it's a real pain in the butt to add new users I've found (adding shell users except it doesn't always work). I was reading up on how to add users on pure ftp and they had something called virtual users which looked really nice...
View 9 Replies
View Related
Apr 24, 2007
Server is currently running on proftp with cpanel. If I switch to vsftpd, will all the ftp accounts work and can I manage them through cpanel?
View 1 Replies
View Related
Apr 23, 2009
I am setting up a shared Server with apache2 and php5 + suhosin +suPHP + vsftpd.
The Directory Structure is:
1. DocumentRoot
/var/www/virtual/website1
/var/www/virtual/website2
/var/www/virtual/website3
............etc
2. For each website I would create a system account and tie it to each virutal host(as required by suPHP)
chown -R John:group1 /var/www/virtual/website1
chown -R Mary:group1 /var/www/virtual/website2
chown -R Ben:group1 /var/www/virtual/website3
...........etc
<VirtualHost 192.168.100.44>
DocumentRoot /var/www/virtual/website1
ServerName www.website1.com
suPHP_UserGroup John group1
</VirtualHost>
<VirtualHost 192.168.100.45>
DocumentRoot /var/www/virtual/website2
ServerName www.website2.com
suPHP_UserGroup Mary group1
</VirtualHost>
........etc
3. I setup vsftpd with chroot to each virtual host.
This works very nice as long as each client has only one ftp account. But if a client(website1) wants to have multiple ftp accounts( ex. john, john100, john200), they would mess up the file ownership when they upload and change files. Since suPHP executes PHP scripts with the permissions of their owners (suPHP_UserGroup John group1, suPHP would complain their setid is mismatched because the John100 is not the suPHP_USERGROUP owner(John). I have tried Virtual Hosting with Vsftpd and Mysql, that didn't work because all the virutal users would be acting as one user (guest_username=virtualftp) when they upload and change files. I am wondering if there is ways to allow multiple ftp accounts for each Virutal host working together with suPHP. Or It is possible for ftp user to change ownership once they log in.
View 3 Replies
View Related
Nov 8, 2008
I have been pulling my hair out all day trying to fix this issue, which should be simple in theory.
Basically in summary, vsftpd is running on the server, I can't connect to FTP from my own computer.
I have tried many things, but right now the way it stands is my vsftpd.conf file has listen=YES. I did a netstat -pan, with a return of:
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 29984/vsftpd
I can telnet/FTP into port 21 locally, so vsftpd is indeed running properly, but I cannot connect from the outside at all. I have also commented out everything in /etc/hosts.allow.
At this point, I am out of ideas. And to top it all off, I'm on a tight deadline. Usually works out there way doesn't it?
View 5 Replies
View Related
Jun 4, 2008
working with Ubuntu (and unix/linux) in general. I have, however, managed to install vsftpd and configure it in what I believe is a correct manner.
However, upon attempting to upload a file, I get a "could not create file" error which seems to imply that I don't have permission. The account that I'm logged in under is an administrator account.
My configuration file is:
Code:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
ftpd_banner=Welcome to the Web-Ideals FTP Service! We're awesome.
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
View 0 Replies
View Related
Jul 11, 2008
With Red Hat Enterprise Linux 4 (RHEL 4), are updated packages made available, or are only security patches backported? Specifically I'm interested in vsftpd. Version 2.0.1 is included in the RHEL installation on a server I'm working on, but there is a bug fix in v2.0.4 that I'd like to get access to.
Is there an easy way for me to browse / search what packages are available for RHEL 4, preferably via website?
View 5 Replies
View Related
May 26, 2007
I have a RHEL 4 plain server, and im using vsftpd server, i can not find an option to specify the max size for uploading files... does anybody know something about this?
View 1 Replies
View Related
Jul 11, 2007
my box has 2 ip's on it. venet0 and venet0:1. Apache is binding to both ip's. I only want it to bind to one IP and leave the other one free (on port 80 at least), before i go in and edit the apache config files by hand, is there any way to ensure i dont break anything in cPanel by doing this (i.e. are there any dependencies or does cPanel even have an intermidiate config for doing this)?
View 1 Replies
View Related
Apr 20, 2014
When I open my site in a browser and I point the URL to specifically // ipaddress / location A it's all good. (Apache Server)..My problem is, if you open the site in a browser with just the IP address alone it goes there for a second and then automaticlly goes to and opens the other site in location // ipaddress / location B.
However, what I need it to do, I think, is edit the apache conf file to make it open location A as the default. What do I need to do in the apache (httpd-conf) to fix that? For that matter is that the right file to edit?
View 1 Replies
View Related
Mar 19, 2007
Right now I am using the built-in cpanel backup feature to backup all the accounts on my server to an offsite FTP backup account I have on a weekly basis. The problem I am having is that everytime the backup runs, the load (thats what I'm guessing is the cause) is crashing apache/bind, causing sites to be unreachable until I can restart the services. What options do I have to resolve this issue? Currently I already have spri installed, and it does help out a bit, but its still not enough.
View 4 Replies
View Related
Mar 5, 2008
Im using AJAX on my site and i need to access a seperate server instance on a different port. AJAX wont allow me to do that so i want to use Apache as a proxy but only for one page.
View 4 Replies
View Related
Aug 7, 2014
I have a fresh Ubuntu 14.04 install (desktop). I installed Apache, php and mysql from APT and updated everything.I tried to setup a virtual host using these directions: URL...I followed them to the letter:
o I created a folder /var/www/mydomain.local/public_html
o I copied the 000-default.conf in sites available and modified it
o I added mydomain.local to my hosts file (with IP of 127.0.0.1
o I used a2ensite to enable the host
o I used service apache2 reload
When I went to mydomain.local in firefox, it took me to the default host main page.I tried a restart of the service and even a reboot of the computer. No change.On a theory, I used a2dissite to remote 000-default from the enabled site list and reloaded the service. I got the home page for mydomain.local after that.
I created a named host called localhost and reloaded the apache. When I went to http://localhost it took me to the mydomain.local homepage. Rebooted the computer. Now, localhost gives me the apache default home page and mydomain.local does not work at all (I get a server not found).
I get the feeling that there is an apache configuration item I am missing but I cannot find it.
View 1 Replies
View Related
Oct 7, 2012
I am struggling with this all the day, no answer i found here as well. how to setup proper a subdomain i need. My Apache config has 2 domains configured (on same IP), for the domain2.com i need to setup a sub-domain. Here is what i have so far, but the subdomain keeps redirecting me to domain2.com (main site).
View 2 Replies
View Related
Jun 10, 2015
I am using Apache 2.4 and Jboss 7.1 on Windows server 2012 server. requirement is to have SSL offload in place for communication between Apache to Jboss. Apache will be secured to handle client requests from Apache onwards all servers in trusted zone hence there is offload requirement.
View 6 Replies
View Related
Apr 11, 2014
i have setup everything before using ssl without issue for using https url.Now I'm having issues for Apache 2.4.9.
In url https://tomysite.com i get
Not Found
View 7 Replies
View Related
Dec 19, 2013
URL....how to setup apache so files are downloadable from it. I guess I should also be using SSL.
View 1 Replies
View Related
Jan 25, 2014
Where can I get examples to create login ID and password with changing of password function for valid user to access apache web server?
View 3 Replies
View Related
Feb 25, 2005
Starting linux for hosting (HOW TO SETUP DNS< APACHE AND SENDMAIL) in RH 9
hi does anyone know to setup these or could dirct me to step by step tutorials please.
View 2 Replies
View Related
Sep 22, 2009
I installed apache, mysql, php on my windows vista laptop, and want to test http downloading. This means when selecting a file (for example, contact.php) from a page, and then click download, it will be downloaded to my desktop.
Do we need to install any other softwares to do that?
View 10 Replies
View Related
Feb 7, 2008
Does anyone know how to install the Frontpage Server Extensions on an Apache server which is running on a Windows box? I've searched around including on Microsoft's site, but I was only able to find info on how to configure for Apache running on unix/linux.
View 0 Replies
View Related
Nov 24, 2007
I don't have any SMTP server
Its a dedicated unmanaged server that has windows 2003 and apache running. I heard you need IIS to enable SMTP on a Windows machine but I don't want to run IIS because I feel Apache is better.
View 4 Replies
View Related