Ubuntu Servers :: Using Vsftp And Apache2 For Website?

Jun 19, 2010

I recently put a new install of Ubuntu 10.04 Server on an old dell I had sitting around the house with the intention of using it as an all purpose server machine (website, teamspeak, ftp, storage, etc.). I am running apache2 for the web server and want to use vsftpd to edit the website contents through FTP. The issue I am running into is that vsftp doesn't have permissions to write /var/www/ which is the default website directory. The flip-side issue is that apache2 doesn't have permission to access the /home/user/ directory which vsftp has permissions to write.

Because I am only interested in running a single website (no virtual machines/no extra IPs) fixing either apache2 permission or vsftpd permissions would fix the problem.Changing DocumentRoot to /home/user/ will make apache2 point to the new directory but I get a 403 error. I have no idea how to change application permissions.I need to use to give permissions for vsftp to write /var/www/ (vsftpd.conf is configured to allow write in home directory) OR the command I need to give permissions for apache2 to access /home/user/? I assume it is a chmod command but I have never used this and don't know what the permission codes (777, etc.) do in terms of giving me the necessary andsufficient app permissions. I don't want to give the app. too much access and risk creating some security flaw.Here are my vsftpd.conf, default (website config file) and apache2.conf.apache2.conf

Code:
#
# Based upon the NCSA server configuration files originally by Rob McCool.

[code]...

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: LAMP Apache2 Starts And Stops Well But No Website

Nov 17, 2010

I have a small network of an Ubuntu server 10.4 , Debian server, Win XP, and an ubuntu desktop 10.4. I have configured a DNS server and DHCP server successfully on my ubuntu server, also a slave DNS server on Debian. I recently configured apache2 as part of LAMP on ubuntu server, but when I type my ServerName in the URL of my Win XP browser, I get this response: The webpage "mansour.net" cannot be found DNS error occurred. Server cannot be found. The link may be broken.

I have an A Record in my DNS zone file for mansour.net and have that as my ServerName in apache2 Definition file, but I don't know why it is not working. I am trying to learn to install and configure various servers on ubuntu.

View 8 Replies View Related

Ubuntu Installation :: Webmin As Live Website Using Apache2

Mar 17, 2010

I have installed LAMP. Configured acc. to documentation. I have installed webmin and able to access it. Configured Apache2 and able to access default website www.url.com from public network. But now when I am trying to run [URL] as alias, I am really confused because whenever I type [URL] in web browser, it shows me webmin file instead of GUI. I followed this documentation: [URL]. Anyone have webmin running as website?

View 2 Replies View Related

OpenSUSE Network :: 10.3 - Hosting ASP Website (Apache2 Setup)

Feb 8, 2011

I'm completely new to this whole hosting on linux thing. I'm using apache2 and have everything setup as if I was doing it on a windows machine but when I navigate to the site via URL it displays the source code as plan text and thats all I see. I'm running openSuse 10.3.

View 9 Replies View Related

Fedora Servers :: Dreaded Vsftp "500: Cannot Change Directory" Error Not SELinux Related?

Sep 12, 2009

When I try to login as a user, I get the dreaded "500 OOPS: cannot change directory:". Almost every posting I can find related to this problem was due to SELinux being enabled. My SELinux is operating in permissive mode. So why can't it open the home directory when I log in as the tarheelnk user?

Code:
[root@server1 home]# ls /home/ -l
total 36
-rw------- 1 root apache 7168 2009-09-11 16:24 aquota.group
-rw------- 1 root apache 7168 2009-09-11 16:30 aquota.user
drwx------ 2 root root 16384 2009-09-11 10:07 lost+found
drwsrws--- 4 tarheelnk apache 4096 2009-09-11 14:58 tarheelnk
code....

View 1 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Cant Uninstall Apache2?

Apr 9, 2011

So i want to remove Apache2 so i can compile my own edited version. But when i do it says that it cant remove it. here is a 'log':

Code:
geisst@ubuntu:~$ sudo apt-get purge apache2
Reading package lists... Done

[code]....

View 5 Replies View Related

Ubuntu Servers :: Apache2 Fails To Start ?

Jan 17, 2010

How to resolve this apache2 problem I keep getting, I have installed a debian LAMP server with ispconfig3 and everytime I reboot apache fails to start, I don't know and I have done some research but nothing seems to work, which leads me to reinstall everything from scratch again, I think I have reinstalled at least 10x or more.

When ever I reboot I get the following error

Code:

View 9 Replies View Related

Ubuntu Servers :: Perl .pl, Cgi-bin Apache2 Configuration On 9.10?

Jan 18, 2010

