Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on suPHP in the Open Discussion & Chit-chat forum
i just returned to a vps server with jag before they updated the servers with suPHP i used this certain php script but now the ...

  1. #1
    JPC Member
    Join Date
    Aug 2009
    Posts
    9

    Arrow suPHP

    i just returned to a vps server with jag before they updated the servers with suPHP i used this certain php script but now the server dont want to know.ok i know nothing about suPHP and how to get this to work and making a php.ini file etc to make this work.
    im not willing to pay them $35 to install it for me.
    just wondering if anyone can give me any ideas on how to get around this problem i have.
    ive installed this many times before but now it wont work.
    the old instructions is below what i used to do.
    when i done this i got a server error then when i asked around its all to do with you do not need to change chmod to 777 etc and the .htacsess is different so i tried that ad ended up with.
    Invalid default value for 'installation' at row 42 this is after i typed mydomain/install.php so im just wondering if anyone can give me any ideas.?
    thanks for looking all the old details is below.

    Upload all the files and directories at the main html directory at your server, using your favorite FTP program. Keep the same directory structure

    1. Create a MySQL database for your site

    2. Open up config.php and change the variables for your website. Here is also where you will set if the site will have reveiw posted by the admin only or by registered users also.

    2. Change the directory permissions as follow:


    "uploads" directory -> chmod 777

    "banners" directory -> chmod 777


    4. To install the database tables, point your browser to: http://www.your-domain.com/install.php

    5. The initial sites are included in the sites.sql file. You will need to login to your websites PHPmyADMIN or located where you can manage your databases and upload the SQL file to populate the database with the sites.

    The admin panel is situated at: http://www.your-domain/siteadmin username & password: admin To change the admin's username and password, login at your admin panel. Under settings you will also set up details for your site.

  2. #2
    JPC Member
    Join Date
    Aug 2009
    Posts
    9
    does anyone understand this suphp as i have not got a clue

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    With suPHP you do not need to set special permissions on files/directories for them to be writable. In most cases you can ignore any instructions that say to chmod anything as hte scripts will be run by the UID of the owner and the owner usually has sufficient permissions to write to the files/directories already.

    The other gotcha with suPHP is that PHP scripts run as CGI processes, not through mod_php, so any mod_php-specific commands in .htaccess files will not work. What you should do is get a copy of your system's php.ini file and put it somewhere in your website account (either in the application's directory or in the /home/username directory). Then look in the .htaccess file(s) that come with the application you are installing for any lines that say php_value or php_flag. Make note of the second and third parameters of these lines (the PHP configuration directive and value, respectively) then place a # before each one to comment it out. Open the php.ini file and find each of the directives you found in the .htaccess file(s) and change the values as appropriate. If you choose to upload the php.ini file to your home directory, add a line to the .htaccess file that looks like this:

    Code:
    suPHP_ConfigPath /home/username
    If you are using cPanel you may be able to find and download your php.ini file from cPanel. Otherwise you'll need to find it on the server. Usually it can be found at /etc/php.ini, but the easiest way to be sure you are grabbing the right file is to put a script on your site with the follwing in it:

    PHP Code:
    <?php phpinfo(); ?>
    Look for a line that reads "loaded configuration file" and download the file at that location.

    This is kind of complex, but hopefully it helps.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  4. #4
    JPC Member
    Join Date
    Aug 2009
    Posts
    9
    jason thanks very much for your help its the first help ive had and i will try this soon as it happens i asked jag to take off my suphp and put my vps back the way it was before they introduced suphp the the servers.but what im trying to do still does not work so i think i might give it up as a bad job.but thanks for your advice i will ask them to put it back the way it should be with the suphp and try your idea.
    thanks again

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •