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>>
>
>     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>
>         http://lists.marsching.com/mailman/listinfo/suphp
>          
>
>

_______________________________________________
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp

Reply via email to