1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help installing PHP

Discussion in 'PHP' started by campolar, Feb 1, 2009.

  1. #1
    Hi, i installed PHP on my VPS (using solaris), i'm a newbie in installing stuff on the server so even tho its installed, when i open my address, i see all my php files, it doesn't load the php file...meaning if it click on index.php it proceeds to download...

    what am i doing wrong?
     
    campolar, Feb 1, 2009 IP
  2. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #2
    Well, you should also start PHP.
     
    NuLLByTe, Feb 1, 2009 IP
  3. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #3
    You need to install the php module for apache, then load it in the httpd.conf file.
     
    Kaizoku, Feb 1, 2009 IP
  4. webhost.uk.net

    webhost.uk.net Well-Known Member

    Messages:
    296
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    128
    #4
    webhost.uk.net, Feb 1, 2009 IP
  5. xtremenitro911

    xtremenitro911 Banned

    Messages:
    579
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Does your program use mysql database or is it just a script?
    Is there an install.php file?
    If there is an install.php you will have to visit that page first to install, if the script uses a database you will have to create the DB and assign it to your script.
     
    xtremenitro911, Feb 1, 2009 IP
  6. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #6
    EVERYONE: DUH i know i hav to start php....and i know how to install scripts...

    webhost.uk.net: i already used that and i've installed it...but i m getting the problem of the PHP module...where the hell is it?

    Kaizoku: can u please tell how i can install the module?
     
    campolar, Feb 2, 2009 IP
  7. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #7
    any more help guys?
     
    campolar, Feb 3, 2009 IP
  8. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #8
    I am not familar with Solaris, but try the following.

    if /usr/lib/apache2/modules/libphp5.so exists, then just put the following in httpd.conf or apache2.conf, I don't know which one Solaris uses, it can be found in /etc/apache2/ or /etc/httpd/
    LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
    Code (markup):
    if libphp5.so is not in that directory, you need to find it.
    find / -name libphp5.so
    Code (markup):
    *assuming you installed php5
    Then just replace the dir in the LoadModule.

    Then add the following lines in the conf file after LoadModule php5_module
    
    <IfModule mod_php5.c>
      AddType application/x-httpd-php .php .phtml .php3
      AddType application/x-httpd-php-source .phps
    </IfModule>
    
    Code (markup):
    I would recommend you use CentOS or Ubuntu if you are beginner in vps and dedicated servers.
    You can install php or anything with just 1 command.
    
    yum install php #CentOS/Red Hat
    apt-get install php5 #Ubuntu/Debian
    
    Code (markup):
     
    Kaizoku, Feb 3, 2009 IP
    campolar likes this.
  9. w0tan

    w0tan Peon

    Messages:
    77
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #9
    OpenSolaris offers the same functionality with the "pfexec" command.

    I found this on the Sun website

    
    pfexec pkg install SUNWphp524 SUNWphp524core SUNWphp524man SUNWphp524-mysql SUNWphp524-pgsql SUNWapch22m-php5 
    
    Code (markup):
    That will install php 5.2.4, manual pages, mysql library, postgreSQL library (which you may not need), and the apache module. In short, everything you need to get going. :)

    dlc.sun.com/osol/docs/content/WEBSTACK/ggrud.html (can't post links yet)

    that also covers how to install PHP, apache, mysql, and the like.

    Best of luck
     
    w0tan, Feb 3, 2009 IP
  10. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Kaizoku i cant find libphp5.so file...i tried the find command, but idk if it found it or not bcz nothing showed up on screen :S

    PLEASE HELP!!!!!
     
    campolar, Feb 7, 2009 IP
  11. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #11
    Okay try a variant.

    find / -name "*php*.so"
    Code (markup):
    Also, are you using apache?
     
    Kaizoku, Feb 7, 2009 IP
  12. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #12
    same thing happens....nothing shows up on screen:
    
    Sun Microsystems Inc. OpenSolaris build 2008.05
    # find / -name "*php*.so"
    #
    
    Code (markup):
    The hash (#) comes up meaning it ready for another command...and no mention abt the find command...
     
    campolar, Feb 7, 2009 IP
  13. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #13
    Do you absolutely have to use solaris? If you can switch to CentOS/Debian/Ubuntu, I would recommend. Also, you didn't answer if you are using apache as http server or not.
     
    Kaizoku, Feb 7, 2009 IP
  14. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Yes i'm using apache....and yes my vps is there for a year and it uses solaris...
    so i hav no other choice....I NEED TO GET THIS WORKING!!!!!
     
    campolar, Feb 8, 2009 IP
  15. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #15
    As far as I know most vps has templates that you can change OS at will. What control panel did they supply you with? Hypervm or Virtuozzo?
     
    Kaizoku, Feb 8, 2009 IP
  16. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #16
    No control panel...i had to use SSH and i install webmin in it :confused:
     
    campolar, Feb 9, 2009 IP
  17. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #17
    No I mean control panel to reboot your vps, shutdown, reinstall OS, QoS and stuff. If not than you should find another one. I would recommend http://www.servebyte.com/vps.html There is a special that you can double the ram for life. Scroll to bottom, and you see what the control panel I mean. It is not installed on your vps, but it is installed on the server hosting your vps.
     
    Kaizoku, Feb 9, 2009 IP
  18. msmith78

    msmith78 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Can you tell us how you installed PHP and we will show you what you did wrong/missed.
     
    msmith78, Feb 9, 2009 IP
  19. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Kaizoku: how do i find out my control panel? i mean where will i be able to find the option for reboot and stuff....it is given in my Webmin which i installed....

    PS: i'm completely new to VPS and stuff :D
     
    campolar, Feb 11, 2009 IP
  20. campolar

    campolar Peon

    Messages:
    2,683
    Likes Received:
    244
    Best Answers:
    0
    Trophy Points:
    0
    #20
    no more help?????
     
    campolar, Feb 14, 2009 IP