Current time: 11-26-2024, 05:21 AM Hello There, Guest! (LoginRegister)


Post Reply 
I can't access /usr/share/php-getid3/getid3.php
Author Message
bostko Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #1
I can't access /usr/share/php-getid3/getid3.php
This is a part of my /etc/apache2/sites-available/ispcp.conf file
Code:
# httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/home/www/dev.lionmv.com/:/home/www/dev.lionmv.com/phptmp/:/usr/share/"
        php_admin_value upload_tmp_dir "/home/www/dev.lionmv.com/phptmp/"
        php_admin_value session.save_path "/home/www/dev.lionmv.com/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2028 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/dev.lionmv.com/
        <Directory "/var/www/fcgi/dev.lionmv.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /home/www/dev.lionmv.com/htdocs>
            FCGIWrapper /var/www/fcgi/dev.lionmv.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/dev.lionmv.com">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

It can access getid3.php via php-cli but it can't via browser.

I tried to change php_admin_value
Code:
open_basedir "/home/www/dev.lionmv.com/:/home/www/dev.lionmv.com/phptmp/:/usr/share/php"
to

Code:
php_admin_value open_basedir "/home/www/dev.lionmv.com/:/home/www/dev.lionmv.com/phptmp/:/usr/share/"
http://dev.lionmv.com/kursova/voting_system/admin.php
I doubt some global configuration blocks my setting?
can you give me some ideas?
(This post was last modified: 10-22-2009 01:59 AM by gOOvER.)
10-21-2009 11:57 PM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: I can't access /usr/share/php-getid3/getid3.php
Please read documentation for apache2-suexec and apache2-suexec-custom
10-22-2009 03:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: I can't access /usr/share/php-getid3/getid3.php
Normally it depends if you run apache&php in the worker-mpm and fastcgi/fcgid variant or in the prefork-mpm and mod_php variant. ISPcp default is the first...

So all php settings need to be made in the correct php.ini (see other threads to know where the domain php.ini files are). And normally it's enough to add the path to th open_basedir line... (like pear etc)

/J
10-22-2009 05:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
bostko Offline
Newbie
*

Posts: 6
Joined: Jun 2009
Reputation: 0
Post: #4
RE: I can't access /usr/share/php-getid3/getid3.php
I've got it down this rule rewrites my settings
Code:
<Directory /home/www/dev.lionmv.com/htdocs>
            FCGIWrapper /var/www/fcgi/dev.lionmv.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
This script /var/www/fcgi/dev.lionmv.com/php5-fcgi-starter tells apache that php conf_dir is
/var/www/fcgi/dev.lionmv.com/php5/

So I edited /var/www/fcgi/dev.lionmv.com/php5/php.ini and everything works fine!
10-22-2009 08:03 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: I can't access /usr/share/php-getid3/getid3.php
fine!
10-22-2009 11:40 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)