Alias To A Php Script (php Suexec Installed)

Aug 13, 2007

i install roundcube webmail (php)

i want to add an alias like /mail for all domain to /usr/src/roundcube

i add this command in httpd.conf:

Quote:

Alias /mail /usr/src/webmail

but because suphp installed , apache run it under root user (or user assigned to it) and suphp produce "500 Internal server Error"

View 0 Replies


ADVERTISEMENT

Determining Process Intense Tasks With Suexec Installed

Jan 19, 2008

i got mod suexec / phpsuexec installed on the server recently. if i click on view cpu/memory/mysql usage in WHM i can see this in the first row:

<username><domain>3.170.110.1
Top Process%CPU 145/usr/bin/php
Top Process%CPU 100/usr/bin/php
Top Process%CPU 81.7/usr/bin/php

now this info is pretty useless. ok, php is evidently bursting to pretty damned high cpu levels. BUT, what are the actual FILES causing this load?

View 2 Replies View Related

Ln And PHP SuEXEC Bug

Apr 23, 2009

Do you have any idea for patch PHP suEXEC with "ln" command?

View 9 Replies View Related

About Suexec

Mar 23, 2008

what fellow users here set --with-suexec-docroot in Apache
installations when cgi-bin folder is outside the public_html folder.

Looks like setting it to /home is the only way.

View 0 Replies View Related

Litespeed Suexec

Jun 17, 2009

I installed lsws without apache conf file(httpd.conf). Then I created a new virtual host in "suEXEC" Template. I added a new user via SSH and made home dir for him and chowned his home dir + all his files to hisusername:hisusername. His home dir(/home/user/) is chmoded to 755 and his /public_html to 711. It worked fine but after that I installed phpbb3 forum and when I tried to chmod config.php to 600 I got an error on the forum:

Fatal error: require() [function.require]: Failed opening required './config.php' (include_path='.:/usr/local/lib/php') in /home/username/public_html/common.php on line 127

When I was using lsws with apache conf file and I had configured suEXEC + suPHP for apache I was able to chmod config file to 600 and it worked fine. I have no idea what could be the problem now.

It works fine when I chmod config.php to 755 but for security reasons I would need a way to configure it to 600.
LiteSpeed si running as nobody:nobody.
EX. APP settings:
LSAPI App
$VH_NAME_lsphp
uds://tmp/lshttpd/$VH_NAME_lsphp.sock

SCRIPT HANDLER settings:
Suffix: php5
Type: LiteSpeed API
Name: [VHost Level]: $VH_NAME_lsphp

View 7 Replies View Related

Suexec And Suphp?

Feb 8, 2008

what are suexec / suphp and for what purpose we use it.

View 1 Replies View Related

Configure Suexec And PHP

Mar 15, 2008

I have a problem in the last apache upgrade (apache 2.2.8 + php5) step .
exactly in "Configure Suexec and PHP"

I found this option doesn't have multi values as CGI or Suphp just I found none :

PHP 5 Handler none

PHP 4 Handler none

I must to return to build apache1 with php4 for I can see suphp and cgi in "Configure Suexec and PHP" "PHP 4 Handler" option .

View 5 Replies View Related

PHP Accelerator + Suexec

May 11, 2008

Is there any which works with this turned on?

View 3 Replies View Related

Setting Up Php/SuExec

Jan 2, 2007

(what I did find was for old apache, not 2.2)

I have Fedora Core 5 wih Apache 2.2.2 and VirtualHosts setup, currently running mod_php and mod_suexec. I would like to switch to use php with suexec because I need to edit files with php that "nobody" doesn't have access to (777 not an option).

Right now mod_suexec works great with Perl, but not PHP. So I ask, how can I get them to play nice?

View 14 Replies View Related

PHPSuExec Vs SuExec

Sep 21, 2007

Can anyone tell me the difference between SuExec and PHPSuExec. I hear eaccelerator will not work with PHPSuExec but will it work with SuExec?

View 2 Replies View Related

Phpsuexec And Suexec

Oct 28, 2007

what is phpsuexec and suexec and how to stop them ?

View 1 Replies View Related

Howto For Suexec, Php As Cgi

Aug 28, 2007

I've been attempting to develope a server running apache 2+, php 5, and I was running into issues installing php as cgi.... All my scripts require The shebang:
#!/usr/bin/php at the top to execute properly. Anyone know a good site/how to that explains how to do this?

has anyone else here run suexec with apache? If so, could you tell me what you compiled it with? Just curious, as I think i'm doing everything right, yet I still fail

View 2 Replies View Related

Suexec And CPanel

Jul 23, 2007

Can I have Apache suexec with cPanel?

View 5 Replies View Related

SuExec Effect?

Sep 26, 2007

I want to ask about suexec.