Very new to Ubuntu (linux) in general and read various forum and threads to get .pl file to run on a new Ubuntu 9.10.My cgi-bin is in /var/www/site/cgi-bin. The server will run 2 websites site1 and site 2. Site2 is html only and site1 has some cgi and pl files. Everytime i get to the cgi-bin/other_director the browser tries download the file or even if going directly to index.pl. Please find attached my site-available for both default and site1 for your consideration. I also ran a2ensite site1 and a2ensite site2, the reloaded the apache2 serverQuote:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www

[code]....

View 2 Replies View Related

Ubuntu Servers :: Apache2 - HTAccess Will Not Work

Feb 9, 2010

I'm a newb when it comes to linux operating systems so I'm attempting to get better through experience. I work for a web development company and we use Ubuntu for our operating systems (the programmers at least). Anyways, I'm trying to install LAMP services and get them working. I have all L.A.M.P. services installed... but Apache2 is giving me a problem. I have an .htaccess file installed in a directory under my document root. But Apache2 is not interpreting it. I have AllowOverride All on but I can't figure it out. I did make a bogus .htaccess file attempting to make apache give me a error, nothing.

View 2 Replies View Related

Ubuntu Servers :: Apache2 Is Missing Apxs2?

Mar 9, 2010

I'm configuring an Ubuntu server that's running x64 9.1. I installed the LAMP stack during the os installation and now I need to build an apache2 module. It appears as though apxs is missing. I've installed apache2-threaded-dev but am still missing apxs2.

View 4 Replies View Related

Ubuntu Servers :: Apache2 Running But Can't View

Mar 14, 2010

I have had a LAMP setup on my computer for a while without any trouble but I have suddenly become unable to access it through either localhost or my IP address. I have tried removing and reinstalling the packages but it still doesn't work and the /var/log/apache2/error.log does not give me any errors.

Here is my apache2.conf

[URL]

View 5 Replies View Related

Ubuntu Servers :: Apache2 Log Files Not Rotating?

Mar 29, 2010

I can't get my apache2 log files to rotate on an Ubuntu 8.04 64-bit server install.

Does anybody know of logrotate creates an error log somewhere by default?

Here's my /etc/logrotate.d/apache2 file if someone has any insight if I am doing something wrong.

