New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Post your Nginx server and site config
NGINX will show the php code in the browser if HTTPD is installed.
(Doesn't have to be running, just installed.)
Uninstall apache/httpd if you have it installed then restart nginx and let us know if its working.
-Cirium
@Cirium
httpd: unrecognized service
@gsrdgrdghd
#
#
This is the main Nginx configuration file.
#
More information about the configuration options is available on
* the English wiki - http://wiki.codemongers.com/Main
* the Russian documentation - http://sysoev.ru/nginx/
#
#
----------------------------------------------------------------------
Main Module - directives that cover basic functionality
#
http://wiki.codemongers.com/NginxMainModule
#
----------------------------------------------------------------------
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
error_log /var/log/nginx/error.log notice;
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
----------------------------------------------------------------------
Events Module
#
http://wiki.codemongers.com/NginxEventsModule
#
----------------------------------------------------------------------
events {
worker_connections 1024;
}
----------------------------------------------------------------------
HTTP Core Module
#
http://wiki.codemongers.com/NginxHttpCoreModule
#
----------------------------------------------------------------------
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
/usr/share/nginx/html$fastcgi_script_name;
include fastcgi_params;
}
}
Are you sure that Fastcgi PHP is running?
@Zen makes no difference
@StableVDS Not sure anymore...
@Zen do you know how to check the status of it? I just am rebooting the server, see if that will help.
Rebooted server - still same issue.
[root@Pro ~]# service php-fpm status
php-fpm: unrecognized service
Then u don't have php installed...
package php-fpm not found.
For PHP I ran
yum install lighttpd-fastcgi php-cli php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy
Install it manually.
Ran yum install php -y installed it, still same issue.
php and php-fpm are completely different things.
You need php-fpm which you have not installed.
if still not found, then your server don't have php installed
btw, how did you install php anyway?
Installing php-fpm now.
[root@Pro ~]# service php-fpm start
Starting php-fpm: [ OK ]
[root@Pro ~]# service nginx start
Starting nginx: [ OK ]
Result: SAME
http://puu.sh/1s6G0
You are likely missing something within your NGINX config or haven't refreshed your browser.
Its pissing me off, reinstalling whole VPS.
Within four minutes I managed to get mybb up and running.
Here is my NGINX config.
(Edited out some of the useless stuff.)
server {
server_name myvpsip;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
root /var/www/html;
}
FFS, reinstalled now it downloads the php files!!!
Just paste my config inside of yours and see if you get something useful.
@Zen
XD
Try this :
Still nothing.
Centos...
http://www.howtoforge.com/installing-nginx-with-php5-and-php-fpm-and-mysql-support-on-centos-6.0
DataFrogs, I'd recommend you to:
1. reinstall a clean Deb 6 32-bit system
2. run Minstall
3. run minAdmin
Super easy, community tested system in 5 minutes!
Centos 5.x running on BuyVM 512
CentOS 5 & 6 sre so similar when it comes to installing things dude, just try it anyway..
5 if it matters: http://library.linode.com/web-servers/nginx/php-fastcgi/centos-5
for centos, just change apt-get to yum