Forgot a line, I tried the following which does not work: RemoveHandler x-httpd-php5 suPHP_AddHandler x-httpd-php5 .php suPHP_Engine on suPHP_ConfigPath /home/upload/ AddHandler x-httpd-php5 .php
2009/5/8 Thomas Thomas <debussy...@gmail.com> > Hi Patric, > > The following is not recognised: php_admin_flag engine Off > I think because my php is running as CGI and not as a module. > > I tried the following: > > RemoveHandler x-httpd-php5 > suPHP_Engine on > suPHP_ConfigPath /home/upload/ > AddHandler x-httpd-php5 .php > > But still doesn't work > > > 2009/5/8 Patric <patri...@gmail.com> > > Hi Thomas, >> >> I believe you first need to remove the standard php handler and switch off >> the php engine before enabling the suPHP engine and adding the suPHP php >> handler: >> >> RemoveHandler x-httpd-php >> php_admin_flag engine Off >> suPHP_AddHandler x-httpd-php .php >> suPHP_Engine on >> suPHP_ConfigPath /path/to/custom/ini/file >> AddHandler x-httpd-php .php >> >> HTH >> Patric >> >> Thomas Thomas wrote: >> >>> I added *suPHP_Engine on*, then restarted apache, but phpinfo() still >>> shows me a single php.ini file loaded, the default one: >>> Loaded Configuration File /usr/local/lib/php5/php.ini >>> >>> <VirtualHost ....> >>> ServerAdmin ...... >>> DocumentRoot /home/upload/www >>> SuexecUserGroup upload users >>> ServerName ...... >>> ServerAlias ...... >>> CustomLog logs/upload-access_log combined >>> ScriptAlias /cgi-bin/ /home/upload/cgi-bin/ >>> AddHandler x-httpd-php5 .php >>> suPHP_Engine on >>> suPHP_ConfigPath /home/upload >>> </VirtualHost> >>> >>> >>> >>> 2009/5/7 Patric <patri...@gmail.com <mailto:patri...@gmail.com>> >>> >>> Mmmm are you switching suPHP on? >>> >>> Here is my config, maybe that will help: >>> >>> <Directory /path/to/document/root> >>> <IfModule mod_suphp.c> >>> RemoveHandler x-httpd-php >>> php_admin_flag engine Off >>> suPHP_AddHandler x-httpd-php .php >>> suPHP_Engine on >>> suPHP_ConfigPath /path/to/custom/ini/file >>> AddHandler x-httpd-php .php >>> </IfModule> >>> </Directory> >>> >>> >>> HTH >>> Patric >>> >>> >>> Thomas Thomas wrote: >>> >>> The additional php.ini file is located in /home/upload >>> >>> /home is drwxr-xr-x >>> /home/upload is drwxr-xr-x >>> /home/upload/php.ini is -rw-r-xr-x >>> >>> It seems that the permissions are ok. >>> I restarrted apache, displayed a phpinfo in that vhost domain, >>> but still got only one php.ini shown loaded: >>> >>> Loaded Configuration File /usr/local/lib/php5/php.ini >>> >>> >>> 2009/5/7 Patric <patri...@gmail.com >>> <mailto:patri...@gmail.com> <mailto:patri...@gmail.com >>> >>> <mailto:patri...@gmail.com>>> >>> >>> >>> Make sure your webserver user (apache?) has sufficient >>> permissions >>> to read the php.ini in that directory - remember to check the >>> permissions recursively. >>> >>> HTH >>> Patric >>> >>> Thomas Thomas wrote: >>> >>> Hello everyone, >>> >>> I created an additional php.ini file on my server in >>> /home/upload directory. And I want to use suPHP to use >>> it for >>> a specific vhost. I added the following in the >>> httpd.conf file : >>> >>> <VirtualHost .....> >>> ServerAdmin ..... >>> DocumentRoot /home/upload/www >>> SuexecUserGroup upload users >>> ServerName ..... >>> ServerAlias ..... >>> CustomLog logs/upload-access_log combined >>> ScriptAlias /cgi-bin/ /home/upload/cgi-bin/ >>> AddHandler x-httpd-php5 .php >>> *suPHP_ConfigPath /home/upload* >>> </VirtualHost> >>> >>> I restarted the server >>> >>> I added a <?php phpinfo(); ?> in /home/upload/www >>> >>> but it only shows me one .ini file, the default one: >>> Loaded Configuration File /usr/local/lib/php5/php.ini >>> >>> Can anyone help ? I am clueless ... >>> >>> Thank you. >>> >>> >>> ------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> suPHP mailing list >>> suPHP@lists.marsching.biz >>> <mailto:suPHP@lists.marsching.biz> >>> <mailto:suPHP@lists.marsching.biz >>> <mailto:suPHP@lists.marsching.biz>> >>> >>> http://lists.marsching.com/mailman/listinfo/suphp >>> >>> >>> >
_______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp