Server :: Apache2 - Suexec Error: Command Not In Docroot (/usr/bin/php-cgi)
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
ADVERTISEMENT
Nov 19, 2010
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 9 Replies
View Related
Dec 9, 2009
I am getting this error
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!
also what is 68.178.232.100
View 1 Replies
View Related
Jun 17, 2010
I am setting a Lucid mail server, and got dspam and mailgraph installed. dspam requires suexec module for apache, but it breaks mailgraph with "500 Internal Server Error":
[Code].....
View 1 Replies
View Related
Nov 19, 2010
I have suse10 64bit and I was setting up SVN server on it. After all required setup while reloading apache2,its giving the error:
Code:
httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 6 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
Sep 1, 2010
Apache/2.2.3
CentOS release 5.4 (Final)
BackupPC-3.1.0-6.el5
So im setting up backuppc but do not want Apache to run as the backuppc user. To get round this I need to setup suEXEC so that CGI scripts are ran as the backuppc user. This seems fine and I do have the module loaded,
1. I have configured my config files as said here
2. I have read that DOC_ROOT for suEXEC is set to /var/www I need to change this to /home/www - as a quick fix i have a symbolic link from /var/www to /home/www.
3. To confirm what DOC_ROOT is and check where the log file will be as suggested on many sites I run "/usr/sbin/suexec -V" but I get nothing back, it does not list any config.
4. Group and Owner for "/usr/share/BackupPC" is backuppc
[Code]...
View 1 Replies
View Related
Mar 11, 2011
Installation of SUSE 11 server now when I try to configure apache2 (opening port 80) I get a "cannot adjust apache2 service" error??? Can anyone shed some light on this.
View 1 Replies
View Related
Apr 30, 2009
I currently have a massive problem with my main webserver: one of the SCSI drives where I keep my htdocs seems to have failed (sd 0:0:0:0: [sda] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK,SUGGEST_OK end_request: I/O error, dev sda, sector 7797601).
Since I have no backup (dumb!dumb!dumb!) of it, I tried to copy what I could on the fly, but that failed miserably. The next idea was to umount the volume and try remounting it R-O, but I have a bunch of apache2 processes that are apparently reading/writing on it and I can't seem to find any way of terminating them. I tried via init script, killall and kill -9 but they just don't respond. Until I can terminate those processes, I won't be able to unmount the drive and try saving what's left of the data.Oh and the cherry on top of the cake: the server is 1100 miles away so I can't even access it physically..Is there any way I didn't think of to get rid of those apache processes?
View 1 Replies
View Related
Mar 2, 2010
I have installed a LAMP server (Debian Lenny + Apache2 + PHP Version 5.3.1-0.dotdeb.1). On this machine, my web application (PHP + MySQL) exists in 2 flavours:
- Dev
- Prod
In /etc/apache2/sites-available, I have ims & ims-dev, one for each instance. Their contents are identical in terms of settings, except for the paths (dev/prod):
Code:
<VirtualHost *:80>
ServerAdmin admin@domain.com
ServerName ims.domain.com
ServerAlias ims.domain.com
[code]....
why this difference when the settings are strictly identical? Do I need to add EnableSendfile off in my conf files to stop that?
View 14 Replies
View Related
May 26, 2009
I am in the process of writing a web-application using apache,mod-python and cheetah. I installed apache2, mod-python and cheetah and also enabled the userdir module in apache2 so that i can host the webpages inside my public_html folder.
The public_html folder has a folder named 'site' which gets displayed when I type "url" in the browser. There are subfolders inside this 'site' folder and the site folder also has an index.html page inside it.
But when I click on the site folder in the browser, I get a 'Requested url /~myusername/site/ not found'. There are files inside the folder with 777 permissions and still I get this error.
I use Ubuntu Jaunty with the following configuration - 'Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_python/3.3.1 Python/2.6.2 Server at localhost Port 80'.
These are the lines I have added to the /etc/apache2/sites-available/default file
Code:
<Directory "/home/myusername/public_html/site/">
SetHandler mod_python
PythonHandler mod_python.publisher
PythonDebug On
PythonAutoReload On
View 1 Replies
View Related
Feb 1, 2010
I am trying a release of Ubuntu has have run into a problem that does not make much sense. I am receiving the following error: Syntax error on line 20 of /etc/apache2/sites-enabled/portal: Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration
fail! I believe the modules required for this is apt-get install libapache2-mod-proxy-html and it shows under the available modules and it was enabled with a2enmod proxy-html.
The line from the config is ProxyHTMLEnable On. The release is the latest download with updates from, 32bit.
View 4 Replies
View Related
Jun 12, 2009
I was stupidly trying to setup apache for virtual hosts using two different tutorials and something got mucked up along the way. Apache will now not start and I just need a some help fixing it. My error logs show nothing and running "sudo apache2ctl configtest" said "syntax ok".
View 3 Replies
View Related
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
View Related
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
Oct 12, 2009
I am using apache2 with subversion and trying to get post commit script to run an svn update command. All svn commands seem to work fine manually
Everything used to work fine but then the server ip changed and I can no longer access it with the web name and have to use the ip directly
I am using tortoise svn with vista on my work machine
Here is the script
#!/bin/sh
export LC_CTYPE=en_US.UTF-8
/usr/bin/svn update /home/common/webroot/bob
Here is the result.
Command: Commit
Modified: C:UsersMattDesktopcheckout - bobindex.php
Sending content: C:UsersMattDesktopcheckout - bobindex.php
Completed: At revision: 63
Error: post-commit hook failed (exit code 1) with output:
code....
I think what i need to do is update the certifcate for the apache2, but I'm not sure how to do this, where to put it, and then which of the thousand apache config lines needs to be changed
View 5 Replies
View Related
Oct 29, 2010
In oreder to run an application software on RHEL 3 ES server, I created a link forcefully using following command from root id:
# cd /lib64/tls/
# ln -sf libc-2.3.4.so libc.so.6
before that I copied file libc-2.3.4.so from a workstation with OS RHEL 4 WS so that a link can be created.
Now I am unable to run any command except cd & pwd and it gives error messaage as given below:
ls:relocation error:/lib64/tls/libc.so.6:symbol _rtld_global_ro,version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2with link time reference.
Before running this command libc.so.6 was pointing to libc-2.3.so file in path /lib64/libc-2.3.2.so.
I am now unable even to open a new window on the server.Please send me some solution as early as possible because this server is running production data and many users are runnig application on this server.
View 3 Replies
View Related
Apr 19, 2011
I've recently been trying to secure my Apache2 server running suPHP on an Ubuntu 10.10 box. My ideal solutions are to
1) Specify a specific php.ini on a per virtualhost basis. I have tried using the PHPINIDir directive inside a virtualhost block in my 'sites-available/default' file, but the parser throws an error
Invalid command 'PHPINIDir', perhaps misspelled or defined by a module not included in the server configurations I have figured out that the reason this directive is not recognized is because my server is running mod suPHP instead of mod php5. The default site on the server requires suPHP to perform certain administrative functions. First question would be, is there some other way to specify a specific php.ini besides using PHPINIDir, or does anyone have any ideas of how to get PHPINIDir to be understood under the current configuration?
2) Activate/Deactivate php5 on a per virtualhost basis. This will allow me to use PHPINIDir to specify a specific and secure php.ini. I know that I have php5 installed, as 'a2enmod php5' with a restart will activate php5 and override suPHP. Does anybody know what the commands would look like to load the php5 modules from inside a virtualhost block? I have looked around on the internet and found these two lines of code to add that will supposedly activate php5 under a virtualhost
LoadModule php5-module modules/libphp5.so
AddHandler php5-script php
I do not have a 'modules' directory in my /etc/apache2 folder, so I did a search for libphp5.so and found the only copy on my machine located in /usr/lib/apache2/modules. Naturally, I tried
LoadModule php5-module /usr/lib/apache2/modules/libphp5.so
AddHandler php5-script php
but received an error
apache2: Syntax error ...: Can't locate API module structure 'php5-module' in file /usr/lib/apache2/modules/libphp5.so
Surely I can't be the only one who's needed to specify different php.ini files for different virtualhost's while using suPHP, and I'd also have to assume I'm not the first one who's tried to integrate suPHP and php5 on a per virtualhost basis. Anyone have any ideas? I'm completely stuck, and that's the worst kind of stuck. The Apache2, suPHP, and php5 installations on my machine are standard for Ubuntu 10.10
View 1 Replies
View Related
May 5, 2011
I just reinstalled my server with Ubuntu 11.04 and I am now trying to put my websites back in place. The problem is that the configuration directive AssignUserId is no longer working. I simply get this:
Code:
root@silvertejp:/etc/apache2/sites-available# service apache2 startStarting web server apache2 Syntax error on line 12 of /etc/apache2/sites-enabled/finn:
Invalid command 'AssignUserId', perhaps misspelled or defined by a module not included in the server configuration This worked fine on Ubuntu 10.04. Should I install some module? How?
View 1 Replies
View Related
May 26, 2010
I just got a new server dedicated running php5 and SUExec. I understand the concept. INstead of running as "nobody", PHP scripts run as the user of that website. This also means I don't have to have some special directory where I set permissions to 775 or 770 with group=nobody etc just to upload files via PHP .. since PHP will upload files just as the user would using FTP. OK, great so far, and more security, I'm all for it.
View 1 Replies
View Related
Sep 5, 2010
I just installed apache2 and i can't restart the service, i get: Code: sudo: /etc/init.d/apache2: command not found
View 6 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
Apr 4, 2010
When we run php scripts that move/rename/etc files, the script does not have access to write to files in our web root. Changing permissions to 777 fixes the problem, but obviously this is not an option..I've been reading up about suexec, phpsuexec, and suphp, but we can't seem to figure any of this out.In phpinfo(),the Server API reads: Server API Apache 2.0 Handlerbut on another server (where everything works, it reads : Server API CGI/FastCGIIs there ANY way to achieve this?
View 2 Replies
View Related
Aug 5, 2011
My web server does not currently run Suexec. All files within the /var/www directory are owned by vsftpd and belong to nogroup. Apparently, this setup causes issues with some scripts that attempt to upload files and change files, such as the SMF Forum package.
Here's some background information that goes into further details regarding the issues I'm having:[URL]..Why would uploading a file using PHP in SMF not work with the owner being vsftpd belonging to the nogroup when the folder has been chmod to 777? I tested my own simple PHP upload script, and it was able to upload a file without issues. Yet, I've been told that my server is improperly configured if I'm not using Suexec. Why is this? Also, if I did use Suexec, what creates the users? Would I have to add them manually, or would they be created automatically as users based on their FTP login and added as subusers to the vsftpd group? Why should I use Suexec? I don't understand what's wrong with my current setup. How does it work in terms of users? Are users created and just added to a subgroup, or are they created like normal user accounts on the actual server? Do they get their own /home/username directory as well? I'm so confused about Suexec. What I've read about it doesn't make sense.[URL]..
View 1 Replies
View Related
Jul 2, 2010
i am getting this error while running in rhel 5.3 -bash: sar: command not found
View 5 Replies
View Related
Oct 24, 2010
Using Debian Lenny I'm getting the following message in my mail: /etc/cron.daily/logrotate:
Quote:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
View 1 Replies
View Related
Jan 20, 2010
I have the following message with apache:
Quote:
Forbidden
You don't have permission to access /site/home.html on this server.Apache/2.2.12 (Ubuntu) Server at localhost Port 80
home.html isn't in /var/www but in my /home/myname/site/ How can visualize my site in my local directory?
View 1 Replies
View Related
Jan 12, 2009
On my Debian Etch server, I'm finding a lot of the following in my /var/log/apache2/error.log file:
Code:
[Mon Jan 12 09:34:17 2009] [notice] child pid 17217 exit signal Segmentation fault (11)
[Mon Jan 12 09:34:18 2009] [notice] child pid 17206 exit signal Segmentation fault (11)
[Mon Jan 12 09:34:18 2009] [notice] child pid 17216 exit signal Segmentation fault (11)
What is a good way to trouble shoot and remedy this problem? We can't have processes dying all over the place, now can we.
View 6 Replies
View Related
Jun 25, 2011
I'm having a problem with mod_suexec in Fedora 15.I have suexec set up in Apache, snippits from httpd.conf:
Code:
LoadModule suexec_module modules/mod_suexec.so
...
[code]....
View 3 Replies
View Related
Dec 10, 2010
Ive in vmware an Ubuntu Git server, and form the server to the server it works perfect If i connect with mine mac to the server it ask for a password, and ive no idea what that is.
But on the internet was standing a command for public reposority git git-daemon --base-path=/home/git/repositories/ --export-all
when I run it , this error appear: git: 'git-deamon' is not a git command. See 'git --help'.
View 8 Replies
View Related