Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter sameermanas

    (@sameermanas)

    Hi Everyone,

    I got that issue fixed after adding a line in Webmin. This is for Webmin enabled users, so make sure you have WEbmin installed.

    Go To Webmin>Servers>Nginx Webserver

    In that select the Edit Configuration Files option.

    Then select your /etc/nginx/sites-available/yourdomainname.com

    You will see something like this:

    server {
    	server_name sameermanas.com www.sameermanas.com;
    	listen 69.85.88.135;
    	root /home/sameermanas/public_html;
    	index index.html index.htm index.php;
    	access_log /var/log/virtualmin/sameermanas.com_access_log;
    	error_log /var/log/virtualmin/sameermanas.com_error_log;
    	fastcgi_param GATEWAY_INTERFACE CGI/1.1;
    	fastcgi_param SERVER_SOFTWARE nginx;
    	fastcgi_param QUERY_STRING $query_string;
    	fastcgi_param REQUEST_METHOD $request_method;
    	fastcgi_param CONTENT_TYPE $content_type;
    	fastcgi_param CONTENT_LENGTH $content_length;
    	fastcgi_param SCRIPT_FILENAME /home/sameermanas/public_html$fastcgi_script_name;
    	fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    	fastcgi_param REQUEST_URI $request_uri;
    	fastcgi_param DOCUMENT_URI $document_uri;
    	fastcgi_param DOCUMENT_ROOT /home/sameermanas/public_html;
    	fastcgi_param SERVER_PROTOCOL $server_protocol;
    	fastcgi_param REMOTE_ADDR $remote_addr;
    	fastcgi_param REMOTE_PORT $remote_port;
    	fastcgi_param SERVER_ADDR $server_addr;
    	fastcgi_param SERVER_PORT $server_port;
    	fastcgi_param SERVER_NAME $server_name;
    	location ~ \.php$ {
    		fastcgi_pass localhost:9003;
    	}
    
    	location / { try_files $uri $uri/ /index.php?$args; }
    
    }

    Notice the line called “location / { try_files $uri $uri/ /index.php?$args; }”

    That is the line I added in the end. It fixes your Permalinks issues.

    At last make sure you click Save and then click on Apply Nginx Configuration

    Hope this helps anyone out there like me.

    Thread Starter sameermanas

    (@sameermanas)

    Thank you all for your time !

    Finally one simple question. If i host a new website on the same VPS, can i use the same conf file in site-available (Of course i will change the domain to newdomain.com in the links)

    Like /nignx/sites-available/domainone.com.conf
    /nginx/sites-available/domaintwo.com.conf
    .
    .
    etc

    Thread Starter sameermanas

    (@sameermanas)

    Thank you very much sir. Is there anything else i should do further to ensure less conflicts.

    Also since you asked me to disable W3Total Cache, I did that immediately.

    However in order to make sure that the Nginx and other related tools work fast, Are there any other plugins or codes that make WordPress faster and less resource hungry.

    Thank you very much once again for the help Pothi Kalimuthu Sir

    @arnoud : Thank you very much for taking the time to look through this. Also can you suggest any changes that are needed for the “sites-available” and “sites-enabled” folders.

    I really don’t understand what difference they make.

    Thread Starter sameermanas

    (@sameermanas)

    @ Arnoud I am using Php-Fpm and i have the [sitename].conf file in the sites-available folder(Not inside sites-enabled). Sites-enabled is not touched till now.

    The PHP version is 5.3.6 and Nginx is 1.0.5

    Yes i have been through the configuration details but unfortunately i haven’t been through the pitfalls thing.

    @pothi Kalimuthu: Here is the file of /etc/nginx/sites-available/bloggerstack.com.conf

    https://piratepad.net/hFhfRqvZ6D

    I have sent the details to you via Facebook. Please go through them once.

    Thread Starter sameermanas

    (@sameermanas)

    Here is the Nginx.conf.

    I had to use piratepad since pastebin wasn’t working at the time.

    https://piratepad.net/nQbG669fqs

    This configuration was actually from https://github.com/perusio/wordpress-nginx

    It was created for nginx and wordpress, so i gave it a try. But none of them are working for me.

    @pothi Kalimuthu: If you want to take a look into all the files, I can provide you my credentials sir.

    Thanks in advance.

    Thread Starter sameermanas

    (@sameermanas)

    I already installed that plugin but there is no effect yet :/

    I guess the nginx conf files need some more code, but i am not well versed with the code.

    Thread Starter sameermanas

    (@sameermanas)

    @ Clayton,

    Thanks for the help. I opened a ticket 5 days back but still they are lagging the issue and aren’t responding. Maybe i’ll have to wait for a few more days for this to be resolved.

    Thanks for your time ??

    Thread Starter sameermanas

    (@sameermanas)

    Hi Clayton,

    Those lines are all commented and also there exist another php.conf.rpmsave

    I came across a CentOS forum where i came to know that Atomic repo would be updating things by itself and everything would be automated. So i added that to the rep’s. Do you think that is causing the issue ??

    Here is the content of the php.conf

    #
    # PHP is an HTML-embedded scripting language which attempts to make it
    # easy for developers to write dynamically generated webpages.
    #
    <IfModule prefork.c>
      LoadModule php5_module modules/libphp5.so
    </IfModule>
    <IfModule worker.c>
      LoadModule php5_module modules/libphp5-zts.so
    </IfModule>
    
    #
    # Cause the PHP interpreter to handle files with a .php extension.
    #
    AddHandler php5-script .php
    AddType text/html .php
    
    #
    # Add index.php to the list of files that will be served as directory
    # indexes.
    #
    DirectoryIndex index.php
    
    #
    # Uncomment the following line to allow PHP to pretty-print .phps
    # files as PHP source code:
    #
    #AddType application/x-httpd-php-source .phps

    Is it better to remove the comments or anything i should change ?
    If anyone can help me out i wouldn’t mind giving my credentials to the VPS.

    Thread Starter sameermanas

    (@sameermanas)

    Hi Clayton,

    Here is the out put and i use Webmin

    wbm-php-pear-1.5-1
    php-xml-5.3.8-2.el5.art
    php-mcrypt-5.3.8-2.el5.art
    php-cli-5.3.8-2.el5.art
    php-gd-5.3.8-2.el5.art
    php-pecl-memcache-3.0.6-1.el5.art
    php-pdo-5.3.8-2.el5.art
    php-pdo-5.3.8-2.el5.art
    php-gd-5.3.8-2.el5.art
    php-xml-5.3.8-2.el5.art
    php-5.3.8-2.el5.art
    php-mysql-5.3.8-2.el5.art
    php-common-5.3.8-2.el5.art
    php-common-5.3.8-2.el5.art
    php-pear-1.7.2-2.el5.art
    php-mcrypt-5.3.8-2.el5.art
    php-5.3.8-2.el5.art
    php-mysql-5.3.8-2.el5.art
    Thread Starter sameermanas

    (@sameermanas)

    Hi ChristiNi,

    I tried the tutorial and created a file but it is just displaying the content of the file as <? phpinfo(); ?>

    Also all the files in the WordPress directory are showing up with the content.

    I tried 755 on all directories and 644 on all files but still i get plain text when i go for

    https://www.gensparkmedia.com/wp-admin/install.php

    here is the file i made with phpinfo

    https://www.gensparkmedia.com/phpinfo.php

    What does it indicate ? PHP running or stopped ?

    Thread Starter sameermanas

    (@sameermanas)

    Hi Tim,

    I tried contacting them numerous times but they aren’t so good at responding to customer problems.

    The blogs are to be installed on a VPS with CentOS on it. I tried restarting the apache server but that didn’t help me either !

    I don’t understand what steps i need to take further.

    Thread Starter sameermanas

    (@sameermanas)

    Hi ChristiNi,

    Those threads are helpful to me. I tried some steps from them but now problem is redirected to PHP

    I am getting PHP missing on the install.php even when it is installed on the VPS

    Can you suggest any remedy on that

    These are the websites that we are trying to get installed

    https://www.gensparkmedia.com/wp-admin/install.php
    https://www.choicebasket.com/wp-admin/install.php

    Both give me the same error !

Viewing 12 replies - 1 through 12 (of 12 total)