how to set up wordpress with php-fpm

i have managed to get wordpress running with php-fpm and apache2.4 but the when you click on links the page does not render correctly

this is what I have in /etc/httpd/conf.d/php.conf

#SetHandler “proxy:fcgi://127.0.0.1:9000”
AddHandler php5-script .php .phtml .html .css .js
AddType text/html .php

# This is to forward all PHP to php-fpm.
<FilesMatch .php$>
SetHandler “proxy:fcgi://127.0.0.1:9000”
</FilesMatch>

# Set some proxy properties (the string “unique-domain-name-string” should match
# the one set in the FilesMatch directive.
<Proxy fcgi://127.0.0.1:9000>
ProxySet connectiontimeout=5 timeout=240
</Proxy>

# If the php file doesn’t exist, disable the proxy handler.
# This will allow .htaccess rewrite rules to work and
# the client will see the default 404 page of Apache
RewriteCond %{REQUEST_FILENAME} .php$
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI} !-f
RewriteRule (.*) – [H=text/html]

the site in question is http://www.banglarelief.org/ . how can i fix this?

DNS is in Godaddy and being forwarded to amazon where the site is hosted.

error in see in console log is which is trying to load js files.

Uncaught SyntaxError: Unexpected token <

contents

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
“http://www.w3.org/TR/html4/strict.dtd”>
<html>

<head>
<title>Bangla Relief </title>
<META name=”keywords” content=”Charity”>
</head>
<frameset rows=”100%,*” border=”0″>
<frame src=”http://bangla-relief-1256586364.eu-west-2.elb.amazonaws.com/wp-includes/js/jquery/jquery.js?ver=1.12.4″ frameborder=”0″ />
<frame frameborder=”0″ noresize />
</frameset>

<!– pageok –>
<!– 10 –>
<!– –>
</html>

Read more here:: how to set up wordpress with php-fpm

Leave a Reply

Your email address will not be published. Required fields are marked *