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

This is a discussion on PHP problems in the VPS & Dedicated forum
Hi all, I seem to be having problems with PHP and my VPS. basically ALL of the scripts that I am trying to install doesn't ...

  1. #1
    JPC Member
    Join Date
    Aug 2007
    Posts
    6

    Unhappy PHP problems

    Hi all,

    I seem to be having problems with PHP and my VPS. basically ALL of the scripts that I am trying to install doesn't seem to work. I'm pretty sure it has to do with my PHP settings but being an idiot with php, i can't locate the problem.

    I've been trying to install drupal, joomla and pligg on my vps but keep encountering problems like drupal functions not being found, joomla files not being found. Pligg doesn't complete after installing the database tables.

    Here's some entries from my error logs:

    Drupal Errors:
    [client 202.156.11.1] PHP Fatal error: Call to undefined function: user_access() in /var/www/vhosts/generismedia.com/httpdocs/drupal/modules/system/system.module on line 98
    [client 202.156.11.1] PHP Fatal error: Call to undefined function: user_access() in /var/www/vhosts/generismedia.com/httpdocs/drupal/modules/system/system.module on line 98

    Joomla Errors:
    [client 203.126.130.140] PHP Fatal error: Cannot instantiate non-existent class: joomlaversion in /var/www/vhosts/generismedia.com/httpdocs/Joomla/installation/index.php on line 34
    [client 203.126.130.140] PHP Fatal error: Cannot instantiate non-existent class: joomlaversion in /var/www/vhosts/generismedia.com/httpdocs/Joomla/installation/index.php on line 34

    Pligg Errors:
    on line 48, referer: http://www.flappit.com/install/install.php
    [client 218.186.13.1] PHP Notice: Undefined variable: errors in /var/www/vhosts/flappit.com/httpdocs/install/install3.php on line 13, referer: http://www.flappit.com/install/install.php
    [client 218.186.13.1] PHP Notice: Undefined variable: errors in /var/www/vhosts/flappit.com/httpdocs/install/install3.php on line 37, referer: http://www.flappit.com/install/install.php

    I tried asking the support team but haven't been able to resolve the problems yet.

    However, when using the same files on another webhost, it installs perfectly and runs well.

    Does anyone have any ideas?

    Thanks!

  2. #2
    Loyal Client
    Join Date
    Sep 2001
    Location
    Wichita, KS
    Posts
    1,647
    Are the permissions set properly? Have you made sure that the file paths in the settings file are still correct?

  3. #3
    JPC Member
    Join Date
    Aug 2007
    Posts
    6
    Quote Originally Posted by mattsiegman View Post
    Are the permissions set properly? Have you made sure that the file paths in the settings file are still correct?
    Hi,

    Yes i did. Once i was so pissed i changed EVERY file/folder to 777. Still didn't work. lol. I checked the scripts' forums, manual, etc.

    The thing i don't understand is because i managed to get the stuff setup at another host. Which is why i figured its the setup of my php. Hopefully the support team can help figure this one out.

  4. #4
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Did you check owner of the files ? Maybe you did upload/edit/create files as root ?

  5. #5
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    In cPanel when using suexec and running php as a client and not as a module, if the file/directory is world writable then it automatically gives a 500 error.

    jeremylim is not running cPanel, but it may be worth investigating.

  6. #6
    JPC Member
    Join Date
    Aug 2007
    Posts
    6
    Quote Originally Posted by thisisit3 View Post
    In cPanel when using suexec and running php as a client and not as a module, if the file/directory is world writable then it automatically gives a 500 error.

    jeremylim is not running cPanel, but it may be worth investigating.
    Hi,

    Thanks for all the replys.

    Yes, my VPS is not running cpanel. it's running plesk. I checked the owner of the files and the owner is my ftp login id, not Root. Should i change it to root? But should it matter if i put 777 as it allows access/mods by others?

    Anyway, I don't see a 500 error. The irritating part is usually there is no error! Just a blank screen and i have to go look at the error logs to figure things out.

    Any other suggestions?

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Check the ERROR LOG...

    Also, have you seen this?
    http://drupal.org/node/26256
    Good luck

  8. #8
    JPC Member
    Join Date
    Aug 2007
    Posts
    6
    Quote Originally Posted by Ron View Post
    Check the ERROR LOG...

    Also, have you seen this?
    http://drupal.org/node/26256
    Hi,

    I've tried that as well. Looking at the error log doesn't really help since after i solve the error, another error will take its place. It's a never ending cycle.

  9. #9
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    My first impression is that you're probably doing php settings in .htaccess though using php in cgi mode. You need to move those to a php.ini. If you are using php in cgi mode, don't do that 777 stuff either.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  10. #10
    JPC Member
    Join Date
    Aug 2007
    Posts
    6
    Quote Originally Posted by Gwaihir View Post
    My first impression is that you're probably doing php settings in .htaccess though using php in cgi mode. You need to move those to a php.ini. If you are using php in cgi mode, don't do that 777 stuff either.
    Sounds very techy to me. :P
    I'll ask support if that's the way my vps is setup.

    Thanks for your advise!

  11. #11
    Loyal Client ethix's Avatar
    Join Date
    Jul 2007
    Location
    Australia
    Posts
    88
    did youget this sorted?
    if so what was the issue?

  12. #12
    JPC Member
    Join Date
    Aug 2007
    Posts
    6
    Hi,

    I didn't manage to find out the problem. The support team couldn't give me an answer as well. but they helped me install my Pligg software and it works perfectly now. Not sure if it's the case of me using FTP to upload the files. The support team used wget to get the stuff onto the server and it seems to help.

    Regards,
    Jeremy

    PS: Yes, i did upload the php files in ASCII and the image files in Binary.

  13. #13
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    many php files look like ASCII when in fact they are not. They could contain UTF-8 characters which become garbage when uploaded as plain text.

    the ftp client should detect the type of file and revert to binary, or at least it should always upload everything as binary.

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
  •