Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default VPS and PHP Help

    I have recently acquired a good VPS, But i'm having some problems with running PHP Scripts on it, It just displays the code.

    I have ran the following in Putty:

    Code:
    Yum Update
    Code:
    Yum Install PHP
    It is running CentOS5, And i dont get why it wont run the code, + Rep for any help

    moderator alert Edited by HotelUser (Forum Super Moderator): Thread moved from "Technology Discussion" as I feel it's more suited here.
    Last edited by HotelUser; 10-01-2011 at 07:53 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    /dev/null
    Posts
    4,918
    Tokens
    126

    Latest Awards:

    Default

    What error does it give?

  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    No errors are given from what i can see, On the actual page it is displaying the script, Like if you look at it in notepad, And nothing on the error reports in putty

  4. #4
    Join Date
    Jun 2005
    Location
    /dev/null
    Posts
    4,918
    Tokens
    126

    Latest Awards:

    Default

    I still don't quite understand. Does yum not say anything at all? Not even something like

    Code:
    Package php-5.1.6-27.el5_5.3.x86_64 already installed and latest version
    Have you got your webserver setup properly to serve PHP? Such as installing mod_PHP for apache or setting up a fast_cgi process for an nginx reverse proxy?

  5. #5
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Code:
    [root@server ~]# yum install php
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * addons: centos.mirror.transip.nl
     * base: centos.weepeetelecom.nl
     * extras: centos.weepeetelecom.nl
     * updates: mirror.denit.net
    Setting up Install Process
    Package php-5.1.6-27.el5_5.3.i386 already installed and latest version
    Nothing to do
    How do i got about what you said N!CK?

  6. #6
    Join Date
    Jun 2005
    Location
    /dev/null
    Posts
    4,918
    Tokens
    126

    Latest Awards:

    Default

    Which webserver are you using?

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by N!ck View Post
    Which webserver are you using?
    Apache

  8. #8
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    If I were you I'd just install XAMPP and then reconfigure apache to suit your needs - that should bundle PHP in for you.
    I'm not crazy, ask my toaster.

  9. #9
    Join Date
    Jun 2005
    Location
    /dev/null
    Posts
    4,918
    Tokens
    126

    Latest Awards:

    Default

    You have to tell apache that you have php and to send files that end in .php to php to be processed.

    AFAIK, Yum should have done this for you though :S.

    Did you restart apache?

  10. #10
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Nope, Noobie question. How do you do that?

    Quote Originally Posted by HotelUser View Post
    If I were you I'd just install XAMPP and then reconfigure apache to suit your needs - that should bundle PHP in for you.
    I'm using a VPS Where i have access via putty and FTP, I dont see how XAMPP would help, No GUI or anything
    Last edited by Jack!; 10-01-2011 at 08:39 PM.

Page 1 of 2 12 LastLast

Posting Permissions

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