Activity Stream
48,167 MEMBERS
6810 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com

    Default Nginx php help

    Hye guys, im installing Nginx on centos 64Bit and its working fine. Im also install epel
    Code: 
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
    and php
    Code: 
    yum install php-pear-Net-Socket php-pear php-common php-gd php-devel php php-mbstring php-pear-Mail php-cli php-imap php-snmp php-pdo php-xml php-pear-Auth-SASL php-ldap php-pear-Net-SMTP php-mysql
    The problem now is when i upload php file on the server and open it, the page .php is not opening but downloading the index.php file. Did i something wrong with nginx.conf or something here?
    MediaStar Reviewed by MediaStar on . Nginx php help Hye guys, im installing Nginx on centos 64Bit and its working fine. Im also install epel rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm and php yum install php-pear-Net-Socket php-pear php-common php-gd php-devel php php-mbstring php-pear-Mail php-cli php-imap php-snmp php-pdo php-xml php-pear-Auth-SASL php-ldap php-pear-Net-SMTP php-mysql The problem now is when i upload php file on the server and open it, the page .php is not opening but downloading Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    vjetnamnet.com nguoihaiduong.com filezdown.com
    I can help you, if use debian 6.

  4.     
    #3
    Member
    Nginx is used to handle static files.
    If you want to run .php files, you have to install fastcgi or something like that

  5.     
    #4
    Member
    Yum install php-fpm, then edit out the nginx.conf file to include the php locations and fastcgi params. You might try centminmod for an automatic script install.

  6.     
    #5
    Member
    Website's:
    imageditings.com shimory.com uniquerelease.com
    Quote Originally Posted by masterb56 View Post
    Yum install php-fpm, then edit out the nginx.conf file to include the php locations and fastcgi params. You might try centminmod for an automatic script install.
    i already install php, maybe problem with my nginx.conf setting.. can u give me some tips?

  7.     
    #6
    Member
    # Pass PHP scripts on to PHP-FPM
    location ~* \.php$ {
    try_files $uri /index.php;
    fastcgi_index index.php;
    fastcgi_pass 127.0.0.1:9000;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    }
    You'd better post your current nginx.conf and the error you get.

  8.     
    #7
    Member
    Website's:
    epicimagehost.com
    Quote Originally Posted by MediaStar View Post
    i already install php, maybe problem with my nginx.conf setting.. can u give me some tips?
    You need FastCGI.
    Try the yum install php-fpm as masterb56 and lyoko said.

    Then edit your vhost's so it contains what lyoko posted.

  9.     
    #8
    Member
    If you need help shoot me a PM. I can help you out with this.

  10.     
    #9
    Member
    Website's:
    satiq.net
    Maybe error with your chmod 's files..

    Nocerino's Rulez CM9 features TriNitY ;-)

  11.     
    #10
    Member
    Quote Originally Posted by skinner
    Maybe error with your chmod 's files..
    No, like other people said he needs a wrapper (fastcgi or similar).

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help about NGINX!
    By FootStep in forum Server Management
    Replies: 9
    Last Post: 20th Jul 2012, 04:50 PM
  2. Nginx Help
    By dheeraj4uuuu in forum Webmaster Discussion
    Replies: 4
    Last Post: 28th Mar 2012, 09:26 PM
  3. Plesk and nginx
    By Webmin in forum Technical and Security Tutorials
    Replies: 8
    Last Post: 5th Mar 2012, 08:39 PM
  4. Litespeed or nginx?
    By .:Raymond:. in forum Hosting Discussion
    Replies: 9
    Last Post: 10th Oct 2011, 09:36 AM
  5. torrentflux nginx possible?
    By bachbell in forum Server Management
    Replies: 13
    Last Post: 9th Oct 2011, 02:21 AM

Tags for this Thread

BE SOCIAL