Fedora Servers :: Setting Up Tomcat Per-user (/home/username/public_html Executing Of JSPs)?
Mar 8, 2010
I'm sorry if this has been posted already but I REALLY did look and couldn't find the same issue(s) addressed anywhere. Similar, but not similar enough, in my opinion, to barge in and switch the subject.
Ok, I have Apache httpd set up so I can use a public_html folder inside of my /home/username directory. Now, I'm about to take a web dev course that teaches JSP/Servlets for building web applications and I'd like to set my environment up so that I can execute .jsps from my web root (/home/username/public_html) just like I would a CGI or PHP script. I have a web host that will give me JSP support for a few extra bucks a month, but I'd rather do it locally... and free.
I have Tomcat installed and running wonderfully. The test page and all the examples work fine and execute immediately. But when I try to execute a .jsp file inside of my web root (/home/username/public_html) I just get the raw Java tags and plain-old HTML rendered in my browser. I pretty much knew that wouldn't work; that'd be way too easy. I just wanted to see what would happen.
I looked through all the tomcat ".conf" files I could find to see if it was similar to setting up httpd inside of my home directory, but I didn't have any luck. It's not a file permissions problem... I've been messing with web "scripts" long enough to check that the files are executable. All of the files needed (borrowed from the examples that come with Tomcat) were in their correct paths inside of my web root, as well. Added :8080 to the end of localhost (like you do to see the Tomcat test page(s) instead of the httpd test page) but that didn't help.
I scoured the web for directions but could only find one solution that was Ubuntu-specific (just install tomcat6-user-something-or-another.deb, which doesn't exist in the Fedora repos), then I looked around here, trying every search term that seemed reasonable to me, and I can't find anything.
I realize I can just write the code and put it in a directory that does allow these things to be executed (var/lib/tomcat6/blah-blah-blah/going-by-memory) and run them from there, but I'd like to be able to just keep all of my web files in the same place; a place where I have full permission to do whatever I want... my home directory public_html.
Is this possible (has to be, right?)? Is this a dumb idea to begin with (I'm prone)? What is the best way to develop JSP/Servlets without having to deal with permissions every time I want to put a new script in a directory outside of my home directory that's already set up to allow the execution of said script?
View 3 Replies
ADVERTISEMENT
Sep 27, 2010
I have tomcat 5.x installed and is running on port 80(with mod_jk setup). The directories 'manager', 'examples' and 'ROOT' were removed under /usr/share/tomcat/webapps/ and rebuilt them copying from a working tomcat server. When I acces [URL] (or) [URL], it keeps on prompting for the password even after enter correct username and password.
View 1 Replies
View Related
Nov 3, 2010
I recently installed vsftpd on my server. I noticed that users on the machine can login into vsftpd with their username and password on the machine and go to their root dir "/home/username".Now, I want to give some people a vsftpd username and password so they can upload and download files and folders to their folder, but this folder has to be in the "/var/www/(username)" folder. I don't want them to be able to go to any other folder than their own folder like "/var", "/etc" or "/home" etc. Also I don't want them to be able to login on the machine as a user, through putty for example. They should only be allowed to acces their folder with vsftpd, nothing else.
View 1 Replies
View Related
Sep 10, 2009
I've just set up apache and can't make public_html dir to work. I followed this tutorial:http://fedoraphprails.blogspot.com/2...user-home.htmlAnd I'm still getting:Quote:orbiddenYou don't have permission to access /~gal/ on this server.Apache/2.2.13 (Fedora) Server at localhost Port 80
View 2 Replies
View Related
Dec 15, 2010
I'm trying to restrict a particular ssh user to his home directory, I'm just giving him access so that he can ssh to another server that is only accessible from the former but restrict his movement so that he can't poke around the former.I already made some changes to sshd_config file and added the following line at the end:
Did some test, user joe can ssh to the server but unable to do anything aside from logging in, even a simple ls command will immediately close the putty session. I know I'm still missing something but don't really know what it is.I also tried this how to that uses rssh --> http://www.adamhawkins.net/2009/05/r...ured/#more-431 however when I login the session immediately closes.
View 5 Replies
View Related
Apr 11, 2010
I am stuck with an issue related to domain hosting. Currently i have an application hosted in my own server using a static ip from a service provider. I got a domain name from another domain provider. Everything went in right way till when i click my url in browser using internet through another system. I am able to see my application when i use my ip address, where as when i use my domain name its not working.
[Code]....
View 2 Replies
View Related
Apr 17, 2010
I have installed Fedora 12 x86_64 and vsftpd. I would like to set up an user for FTP so that he/she could only view/edit files in one certain folder (the one that I set up). How would I go about doing that?
View 2 Replies
View Related
May 12, 2010
Just wanted to know Where would i get the Tomcat manager's username and password .My tomcat version is apache-tomcat-5.5.29.
Quote:
/install/apache-tomcat-5.5.29/conf/tomcat-users.xml
Code:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
[code]....
View 1 Replies
View Related
Jun 15, 2011
I cannot get apache to show the files in ~/public_html it gives me this error
Code:
Forbidden
You don't have permission to access /~george/test.txt on this server.According to the .conf file it should have read access...
View 9 Replies
View Related
Jun 2, 2010
I have shared few webpages in /home/vinay/public_html directory and I have made necessary changes in /etc/httpd/conf/httpd.conf file
Code:
But how to access these pages through Browser. When I open the browser with
Code:[url]
It shows contents of index.html in /var/www/html which is default DocumentRoot
How to provide the URL to access webpages in /home/vinay/public_html directory.
View 1 Replies
View Related
Jan 10, 2010
My website can`t open because of the error, Parse error: syntax error, unexpected T_STRING in /home/dodonet2/public_html/includes/config.php on line 45.
View 8 Replies
View Related
Jul 4, 2010
I installed Apache Tomcat6,every thing is running fine but facing problem in Tomcat administration webapps:- in manager webapp [URL] in this i am using username=manager password=s3cret but not it is not authenticating with these credentials in host-manager webapp [URL] in this,i am using username=admin password=s3cret
but it is also not authenticating with these credentials i edited file /etc/tomcat6/tomcat-users.xml
[Code]...
View 2 Replies
View Related
Mar 31, 2010
I am configuring a proxy server in my desktop, which in turn passthough a proxy ( parent proxy ). I have added following line for this
cache_peer proxy.tcs.com parent 8080 0 proxy-only default
But for parent proxy, we have to specify username and password in this line, I am confused here.
login=userassword | PASS | *assword
Here where I have to enter username and password ?
View 1 Replies
View Related
Feb 9, 2010
I installed Fedora 12 a couple of days ago. This is my secondary operating system. The main one is Mint 8 and in order to have the same documents in both OSs I have a separate /home partition, but for some reason I don't see any of my Documents. In the installation I told fedora that I already had a /home partition and to use it. Also if I mount Mint's disk, while I can browse the folders, I can't see any document .
Finally I can access my Mint's home folder and files but since my username in fedora has a capital A it created another home folder. How can I change my home folder path so it point to the other home folder?
View 1 Replies
View Related
Mar 7, 2010
I've played with ubuntu for quite a while now and i picked up a atom core mini pc for cheap so i thought i'd make a hobby in setting up a simple server to store files on, access files on my xbmc enabled xbox and download torrents whilst i'm at work though the torrents can wait for future projects though i installed ubuntu server 9.10, i'm aware it's CL only, anyway thus far i've managed to set up the ipaddress of it and make it fixed i'm not sure of what to do with hosts at the moment, reading on it isn't making much sense of it's purpose or layout so i've left it as is i permenently mounted a fat32 partition to /media/stuff and changed permissions to 0777 only have one user on it, myself installed samba smbfs smbclient and an openssh server, and can do all the terminal stuff from my normal pc my current issue lies with samba, with gnome desktop i've never had TOO many problems with sharing folders, however i'm stuck where to proceed in regards to editing smb.conf as there's a lot of options, some of which i'm not sure i need
- I've changed the workgroup to home
- under authentication i have security = share
- i added the following section
Code:
Anyway on my windows xp pro machine, i can access \thork which is the machine and i see 'media-stuff' which is a start i guess, but im refuesed access automatically.
View 9 Replies
View Related
Apr 4, 2011
I've got a strange problem and not found any solution on web.
System: ubuntu 10.10
server: apache2 v2.2.16
I want to use the users public_html directory to run php scripts, but... in browser I get only downloading window to save. The apache2 is working in default directory (/var/www/index.php appears normally), but not in public_html. Tried a lot of solution from web and from this forum also, but still doesn't work correctly.
[Code]...
View 3 Replies
View Related
Jan 9, 2010
Vanilla install of Karmic (64 bit) - would like to change the Apache doc root to point to /home/sam/www as it's my web development machine. (Default install is working fine)
Created copy of 'default' to 'mylocal' in '/etc/apache2/sites-available'
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/sam/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/sam/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
...
The permissions on the folder in my home dir:
Code:
sam@rocket:~$ ls -la ww*
total 16
drwxrwxrwx 2 sam sam 4096 2010-01-09 22:26 .
drwx------ 35 sam sam 12288 2010-01-09 22:11 ..
-rwxrwxrwx 1 sam sam 100 2010-01-09 22:27 index.html
sam@rocket:~$ pwd
/home/sam
sam@rocket:~$
The sites enabled set up:
Code:
root@rocket:/etc/apache2# ls -la sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 2010-01-09 22:24 .
drwxr-xr-x 7 root root 4096 2009-12-20 00:22 ..
lrwxrwxrwx 1 root root 26 2010-01-09 22:24 mylocal -> ../sites-available/mylocal
But I still get:
"Forbidden
You don't have permission to access / on this server".
View 8 Replies
View Related
Jan 31, 2010
I'm trying to setup a server at home, it has some practical implications, but largely it is just to take a stab at it. But I need the help of someone with more experience than I in defining exactly what I'm looking to do.
Here's what I have: old PC running Gutsy server connected to router. Several laptops at home connected via wifi to router. All laptops running either Windows or Ubuntu. Here's what I'm looking for: The server centralizes file storage for all clients. I would likely incorporate a RAID and some synchronised imaging of the files. I also want the server to create disk images of the clients hdd, regardless of client OS.There would also be some shares that would be publicly accessible (myself and friends accross the country would be able to access the same drive).
So I was thinking something like what corporate environment would be nice, you log into a profile that exists on the server. Like a dumb client...all data would be stored on the server. But I'm thinking that's more like a network boot and wouldn't work via wifi (or would it?). Also that wouldn't lend itself well to laptops used on the road in areas without net access. now I'm thinking each client would have its own locally installed OS, and they would just access networked shares. I could store sensitive files on the shares, but that wouldn't provide complete backup solution for each client.
Without rambling on anymore, anyone care to throw out some ideas? I'm really just looking to see if I can do what I want. The focus is on centrallizing files, securley backing up data and client OS's and ability to restore said images quickly.
View 3 Replies
View Related
Dec 19, 2009
I just did a clean install of FC12 x86_64 and want to configure tomcat to run behind apache httpd. What is the easiest way to accomplish this? I'm a newbie at server configuration so detailed instructions would be nice
View 4 Replies
View Related
May 10, 2010
I'd like to start tomcat from eclipse, however, I get several Exceptions preventing tomcat to start. I can however start tomcat from the console, provided I do this as root :
Code:
# su -
# service tomcat5 start
Starting tomcat5: [ OK ]
And I do get the page saying that I've setup Tomcat successfully when going to http://localhost:8080 in my browser.
View 2 Replies
View Related
Mar 20, 2011
I extracted the Drupal package (6.20) to /var/www/html and followed the provided install.txt file, but whenever I try to navigate to the site it simply comes up with the PHP script as plain text (it does automatically redirect me to install.php) rather than executing it. PhpMyAdmin works fine, as does a simple PHP "hello world" page I made, so I assume PHP isn't the problem. Now my question is: what could be causing this?
I can't tell for sure if the problem's with Drupal itself (I started over once with no luck) or some setting on my system, but since I don't have an account there I figured I'd ask here first.Running F14 x64, Apache, PHP and MySQL are all at latest versions available.
View 1 Replies
View Related
Dec 19, 2009
I just installed FC12 x86_64. After a clean install I found that httpd, mysql, svn, svnadmin, etc are already installed. I still need to install and configure tomcat running as a worker behind httpd and configure everything. But my question is about security. What do I need to do to ensure that when I start httpd and mysql that they are secure? Are there default settings that I need to change? Are there security patches I need to apply?
System Config:
Fedora Core 12 x86_64
AMD Athlon II X2 250 3.0 GHz dual core
GIGABYTE GA-MA785GM-US2H
G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model F2-8500CL5D-4GBPK
View 8 Replies
View Related
Dec 24, 2009
I am new to Linux. I installed JDK and Apache Tomcat recently but the problem is every time I want to work with them, I have to set the environment variables. I want to run tomcat as a service so that I don't have to set those system variables every time.Can it be done in any way? I am using Tomcat 5.5 and my Kernel version is 2.6.21-1.3194.fc7.
View 3 Replies
View Related
Feb 21, 2010
Tomcat6 is built in server with it but i dont know how to use it .I am doing a dynamic web project based on servlet and eclipse galileo is being used as IDE for it.
View 1 Replies
View Related
Apr 11, 2010
Is there a way to set a disk quota for samba users? I've found a few guides, but they were a little to complicated for my needs. Running Ubuntu server 9.10
View 3 Replies
View Related
Sep 1, 2010
I installed eclipse and tomcat with package manager. Eclipse and tomcat are running but i can't see tomcat in the eclipse. I just see 'Basic' folder. That is a screenshot [URL]
View 1 Replies
View Related
Mar 10, 2010
Wondering if its possible to have a User's home folder that resides in a different partition (could be ntfs or ext). I don't mean mounting /home on a different partition. The home directory will still be available for adding more users but I'd like to have a specific User's folder away from /home
How can one achieve this?
View 6 Replies
View Related
Aug 23, 2010
I am looking for the best solution for backup, I want to backup the /home/user.I know about rdiff, and rsync but is there a better solution for backup these folder.And the security must be good, The backup I want to make is from a server to a server in a datacenter.Both servers are running on UBUNTU 9.10.
View 6 Replies
View Related
Jul 13, 2010
I looked for a little and everyone's problem similar to this it seems they are tunnelling for a vnc server of some sort. I am just running ssh and it fails not only from the machine, but also remotely. The username "lee" is in group "sshusers"I have two machines setup the same, as to my knowledge. In one server I can access ssh and everything works well but when I try to ssh into the other one it gives me this
Code:
[lee@localhost ~]$ ssh -p5912 192.168.1.63
lee@192.168.1.63's password:
[code]....
View 5 Replies
View Related
Jul 22, 2010
I am replacing a home network - Windows Server 2003 and 5 PCs (XP Pro) with UBUNTU 10.4 LTS Server and client versions. I am keeping a couple of the PCs with dual boot until I can migrate everything over (Having some issues with iTunes, Family Tree Maker, Media serving, DVD decrypt and a couple of others, but that is for another post). It was great fun getting the server up and running using only shell commands. Took me ages just to get a folder shared! Migrating the data over from NTFS to ext3 was also fun given the limited space on the partitions.
I really only want to use the server for communal network type things ... central user account maintenance, shared folders for music, video etc and data backup. I don't need it to be performing server functions on the Internet e.g. web server etc although that may come later. How I set up central user management? All the PCs are currently setup with local user ids, and it is a bit of a pain to go round each PC every time I change something.
The server is not always up, so I need to be able to log into the local PC without it being active. I was using Active Directory on Server 2003, but I don't need anything that complex really ... just 3 or 4 users to manage. I have been looking at the setup tutorial at [URL] but am not sure how relevant a lot of it is. I have SSH setup so I can login remotely, NFS is working to share the folders, but that is about all I have done so far.
View 2 Replies
View Related