Post Reply 
Easy nginx+php-fpm+mysql on CentOS 5 (depreciated, use CentOS 6 for new installs)
04-12-2011, 11:49 PM
Post: #21
RE: Easy nginx+php-fpm+mysql on CentOS
dmm, Have you added the .php files fix?

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
Quote this message in a reply


04-13-2011, 12:04 AM
Post: #22
RE: Easy nginx+php-fpm+mysql on CentOS
Yes.
User Tools
Quote this message in a reply
04-13-2011, 12:12 AM
Post: #23
RE: Easy nginx+php-fpm+mysql on CentOS
Nice!

"I like to put random quotes, to make myself look clever."
- WiseMannnn
User Tools
Quote this message in a reply
04-19-2011, 01:37 PM
Post: #24
RE: Easy nginx+php-fpm+mysql on CentOS
How is about MySql?
I need mysql for dynamic website.
I tried
Code:
mysql -u root -p
and used "root" as password. What should the password be?
And conf file seems like that
Code:
server {
    server_name domain.com www.domain.com;
    root /var/www/domain.com;
    include php;
}
Is fcgi is already there?
And I need help for using SSL. Please help me.
Sorry for silly question, I'm pretty newbie.

Everything on WordPress
User Tools
Quote this message in a reply
04-19-2011, 01:43 PM (This post was last modified: 04-19-2011 01:44 PM by dmmcintyre3.)
Post: #25
RE: Easy nginx+php-fpm+mysql on CentOS
the default password for mysql is blank.

Code:
listen 80; listen 443 ssl default;
ssl_certificate /path/to/ssl.crt;
ssl_certificate_key /path/to/ssl.key;
if your cert has a .cabundle file in addition to the .crt (or .pem) file, merge them.

The include php; line includes the file /etc/nginx/php which has the fastcgi config.
User Tools
Quote this message in a reply
04-19-2011, 01:50 PM
Post: #26
RE: Easy nginx+php-fpm+mysql on CentOS
Thanks Admin for your kind help. I used LowEndScript before but I like CentOS most. So yours one will help me.Blush

Everything on WordPress
User Tools
Quote this message in a reply
04-21-2011, 01:03 AM
Post: #27
RE: Easy nginx+php-fpm+mysql on CentOS
Error when ssl is enabled.

Code:
[root@vm conf.d]# /etc/init.d/nginx restart
[emerg]: SSL_CTX_use_PrivateKey_file("/etc/ssl/ssl.key") failed (SSL: error:0906D066:PEM routines:PEM_read_bio:bad end line error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
configuration file /etc/nginx/nginx.conf test failed

Any suggestion?

Everything on WordPress
User Tools
Quote this message in a reply
04-21-2011, 01:07 AM
Post: #28
RE: Easy nginx+php-fpm+mysql on CentOS
is "-----END RSA PRIVATE KEY-----" the only thing on the last line and no blank lines?
User Tools
Quote this message in a reply
04-21-2011, 01:13 AM
Post: #29
RE: Easy nginx+php-fpm+mysql on CentOS
(04-21-2011 01:07 AM)dmmcintyre3 Wrote:  is "-----END RSA PRIVATE KEY-----" the only thing on the last line and no blank lines?

No blank line is there.

Everything on WordPress
User Tools
Quote this message in a reply
04-21-2011, 01:15 AM
Post: #30
RE: Easy nginx+php-fpm+mysql on CentOS
Is /etc/ssl/ssl.key the path to your ssl cert's key?
User Tools
Quote this message in a reply
Post Reply 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)