permissions problem with PHP/suPHP

fullmetalucard

Verified User
Joined
Jan 12, 2007
Messages
11
hello

We use DA and installatron (DA_plugin) and we've benn trying to install oscommerce which requires the register_globals option turned to "on".
In my php.ini file, it is set to off (i know that's for security reasons).
And i also know that i can change it by puting php_flag register_globals on an
php_value register_globals 1 in the .htaccess file of oscommerce.
But i've done it and it doesn't work !!

i think i may have a trouble with my include_path in my php.ini file.
In fact i have 3 php.ini files:

- the one given with DA (/usr/local/lib/php.ini) with include_path="/usr/local/lib/php"

- another php.ini working as cgi (for php4) in (/usr/local/etc/php4/cgi/php.ini) with
include_path="/usr/local/php4/lib/php"

- and a php.ini working as CGI (for php5) in (/usr/local/etc/php5/cgi/php.ini) with include_path="/usr/local/php5/lib/php"

the last two php.ini have been installed in order to work with suPHP 0.6.2
and each one work, but i'm close to loose myself , configuring all the php.ini files and find the good include_path.
I don't really know if my paths are good or not..
Have any clue?
 
No it's off, but i'm going to reinstall oscommerce, change my htaccess file in order to work with register glaobal on, and then i will put my phpinfo in the same directory and see what happens to it
 
you should check whether your apache is configured to look for .htaccess files.

should be some like this

<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
 
I just ran into this issue too, and I do have in my httpd.conf:

<Directory /home/*>
AllowOverride All
Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>

and a few lines below that I have:

AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>

Using php_value commands works on an older DA server without suPHP, but I cannot get it to work on the 2 servers with suPHP. I know how to get around this by setting custom php.ini paths, but I want to be able to have clients just use .htaccess to make changes that they need to make and not mess with other things that they find.
 
hello

We use DA and installatron (DA_plugin) and we've benn trying to install oscommerce which requires the register_globals option turned to "on".
In my php.ini file, it is set to off (i know that's for security reasons).
And i also know that i can change it by puting php_flag register_globals on an
php_value register_globals 1 in the .htaccess file of oscommerce.
But i've done it and it doesn't work !!

i think i may have a trouble with my include_path in my php.ini file.
In fact i have 3 php.ini files:

- the one given with DA (/usr/local/lib/php.ini) with include_path="/usr/local/lib/php"

- another php.ini working as cgi (for php4) in (/usr/local/etc/php4/cgi/php.ini) with
include_path="/usr/local/php4/lib/php"

- and a php.ini working as CGI (for php5) in (/usr/local/etc/php5/cgi/php.ini) with include_path="/usr/local/php5/lib/php"

the last two php.ini have been installed in order to work with suPHP 0.6.2
and each one work, but i'm close to loose myself , configuring all the php.ini files and find the good include_path.
I don't really know if my paths are good or not..
Have any clue?

works for me just using
php_flag register_globals off
Have new server and latest DA, running centOS4.x
also just in the public_html folder works for all sub folders
the master and local were set to 'on' so my flag reversed it
 
Last edited:
works for me just using

Have new server and latest DA, running centOS4.x
also just in the public_html folder works for all sub folders
the master and local were set to 'on' so my flag reversed it

Are you running suPHP also? I can get these to work no problem with the default DA install, just not after installing suPHP.
 
Back
Top