Currently I disable suexec in my dedicated server.

Which is better, to enable it or not?

What will happen to existing sites folder permissions if suexec is turned on?

View 7 Replies View Related

Register_globals With Suphp And SuEXEC

Mar 29, 2009

my server is centos and cpanel,

i setup it with suphp and suEXEC,

and i set the register_globals as off on server,

now,i had a website need register_globals on,

i search many articles and try to edit php.ini and .htaccess,

but all still show

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

or

500 internal error

could anyone teach me how to solve the issue?

View 14 Replies View Related

Suexec Enable Or Disable

Mar 25, 2009

is it good or not and why we should enable or disable it in cpanel server or other server?

View 11 Replies View Related

FastCGI- (apache 2.2, Php 5.1, Suexec)

Dec 17, 2008

I have just switched from mod_php to fastcgi + suexec, but now trying to use the ab command times out :

ab -n 10000 -c 100 [url]
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, [url]
Copyright 2006 The Apache Software Foundation, [url]
Benchmarking www.example.com (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
apr_poll: The timeout specified has expired (70007)
Total of 7422 requests completed

Then I get a bunch of emails from LFD ....

View 0 Replies View Related

Apache 2.2 + Suexec + Mod_fastcgi

Jan 3, 2007

First uninstall your existing PHP.

Install httpd-devel

Second compile a new PHP with support of cgi/fcgi:

Code:
./configure --prefix=/usr/local/php-fcgi --enable-fastcgi --enable-memory-limit --with-mysql=shared,/usr --enable-discard-path --enable-force-cgi-redirect --with-imap=shared,/usr --with-gd=shared,/usr --with-libxml=shared,/usr --with-mbstring=shared --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-kerberos --with-imap-ssl

make

make install
To solve the errors during configure problems take a look at this:
[url]

Next you'll need to download/install fcgid:

Code:
wget http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz
tar xfvz fcgi-2.4.1-SNAP-0311112127.tar.gz
cd fcgi-2.4.1-SNAP-0311112127
./configure
make
make install
Next you'll need to compile/install mod_fastcgi for Apache 2.2.2:

Code:
wget [url]
tar xfvz mod_fastcgi-SNAP-0404142202.tar.gz
cd fcgi-2.4.1-SNAP-0311112127
Now we need to apply a patch so mod_fastcgi compiles with Apache 2.2. Put the following into a file:

Code:

diff -ruN mod_fastcgi-2.4.2/Makefile.AP2 mod_fastcgi-2.4.2.for22/Makefile.AP2
--- mod_fastcgi-2.4.2/Makefile.AP2Mon Jul 29 03:36:34 2002
+++ mod_fastcgi-2.4.2.for22/Makefile.AP2Mon Dec 5 13:05:21 2005
@@ -20,8 +20,6 @@

all: local-shared-build

-install: install-modules
-
clean:
-rm -f *.o *.lo *.slo *.la

diff -ruN mod_fastcgi-2.4.2/fcgi_buf.c mod_fastcgi-2.4.2.for22/fcgi_buf.c
--- mod_fastcgi-2.4.2/fcgi_buf.cTue Feb 4 00:07:37 2003
+++ mod_fastcgi-2.4.2.for22/fcgi_buf.cMon Dec 5 12:59:01 2005
@@ -50,7 +50,7 @@
{
Buffer *buf;

- buf = (Buffer *)ap_pcalloc(p, sizeof(Buffer) + size);
+ buf = (Buffer *)apr_pcalloc(p, sizeof(Buffer) + size);
buf->size = size;
fcgi_buf_reset(buf);
return buf;
@@ -487,7 +487,7 @@
char *new_elts;
int new_nalloc = (arr->nalloc <0>nelts + n;

- new_elts = ap_pcalloc(arr->pool, arr->elt_size * new_nalloc);
+ new_elts = apr_pcalloc(arr->pool, arr->elt_size * new_nalloc);
memcpy(new_elts, arr->elts, arr->nelts * arr->elt_size);

arr->elts = new_elts;
diff -ruN mod_fastcgi-2.4.2/fcgi_config.c mod_fastcgi-2.4.2.for22/fcgi_config.c
--- mod_fastcgi-2.4.2/fcgi_config.cThu Oct 30 02:08:34 2003
+++ mod_fastcgi-2.4.2.for22/fcgi_config.cMon Dec 5 12:59:01 2005
@@ -50,7 +50,7 @@
/* Convert port number */
tmp = (u_short) strtol(portStr, &cvptr, 10);
if (*cvptr != '' || tmp <1> USHRT_MAX)
- return ap_pstrcat(p, "bad port number "", portStr, """, NULL);
+ return apr_pstrcat(p, "bad port number "", portStr, """, NULL);

*port = (unsigned short) tmp;

@@ -75,11 +75,11 @@
tmp = strtol(txt, &ptr, 10);

if (*ptr != '') {
- return ap_pstrcat(p, """, txt, "" must be a positive integer", NULL);
+ return apr_pstrcat(p, """, txt, "" must be a positive integer", NULL);
}

if (tmp <min> USHRT_MAX) {
- return ap_psprintf(p, ""%u" must be >= %u and <u>= %u and <u cp=''>= %d", *num, min);
+ return apr_psprintf(p, ""%d" must be >= %d", *num, min);
}

return NULL;
@@ -126,9 +126,9 @@
*num = (u_int)strtol(val, &ptr, 10);

if (*ptr != '')
- return ap_pstrcat(p, """, val, "" must be a positive integer", NULL);
+ return apr_pstrcat(p, """, val, "" must be a positive integer", NULL);
else if (*num < min)
- return ap_psprintf(p, ""%u" must be >= %u", *num, min);
+ return apr_psprintf(p, ""%u" must be >= %u", *num, min);
return NULL;
}

@@ -147,9 +147,9 @@
*num = (float) strtod(val, &ptr);

if (*ptr != '')
- return ap_pstrcat(p, """, val, "" is not a floating point number", NULL);
+ return apr_pstrcat(p, """, val, "" is not a floating point number", NULL);
if (*num <min> max)
- return ap_psprintf(p, ""%f" is not between %f and %f", *num, min, max);
+ return apr_psprintf(p, ""%f" is not between %f and %f", *num, min, max);
return NULL;

View 2 Replies View Related

Remove Php Suexec Support

Apr 29, 2007

when i remove php suexec support, while i entering sites it save php files. how can solve this problem

Server info;
WHM 10.8.0 cPanel 10.9.0-R10737
CentOS 4.4 x86_64 - WHM X v3.1.0

View 4 Replies View Related

PAM Authentication Failure With FTP And Apache Suexec

Jun 18, 2007

i am trying to setup a VPS with:

Apache Suexec, so that each VHosts runs under there own username
FTP for each of the vhosts.

I have made a username aplushost and FTP works fine when i login, however when i try and get Suexec to work it shows a 403 permision dined, even know the whole directroy path is with correct permsions.

"/home/aplushost/www"

However if i chown the directroy "aplushost" to apaches username , currently "nobody" i have tried with "apache" and many others the page is displayed correctly.

The weird thing is that the www directroy can still be set to the aplushost username and files work inside.

However due to changing the privalages of the folder aplushost ftp now fails to login due to the folder not being owned by the ftp user "aplushost".

So im stuck between only having one item working at a time.

i have put some content of my config files.

----------httpd.conf vhosts------------------
<VirtualHost 87.117.196.247>
DocumentRoot "/home/aplushost/www"
ServerName aplushost.co.uk
SuexecUserGroup aplushost aplushost
<Directory "/home/aplushost/www">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

---------------passwd file----------------
aplushost:x:500:99::/home/aplushost/www:/sbin/nologin

(Have tried with many different shells, no difference, also tried with home directroy as just /home/aplushost)

View 6 Replies View Related

A Record To Alias

Nov 15, 2008

I have built a new website (ASP) for a friend. Their current domain "hissite.co.uk" is on another server - they want their email to stay with that hosting company.

I have created their new site on another server using a similar domain name "hissite2.co.uk". The server is a shared hosting account so the IP isn't dedicated.

Question

Making a change to the A Record asks for an IP address but doesn't work when pointing to a shared hosting server which holds lots of domains. I don't want to change the CName or set up a 301 Redirect.

I was told that if I add an alias of the main domain (hissite.co.uk) on the new server the change to the A record on the current server, although the IP address is pointing to a shared hosting server will work.

View 4 Replies View Related

Web Hosting Under An Alias

Dec 14, 2008

Is it possible to open up a web hosting contract with a company under an alias / address with an alias?

View 12 Replies View Related

Apache 2.0 Alias

Mar 31, 2007

I currently have the following in my httpd.conf:

Quote:

Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Recently I have tried to add custom alias /volano/

Quote:

Alias /volano/ "/home/volano/vcclient/"

When I go to mysite.com/volano/ i get Forbidden error (error 403).

Why is that? I have CentOS 4.4-32.

My Apache version is 2.0

View 8 Replies View Related

Alias For Name Servers

Oct 6, 2007

If I created alias like below:
ns1.hostingname.com cname ns1.hostingcompany.com
ns2.hostingname.com cname ns2.hostingcompany.com

Would it still work?

What I am trying to do is hide who my host is for reseller reasons.

View 4 Replies View Related

Blank Php Pages- Mod_cgi- Suexec? W00t

Jul 25, 2007

I am having trouble with blank pages on some web applications; ccHost and phpBB3.

I can get these to run on a seperate VPS, that isn't as securely locked down and the dedi --- but it is of course the dedi I want to run these apps from.

I simply get blank pages when trying to access ccHost. As if PHP isn't parsing it. But in a phpBB3 installation I'm getting random blanks, some of which I can refresh out of ... What's even weirder: sometimes when I try to viewtopic - or call some function ... I get the download dialogue!? (Do you want to open or download index.php for instance).

I've been trying loads of stuff. It seems that mod_security isn't running anymore, so that isn't the issue. Could mod_cgi or mod_suexec perhaps be the cheeky offenders? I have absolutely no idea.

Just hoping someone can help me where to look... Or how I can debug this issue. I'm at a loss in how to continue. Any help will be very appreciated.

Some details... The server is hardened and secured, but...
I'm running other CMS installs on the server, and they are working fine. Even a phpBB2 install is running smooth. Besides this I'm using LAMP setup on CentOS and webmin is running.

View 3 Replies View Related

Disable/Bypass Suexec Per Vhost Domain

Oct 12, 2007

I am running on;

Plesk versionpsa v8.0.1_build80060613.20 os_CentOS 4.2
Operating systemLinux 2.6.9-023stab033.6-smp
License key numberPLSK.00170782.0006

I need to be able to access cgi between vhost domains. In particular one frequently updated file located 'centrally' in the cgi-bin of one of the vhost domain.

I would like to be able to have other vhost domains be able to access this file but suexec won't let that happen. I have searched around and tried to following;

Created vhost.conf file in the conf directory of one of the domains.

The vhost.conf file contained (with no #):

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

I ran;

/usr/local/psa/admin/bin/websrvmng -u --vhost-name=<domain name>

Then reboot.

The result was all the vhosts stopped working. I reset the websvrmng, things returned to normal.

Then I tried updating the httpd.include file adding (with no #);

# <IfModule mod_suexec.c>
# SuexecUserGroup userid psacln
# </IfModule>

Then reboot.

The result was the same, all vhosts stopped working.

Does anyone have an idea how I can achieve this? I know I can disable suexec all together but that wreaked a little havoc with the cgi app when I tried that.

View 2 Replies View Related

Domanin Alias In Plesk

Jun 19, 2009

I've a VPS with Plesk. I have a website running a website and I've got a second domain.

I wish to setup second domain and forward it to first domain. I've used doamin alias page. However when I call second URL it's displaying a default plesk page instant of my first URL.

View 1 Replies View Related

Plesk 12.x / Linux :: PHP As FastCGI Doesn't Work With Suexec

Jul 2, 2014

We have updated our Plesk 10.4.4 to 12.0.18. We want to use PHP with FastCGI (Apache) and get always the following suexec - error:

command cgi_wrapper not in docroot (10004)

We use CentOS 6.4

View 3 Replies View Related

Different Email Server Alias For Every Account

Aug 12, 2008

I have a VPS (vps.example.com) setup with few sub accounts set-up. All sub accounts can send emails using specified domain, however email header will always display my VPS's name.

for example:

"from localhost ([127.0.0.1] helo=example.NET) by vps.example.com"
Is it possible to set it up so every account has it's own server name for example:
smtp.example.net
mail.example.org
or vps.domain.com

Platform: Cent OS
panels:VZPP, WHM, cPanel
IP: total of 3, 2 used for name servers, can purchase more if needed.
Access: root level access.

View 0 Replies View Related

Apache :: 2.4.7 - Can't Get Simple Alias To Work

Jul 25, 2014

I'm using Apache 2.4.7 on Linux Mint 17.

Apache is currently working fine using an alias for one webserver, weewx. I had a heck of a time configuring the alias though, most configurations would result in a 404 error.

I'm trying to get it working with another webserver, IOG. And I'm again getting 404 errors...

Currently my IOG.conf file looks like this:

Code:
Alias /IOG /home/Storage/iog
<Directory /home/Storage/iog>
Options Indexes
AllowOverride None
Require all granted
</Directory>

/home/Storage/iog is good, it's the exact path and is readable/writable by all users.

Options Indexes is included because IOG does not generate an index.html.

AllowOverride None is included because I'm not using .htaccess files, and because it worked for the weewx configuration file.

Require all granted is used because I'm not serving this external to my LAN and would like all LAN machines to have access.

My (working) weewx configuration file:

Code:
Alias /weewx/ "/home/Storage/weewx/"
<Directory "/home/Storage/weewx/">
Options Indexes Includes FollowSymlinks
AllowOverride None
Require all granted
</Directory>

Of course I tried that first, modifying the paths to IOG, and got a 404 error.

I make sure to reload Apache each time I make a change to the configuration file.

View 2 Replies View Related







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