/var/log/apache2/*.log /var/log/apache2/portal/*.log {
weekly
missingok
rotate 52
nocompress

[Code].....

View 9 Replies View Related

Ubuntu Servers :: Cannot Get PHP To Open In Firefox With Apache2

Apr 12, 2010

I'm using Ubuntu 9.10 with Firefox 3.5. I am trying to open a local php file in Firefox. I already installed Apache2. I already installed the PHP5 modules for Apache2. I already tried restarting Apache2 and I cleared Firefox's cookies and cache. Apache2 is currently running and PHP is in the "mods-enabled" folder. Yet every single time I try to open a local PHP file, Firefox asks me what program I want to use to open it. I have no idea how to proceed at this point.

View 7 Replies View Related

Ubuntu Servers :: SSL Only On Apache2 Virtual Host?

Apr 16, 2010

I currently have a virtual host setup to accept SSL connections as follows:

Code:
<VirtualHost *:443>
DocumentRoot "/var/www"
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem

[Code].....

How would I change it so that it can only be accessed via HTTPS ??

View 4 Replies View Related

Ubuntu Servers :: Can't Load Apache2 Mod_security

May 4, 2010

I'm attempting to use mod_security with apache2 but it doesnt seem to load. Running Ubuntu 9.10.

Code:

$ ls -a mods-enabled/
. authz_host.load dir.load php5.load
.. authz_user.load env.load setenvif.conf
alias.conf autoindex.conf mime.conf setenvif.load

[code]....

View 1 Replies View Related

Ubuntu Servers :: Apache2 - Cannot Parse PHP Files

May 5, 2010

I have apache2 installed along with php5 and mysql5.0. I have installed them by themselves along with just installing the full LAMP install through terminal. My problem is that I cannot parse php files, it will just download them instead. I did change my apache server to nick/projects (nick is my username). If I navigate to localhost/index.html it works fine but will not parse the php files I have put there. I also have rails working fine in that folder too using apache2.

View 7 Replies View Related

Ubuntu Servers :: Apache2 Reverse Proxy ?

May 11, 2010

A first server with apache2 installed and configured as reverse proxy, that works great, with this version:

That works mostly, but fail with an oma (outlook mobile access) redirection

It works for all reverse sites hosted, but when we try to connect to oma using a nokia phone, it fails.

I can see in access.log that it hangs on FolderSync istance.

I've used wireshark to sniff packets, and in oma server I can see only three way handshaking coming...

My doubt is: when I'll upgrade working server, also it will not work anymore...

Configurations are the same (I've copied /etc/apache2 folder from running one to new one).

View 1 Replies View Related

Ubuntu Servers :: Apache2 Link To FTP Assistance?

Jun 22, 2010

I have an apache2 web server running on ubuntu server (Ver 2.6.27-7-server) running just a basic Mediawiki site for our group internally. It's just a basic info wiki, and it also hosts a bunch of large .iso files for the group to download if they need them. The latter part is where my latest issue has come up, and I'll try to keep it brief.

We moved all the .iso files to a FTP server that we just got up and running, since the FTP site has goads more space available on it's NAS shared drive than my wiki server whose hard disk is rapidly shrinking with all the .iso files on it. Now, the FTP server is outward facing unlike the wiki server, so obviously it has to have user/password authentication unlike the wiki, which is only internal.

I want to be able to link from the wiki server directly to the files on the FTP server without the user being prompted for a password, while still keeping a decent transfer speed.

So far I've tried 2 methods that have "worked".

First, I mounted a local folder on the wiki to the FTP server using CurlFTPfs by adding a line in the /etc/fstab file.

Code:
curlftpfs#iso:ftpiso@172.17.12.19 /var/www/downloads fuse allow_other,uid=www-data,gid=www-data 0 0

This actually works perfectly, I can link to the files and never get prompted for credentials, however the transfer rate is abysmal. under 100kb/s over a gigabit connection, rather than 10MB/s I can get if using an FTP client directly.

The other method I used was enabling the mod_proxy_ftp and simply redirecting to the FTP using the wiki server as a proxy.

In the virtual host file:

Code:
ProxyPass /download ftp://iso:ftpiso@172.17.12.19
ProxyPassReverse /download ftp://iso:ftpiso@172.17.12.19

This speeds things up a little ~230kb/s however I still get prompted for credentials.

Is there any way possible to get it to work like the CurlFTPfs method but still get decent network xfer rates?

View 1 Replies View Related

Ubuntu Servers :: Configure A Few VirtualHost In Apache2?

Aug 10, 2010

I applogies if this doesn't fit or if this is right in from of my face but, I'm a bit confused.I'm trying to configure a few VirtualHost in apache2. I currently a default virtualhost and 2 other sites. No matter which domain I visit I still get the default page.. My Confusion is, I've been reading and some places seem to say that my virtual hosts should be in /etc/apache2/sites-enabled/*Config File* and other seem to say it should be in /etc/apache2/httpd.conf what the awsner... I've tried both ways with no success .... If I put NameVirtualHost in httpd.conf I get an error saying their are no virtual hosts.

View 2 Replies View Related

Ubuntu Servers :: Uninstalling Apache2 From Lamp?

Aug 25, 2010

Basically I've made a right **** up of my apache2 configuration and I just want to un-install apache2 and re-install so I can start again.

I've done research on this but the guides have always been for people installing using "apt-get" or "rpm" packages. I've tried these methods but nothing has worked.

The way I installed lamp was from selecting it in the different options when installing ubuntu-server from disk.

Is there any way I can do this through the terminal and not through synaptic, only reason being is that I'm ssh'ing across a local network.

View 2 Replies View Related

Ubuntu Servers :: Https Setup With Apache2?

Sep 15, 2010

I have a site called http:[url]....configured in apache virtual hosting.Is it possible to make it use https like the below https:[url]....

View 1 Replies View Related

Ubuntu Servers :: Apache2 Not Working After Update To 10.10

Oct 12, 2010

i did the update for server 10.4 to 10.10 and now my apache 2 not working.

View 1 Replies View Related

Ubuntu Servers :: ISPConfig With Existing Apache2

Nov 28, 2010

I would like to install ISPConfig 3 on my Ubuntu 10.04 server. However, when I tried doing this according to the "perfect server" instructions at HowtoForge, all my virtual hosts would suddenly return a 403 error whenever i tried to access them. The stange thing is that all my virtual host configurations where still in place and enabled. I do understand that ISPConfig automatically configures Apache2, but is there any way to install it without ruining the existing configuration?

View 3 Replies View Related

Ubuntu Servers :: Apache2 SSL Forward To Another Port?

Dec 1, 2010

I have an apache2 server on a Debian box that I am using as the reverse proxy for my sites that are sitting behind it and everyone is happy. But now I want to be able to access my vmware server console from outside the network without exposing the vmware server port to the internet. So I did this I created a new virtual host for apache and it looks like this (edited for the real world)

Code:
<VirtualHost *:80>
ServerName server.my.domain
# RewriteLog "/var/log/apache2/rewrite.log"
# RewriteLogLevel 9

[Code]....

So here is what I want to be able to do. I want to be able to punch in [URL] and have the reverse proxy just take care of everything else without having to punch in the port number or anything else. I'd also like to have if possible the ssl on the vmware box just pass through the proxy back to the end user. If that isn't possible and I need to create a new ssl for the apache box then that is ok too. I have googled this and looked at several other sites but I'm still a little bit lost.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved