Fedora Servers :: Can't Get Docroot Information / Resolve This?
Aug 26, 2009
I set up a website in my home directory, which works fine except running some .cgi scripts. the suexec.log shows this error message :
"cannot get docroot information (/home/weixi)"
does anybody have any suggestion what's wrong with it? I use Fedora 11.
View 5 Replies
ADVERTISEMENT
May 25, 2011
Am close I think to having suexec working with mod_userdir but just struggling with a couple of config things.
Am getting this in the suexec log file:
[2011-05-26 11:25:00]: uid: (1001/andrew1) gid: (1001/andrew1) cmd: php-cgi
[2011-05-26 11:25:00]: cannot get docroot information (/home/andrew1)
This getting generated when I go to [URL]
View 11 Replies
View Related
Apr 13, 2010
When I want to change my docroot in /home/Vincent/www or /home/Vincent/www/ it gaves me an.
:Syntax error on line 278 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
I googled it already and they sad that you have to type in:
chcon -R -h -t httpd_sys_content_t /home/Vincent/www << doesn't work so I tried also chcon -R -h -t httpd_sys_content_t /home/Vincent/www/ But nothing seems to work?
View 1 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
May 2, 2011
Update manger code...
When I do this:
Code:
sudo apt-get update
in terminal it also gives me this code...
View 1 Replies
View Related
Aug 19, 2011
I have just been gifted with a Linux dedicated server for the next six months, with an option to renew after that time has expired, and I'd like to set it up for FTP/P2P use. I do have some familiarity with Fedora from work, but only as a pre-installed desktop OS. The company providing the server has asked me to choose a OS, so of course I picked the one with which I already have some knowledge. They've also asked me to provide partition and mount point information, and it's here that I'm having some problems. I've spent most of my free time today reading everything I could about partitioning for a server, and I'm still not comfortable making this decision on my own.
The server comes with two drives - one 500GB and one 1TB, and 8GB RAM. My thinking is to use the 500GB drive for the OS, and the 1TB for media storage. I know I still have a good bit of learning to do, but I just want to get the blasted thing set up so I can get on with the hands-on part of figuring out how it works.
View 14 Replies
View Related
Nov 2, 2009
Recently my home PC crashed and I had to re-installed it. I put a "clean" install of Fedora11, then copied my /home directory and some other stuff over from the old installation.I have a couple of PHP scripts I wrote, and one of them stopped working. It uses cURL, and when I enable error tracking I get:cURL error number:6cURL errorouldn't resolve host 'www.host.com'I started digging around and I found out Apache doesn't resolve anything at all, so it's not only a cURL problem. For example,
$ip = gethostbyname('host.com');
echo $ip; die();
returns "host.com" and not an IP address.My best guess so far is that Apache has no access to the DNS service (from command line and in browsers everything resolves). had a suspicion it's a SElinux issue and disabled it, but that didn't change anything.I found some old forum posts mentioning problems with chroot-ed Apache, but I haven't done anything to mine and in any case couldn't figure out what the problem was, or the solution, so I'm stuck.
View 7 Replies
View Related
Sep 3, 2009
I'm trying to write a program which would get information from a webpage and display the information on my desktop sort of like a widget. I kind of remember there being something like this already made, but for the life of me I can't remember what it's calledDoes anyone know?
View 1 Replies
View Related
Jul 7, 2010
Basically when I try execute a PHP script with SuexecUserGroup set, I get the following error:
uid: (501/uname) gid: (501/501) cmd: php-cgi
command not in docroot (/usr/bin/php-cgi)
Without SuexecUserGroup set, they work fine, but obviously aren't executed as the script's owner.
Here's one of the domain's configs:
Code:
<VirtualHost *:80>
ServerName www.domain
ServerAlias domain
[code]...
For a bit of background info, the end result i'm trying to achieve is for files that get uploaded via a php script to be owned by the user account that owns the script rather than by the apache user.
View 1 Replies
View Related
Sep 12, 2010
I'm trying to switch over my old server(9.10) data to a different server(10.04). My old server only had 2 drive bays, whereas my new one has 4. I already have my new server up and running(for the most part), and want to add the old hard drive to it. How would I do this without losing any information. I believe even my old drive is formatted to ext4. I was going to just throw it in there, but I'm afraid of losing information as I really don't want to lose a 1tb of info. I did try to search, but my title had too many common words in it.
View 4 Replies
View Related
Mar 1, 2010
I am willing to learn. I purchased and am currently reading The Official Ubuntu Server Book, and I think I have found my first side project. First, the book said Ubuntu Server is pretty much coded with a scripting language called Python. I want to define the different init levels of my server. I want to define like init 5 to have a GUI interface, just for kicks. A GUI might come in handy when doing certain things in Ubuntu Server, I just don't know, simply because I've been working on the command line. So my first question is, do I need to learn Python to script in Ubuntu Server? I have very little experience coding let alone scripting. The book has example of Upstart scripts, but I was wondering if the language is Python?
So I guess my question is a general question to scripting If I were to focus my time in learning Python as well, would I be able to customize/utilize more of Ubuntu Server? I'm not exactly sure what to learn/read as well to this. I'm trying to broaden my horizons, and I've decided to experiment with Ubuntu Server.
View 2 Replies
View Related
Mar 31, 2011
How to get the following information using terminal in ubuntu I googled entire internet but could not find it:
1. What patches has been selected(installed) in my installed kernel(current kernel).
2. List of installed drivers.
View 2 Replies
View Related
Jun 16, 2011
Though I have uninstalled and rm -rf'ed everything I can find having to do with ufw, I am still getting weird output from iptables -L If I type in
Code:
iptables -F
iptables -Z
iptables -L
I should get
[Code]...
View 2 Replies
View Related
Mar 2, 2010
How do I install this on my server? Here is an example: [URL]
View 3 Replies
View Related
Mar 30, 2011
Just wondering, what happens when you have multiple server softwares listening to the same port? will it be able to distinguish which service to use by the protocol information, or is it setting it up for failure?
IE: http and ssh both listening to port 80.
View 2 Replies
View Related
Apr 29, 2011
When I set my DNS servers via Yast>Network Devices>Network Settings>Hostname DNS it accepts the addresses, but then when I check then the next time they are faded out. I set them again, but same results.
View 6 Replies
View Related
Feb 18, 2010
Ubuntu Server 9.10, with apache, proftpd, mysql and the goodies.
I have wordpress installed and setup under /var/www/
The LAN IP address resolves perfectly to the index.php
However I can not get my WAN IP to resolve. My ISP blocks port 80, so I have my router setup to forward port 81 externally to port 80 of my server. I know the port forwarding is setup correctly and working, because I can go to websites like url and test that port 81 is indeed open.
I also have DynDNS setup on my router and through an account with them, to update my IP address with any changes, to a host name. But because port 80 is blocked I have to access it with, host.name.org:81. Ive had this system up and running before with no issues. Now I can not get the host.name.org:81 to resolve.
Neither can I get my ip address xx.xxx.xx.xxx:81 to resolve.
View 6 Replies
View Related
Mar 3, 2010
I have two computers.
Computer A = windows 7.
Computer B = Ubuntu Server 9.10
Computer B automatically receives an IP address from my router.
I can ping computer B from computer A using the IP address. I cannot ping computer B from computer A using its hostname.
My router did not show a hostname under it's active clients table. After some searching I found a threat where somebody suggested modifying /etc/dhcp3/dhclient.conf and adding 'send hostname "blahblah"' This allowed me to see the hostname in my router but I still cannot resolve it from my windows box.
View 9 Replies
View Related
Apr 30, 2011
Topic says it. Postfix was receiving emails just fine on 10.10, did the upgrade, now every host is unkown...even though I can dig -x from the machine and resolve.
View 3 Replies
View Related
Jan 25, 2010
Php file that basically runs a few commands and echoes the output. It's for checking things like temperatures etc, space free.
You can see it in action here: [url]
I've attached the actual php file.
Two questions:
1) What more can I add to it to give me even more information?
2) I want to add hddtemp but it requires sudo to run. How can I get around this?
View 4 Replies
View Related
May 25, 2010
I just built out an Ubuntu Server 10.04.
My problem is setting the hostname. I cloned the machine, then normally on the clone, I would change the /etc/hostname and /etc/hosts file.
However, when I do this, upon restart, I get the message, "init hostname main process (some process number) terminated with status 1"Then, when the machine finally boots, the hostname is set to (none). Literally has braces like: user@(none):
I've tried: sudo hostname machine_name but it says can't resolve hostname (none).
I've Google'd around a lot but can't get it. It may have something to do with 10.04? I have been using 9.04, 9.10 with no problems.
eric@(none):~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
code....
View 9 Replies
View Related
Oct 6, 2010
I'm with Linux 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux , Ubuntu 10.04 Server
And I wanna execute the next script in bash profile code...
View 1 Replies
View Related
Sep 1, 2011
I've searched the interwebs and have never had this problem before but I can connect with ssh no problem. The problem arises when I try to connect with sftp. I get code...
View 1 Replies
View Related
Jul 22, 2010
I've just installed Ubuntu server 10.04 and have set up vsftpd somewhat successfully. I can connect as my root user, and I only have access to my home directory. However, whenever I try to copy a file across a file I receive a 550 Permission denied error.
I've run the command ls -l /home/directory and the result returned is total 0, when I was expecting details of permissions per user. I've tried running chmod -w /home/directory but this doesn't return any result nor change the result of the above ls command.
View 5 Replies
View Related
Aug 8, 2010
After rebooting, I found that the server couldn't see the network. The machine has dual gigabit ethernet (eth0 and eth1). eth0 is connected to the internet, but disappeared. ifconfig used to show eth0, eth1, and lo, but now only shows eth1 and lo. If I boot into rescue mode I can get internet and ifconfig returns eth0 and lo. Any ideas on how to fix this?
I apologize in advance if I ask any noob questions. I'm not a very experienced Linux user.
View 9 Replies
View Related
Jul 11, 2011
I've installed apache2 on ubuntu 10.04 and everything works fine, but when I use functions that needs to connect to Internet, it doesn't work. Is there a simple setup I've forgot? I've been searching and looking for a solution, but I'm stuck!
View 9 Replies
View Related
Aug 16, 2011
I am suddenly not prompted for my password when I run any command as sudo on a few of my Ubuntu servers.
if I run sudo -K, the session is cleared, and I am prompted again for my password, however it saves/caches it until I run sudo -k again even if I log out and back in. I want it to prompt me for my password, as it should (and did) by default, for security.
Any ideas what could be causing this?
Here's my /etc/sudoers file code...
View 2 Replies
View Related
Apr 9, 2010
Anyone can point me to a document, page, or something that will tell me exactly how to implement DNS step by step. I don't mean just the concept, i.e. you'll need two name servers, and to download BIND, etc. NO, I mean command line commands and all. Step 1, step 2, how to register the name servers, how to resolve different domains, etc.
I'd really appreciate it, as I need to implement internal DNS and external DNS for my company soon. Our set up is pretty standard: Firewall, DMZ, Solaris/Linux/Windows servers, and Windows clients, etc.
View 4 Replies
View Related
Aug 11, 2010
Been trying to upgrade home server for several days and it keeps hanging on the mysql upgrade. Here's the what apt-get says code....
View 3 Replies
View Related
Jan 18, 2011
I have setup a home based web server to host a photo blog for myself and my friends. I will be running wordpress and possibly a phpbb3 forum. I'd like to open this to discuss server administration, server setup, and server maintenance. However, I have a pretty good start on all of those but serving a domain name to my static ip. Here my static ip is 24.10.202.144. I registered a domain through [URL]... It appears that I have the domain working to forward to my ip. However, I am still getting this output file from apache.
[code]...
I have tested the domain name across a few different computers on different ips. It works appropriately. I just want to make sure I have it set correctly on the (apache) server side of things. Then I can get more into Zone Editing etc.
View 9 Replies
View Related