Fedora Servers :: Can't Make Public_html?
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
ADVERTISEMENT
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
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
Apr 5, 2009
I just recently made a server using Fedora 10 and i was wondering if it is possible to set it up so that i don't need a GPU for fedora to boot properly. Since the GPU isn't being used i was hoping to save on a little bit more electricity.
View 4 Replies
View Related
Feb 27, 2009
I brought a TV card and installed on Fedora 9.Want to know how to make it as a streaming server?
View 4 Replies
View Related
Apr 28, 2009
I am kinda new to Linux so I build a computer a put Fedora 10 on it. I would like to make it into a server so I can host Warcraft III FT.
View 3 Replies
View Related
Oct 23, 2010
[URL].i used to configure the public_html in my system using the above link. but i did not get the phpinfo page if i run the it will ask download the phpinfo.php file. why this was asking and not showing the public_html files.
View 5 Replies
View Related
Mar 13, 2009
Is there an easy to make an entry in /etc/exports to export a directory for every entry in /etc/hosts?
View 2 Replies
View Related
Aug 4, 2009
I've tried to copy my files from Xamp httdocs in windows to /var/www/html,
but I can't paste the file, what should I do so I can paste the files ?
I have logged in as a root..
View 2 Replies
View Related
Aug 22, 2011
I want to make a fedora mirror site and i only want to have the fedora 15 i386 rpm files i dont want to download all the rest. How do i di this ?
View 2 Replies
View Related
Nov 8, 2010
In first place i am sorry about my horrible English. I want to make a web site with a virtual host of apache visible by all the computers connected to my networking. I put this in the end of the file "/etc/httpd/conf/httpd.conf"("192.168.1.194" is the IP address of my computer. The default gateway IP address is "192.168.1.1"):
[Code]...
It works if i go to "http://192.168.1.194/" with the browser of the computer with apache inside, but on the others PC of my networking this method don't work!
View 2 Replies
View Related
Oct 17, 2010
I'm planning on hosting a main website for my school (Wordpress) and a few websites (< 10) for some teachers (Wordpress, Moodle, Joomla). Someone of the teachers needs to access his/her folder via ftp to upload documents, images,... I'am using apache 2 on ubuntu server 10.04 LTS, 4GB RAM, 2 x 500GB Hard disk (RAID hardware).The server is connected directly to the router DMZ (netgear dgn 2000).
1)If I store the teachers' websites in public_html, should I create as many user as the teachers? And how to set permissions? And where to put the main site and moodle?
2)What are your recommendations about security?
View 3 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
Mar 5, 2010
I accidentally deleted a php file under my public_html folder. Is there a way I can get it back?
I typed: sudo rm contacts.php
View 2 Replies
View Related
Mar 25, 2011
i want to move all files inside the folder moving to folder public_html which command i should use? m using centos5 64bit tell me full command which i should writer in ssh client..so my all files will be moved to public_html...from moving folder.
View 4 Replies
View Related
May 13, 2010
i've activated userdir with (sudo a2enmod userdir) at ubuntu 10.04. i can not open my php files via web browser at public_html directori (screenshot.png). but if i move it to /var/www ... it's works (screenshoot-1.png).
View 5 Replies
View Related
Apr 6, 2010
I run a small site and today I've discovered that my site is down. I found that cPanel has flagged the account suspended even though I haven't got any quotas on the account. I don't know what went wrong. I've tried to unsuspend the account in WHM but a certain part of the function failed.
Quote:
safe_userchgid: chown: /home/crocbits/public_html: Operation not permitted at /scripts/cPScript/SafetyBits.pm line 93.
After searching the internet someone mentioned that the problem might lie in the permissions of the public_html folder. I had a look at the permissions and the folder had no permissions d----- When I try to chmod the folder I get this error:
Quote:
chmod: changing permissions of `public_html': Operation not permitted
I have no idea what to do next. All the files in the directory are locked too. I tried to move them but this command isn't allowed either. I ran these commands under the 'root' user in SSH.
View 11 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
Feb 24, 2009
When i installed the dahdi-linux-2.1.0.4, i typed and it showed that: Quote:
[root@localhost dahdi-linux-2.1.0.4]# uname -a
Linux localhost.DAT 2.6.27.15-170.2.24.fc10.i686 #1 SMP Wed Feb 11 23:58:12 EST 2009 i686 i686 i386 GNU/Linux
[code]....
View 3 Replies
View Related
Feb 1, 2011
I'm trying to make some pages. For this I try to host them locally. However, when I have an error in my PHP code, the server shows an internal error 500 page and doesn't show on what line and what compile error it encountered. There is no such information in the error log either. What should I do about it, it's not really nice to comment all the lines and then try to uncomment them one by one. I've been googling for a while, but didn't find anything.. I forgot to mention, I;m using Fedora :P, the apache that came with it and mysql and php from the repository...
View 3 Replies
View Related
Jan 16, 2011
I downloaded Ubuntu Server. I absolutely love it. It is easy to set up and I've already learned alot while doing so.
Now, I want to get a bit further. I want my Ubuntu Server to be accessible from the internet, so I can access my files and webpages from everywhere.
Everything works locally, but I don't have any clue to maken it visible for WAN. Is everything from here set in the router settings? Or will I also have to make adjustments in the Server's settings?
View 5 Replies
View Related
Feb 20, 2010
I'm trying to run this command code...
how do I fix this? Although I'm working on Ubuntu 8.04.4 server 32 bit
View 3 Replies
View Related
Mar 19, 2010
i want to make a webpage so that only people on my network can see it. how do i do this
View 9 Replies
View Related
Jul 21, 2010
I posted this yesterday, but my post completely disappeared (I looked high and low -- nothing.)
I am using Ubuntu Server 10.04, all the latests updates.
For an FTP Server, I use ProFTP.
One specific directory, and it's subdirectories on my server will not download at a reasonable rate. They move at about 17-50KBPS.
All other folders work fine, at around 1.5-2.5MBPS.
What is going on? I have no idea how to troubleshoot this. The files being transfered are in a directory under home. They should have no permissions issues (I reapplied the permissions I want already), I tried restarting ProFTP, the files vary in sizes (from a few kilobytes to about 120 megabytes).
I use Webmin for most web management.
I am not having overload issues with my network card or CPU utilization while downloading these files. They are being accessed from the local network.
This issue is taxing because the files in question are backup files.
View 9 Replies
View Related
Oct 26, 2010
I'm hosting my own dedicated server with Ubuntu Server 10.10. I have it set up with a static local IP, and I've configured DynDNS to link up with my router and allow my server to go live to the internet. I have all the appropriate ports unlocked, with the exception of port 80. This port is blocked by my ISP (Charter) and I can't use it. Due to this, I configured my router to listen on port 81, and direct it to my server.
So, In order to view it, you need to go to the IP XXX.xxx.XXX.xxx:81 Today, I registered (www.online-self.com) in hopes of getting around my current mask (provided by DynDNS.com (omegame.selfip.com). So here is my dilemma, When I go to the host of my domain name , I want to redirect my DNS to my server IP.
I can't seem to do it though? They want a strict IP address, no port extensions. How do I get around this so that my domain name and IP address link up? I'm thinking I may be missing a step, or maybe I needed to register a domain name that simply redirects? I'm starting to get confused on what I should do next. Can I even do this?
View 6 Replies
View Related
Nov 9, 2010
For the last couple of days I've been building on a server built from an old (well, not too old) computer. My goal is to use it for multiple purposes like a webserver, home automation, and possibly a future media center (if I get my TV card to work). But perhaps the main reason is to get wireless access to the internet for my laptop, and to connect it to my other (stationary) computer. When I'm done I'm also planning on writing a guide for setting up an access point with the rt61 chipset, as there seems to be many people looking for this. First I just need to get through this problem though .
For this I use two wired NICs, eth0 for the local interface to my computer, and eth1 as an external interface for the internet. Moreover I use a wireless NIC (DWL-G510 using the rt61pci driver) in conjunction with the daemon hostapd to provide a wireless interface for portable computers to connect to. eth1 gets its IP through DHCP from my ISP, while eth0 and wlan0 have static IPs on two different subnets like this (copied from /etc/network/interfaces):
Code:
auto eth0
iface eth0 inet static
[code]....
View 4 Replies
View Related
Jan 14, 2011
how to make a local domain? I have a laptop and server in my localhost. How can I make so that when I type backup.home or something like that into chrome it points to my server? I have apache2 installed with some virtualhost and mypage.192.168.1.4(my server ip) dosent work I propably need a domain or something like that.
View 5 Replies
View Related
Apr 11, 2011
I'm running a server and Cogeco doesn't want that.
What I want to do is make it so when someone goes to my_domain/ apache will pretend it doesn't exist, but I want subdirectories to work still.
What I tried was denying access to /var/www, but the apache returns with a message for that.
View 6 Replies
View Related
Jan 1, 2010
How would I make my server execute PHP and Perl scripts? (I'm going to be working with both)
I have PHP5 and the latest Perl installed, and my installation is fresh.
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
code....
View 1 Replies
View Related