A wordpress site hosted in iis was working fine earlier. Due to maintenance, server been shut down for a week, after restart i tried to backup my wordpress site. Trouble started when i tried to take wordpress backup by browsing into wp-admin page. I couldnt load the wp-admin page since the webpage is not servable by iis. It says site could not be reached. Took too long to respond.
Have tried hosting a new website with hello world html which this works fine. https://support.microsoft.com/en-us/help/279729/web-pages-not-serving-from-iis
Have tried following but same result.
Have changed port number.
Have stopped the other websites, and browsed the site in iis.
Have placed the sample hello world file inside the wordpress and tried to browse.
Looked into eventviewer -> Windows logs -> Application. No logs related to iis
Looked into %SystemDrive%\inetpub\logs\LogFiles logs it shows,
/#Software: Microsoft Internet Information Services 10.0
/#Version: 1.0
/#Date: 2019-06-12 12:55:53
/#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2019-06-12 12:55:53 ::1 GET / - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 - 200 0 0 361
2019-06-12 12:55:53 ::1 GET /iisstart.png - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 http://localhost/ 200 0 0 4
2019-06-12 12:55:53 ::1 GET /favicon.ico - 80 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/74.0.3729.169+Safari/537.36 http://localhost/ 404 0 2 4
Clueless to proceed further. Any directions is much appreciated.
Related
We are using Magento e-commerce platform for our shopping site behind AWS Cloudfront. In the create page WYSIWYG, there's an option to upload images. Some users are reporting the 403 error is occurring after they choose the image and press the upload button, whilst for others uploading images works.
I don't see any error messages in the nginx access or error logs at the time the 403 occurs for some of these users. However, I do see the following error in the CloudFront log:
date time x-edge-location sc-bytes c-ip cs-method cs(Host) cs-uri-stem sc-status cs(Referer) cs(User-Agent) cs-uri-query cs(Cookie) x-edge-result-type x-edge-request-id x-host-header cs-protocol cs-bytes time-taken x-forwarded-for ssl-protocol ssl-cipher x-edge-response-result-type cs-protocol-version fle-status fle-encrypted-fields c-port time-to-first-byte x-edge-detailed-result-type sc-content-type sc-content-len sc-range-start sc-range-end
2020-01-20 10:22:13 MAN50-C1 570 xx.xx.xx.xx POST jhgfjgfjsd.cloudfront.net /index.php/ctrl-web-team/cms_wysiwyg_images/upload/type/image/key/88fdfad6d6b726871662108fad3d3de3/ 403 https://www.example.com/index.php/ctrl-web-team/cms_page/new/key/c7e419205e2c23c854cd4ea1d741bdad/ Mozilla/5.0%20(X11;%20Linux%20x86_64;%20rv:72.0)%20Gecko/20100101%20Firefox/72.0 SID=gm892fbgp7lep0 - Error Z6p-RiAuq7RA7ryi3iNHD== www.example.com https 16778 0.844 - TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 Error HTTP/2.0 - - 42776 0.844 Error text/html 134 - -
2020-01-20 10:22:17 MAN50-C1 1547 xx.xx.xx.xx POST jhgfjgfjsd.cloudfront.net /index.php/ctrl-web-team/cms_wysiwyg_images/contents/type/image/key/0f36c05043efc3435jj342d6a3071e6a47/ 200 https://www.example.com/index.php/ctrl-web-team/cms_page/new/key/c7e419205e2c23c854cd4ea1d741bdad/ Mozilla/5.0%20(X11;%20Linux%20x86_64;%20rv:72.0)%20Gecko/20100101%20Firefox/72.0 isAjax=true - Miss nu8CAYvBxQnpvMbAhdgdf= www.example.com https 545 0.612 - TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 Miss HTTP/2.0 - - 42776 0.612 Miss text/html;%20charset=UTF-8 - - -
Any guidance appreciated.
The error occurred as some requests were being blocked by the AWS WAF (web application firewall). Review the rules associated with ACL in WAF.
I had to define an additional "String and regex matching" rule in the AWS WAF Classic to allow the requests.
I am trying to configure a site to run locally on a windows 10 machine.
This is a .NET 4.0 site. When I launch the site using .NET 2.0 in the application pool for the site, I get the following error:
When I try to run changing the application pool to .NET 4.0 (classic) I just get a 404 error.
Am I missing some configuration or changes somewhere?
This is the log I see from IIS:
2019-12-16 09:48:12 127.0.0.1 GET / - 443 - 127.0.0.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/78.0.3904.108+Safari/537.36 - 404 17 50 6
2019-12-16 09:56:31 127.0.0.1 GET / - 443 - 127.0.0.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/78.0.3904.108+Safari/537.36 - 500 0 0 708
2019-12-16 09:58:36 127.0.0.1 GET / - 443 - 127.0.0.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/78.0.3904.108+Safari/537.36 - 404 17 50 4
2019-12-16 09:59:15 127.0.0.1 GET / - 443 - 127.0.0.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/78.0.3904.108+Safari/537.36 - 404 17 50 1
Error 500 when I access using .NET 2.0, 404 when I access through .NET 4.0.
Also, is there somewhere I can see detailed logs of what is causing this, where IIS is looking for the file?
I have been able to get past this error, even though I am still facing others.
In case anyone stumbles upon this, what was missing was the HTTP Activation windows feature.
I am leaving an image here, even though it's in portuguese:
I must move my wordpress website from one server to another. There is no way to backup it, so I copied wp-content files and moved to the new server. Also I moved database, so in my new server I have same database, same user, same password, also I changes user and password info in wp-config.php file.
But there is a problem such:
Internal Server Error The server encountered an internal error or
misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the
error occurred and of anything you might have done that may have
caused the error.
More information about this error may be available in the server error
log.
and here is error log:
#Software: Microsoft Internet Information Services 8.0
#Version: 1.0
#Date: 2015-06-24 22:07:41
#Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken
2015-06-24 22:07:40 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /admin.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 404 0 2 1333 179 4843
2015-06-24 22:07:40 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /administrator/index.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 404 0 2 1333 193 203
2015-06-24 22:07:43 W3SVC181 P3NWVPWEB067 50.62.160.227 GET /wp-login.php - 80 - 193.201.227.78 HTTP/1.0 Opera/9.80+(Windows+NT+6.1;+U;+ru)+Presto/2.8.131+Version/11.10 - - voskevaz.info 302 0 0 564 182 1250
I really don't know what does it mean and how to fix it.
Thanks
The lack of a 5xx response code in your log file is interesting.
In the log extract you posted above, the last line is a request for /wp-admin.php, and is served with a 302 response code, which means it was redirected somewhere else.
I'm guessing this is happening because you configured the site to only allow users to log in over a secure (HTTPS) connection. So when you visit http://··(your site)··/wp-login.php, you're being redirected to https://··(your site)··/wp-login.php. If the new site doesn't have a proper SSL certificate installed, this will cause an error. (And it looks like your site is logging HTTPS traffic somewhere else.)
To prevent this from happening, edit /wp-config.php and change define('FORCE_SSL_LOGIN', true); to define('FORCE_SSL_LOGIN', false);.
Problem had been Fixed
Following a tutorial on MSDN- I created and accessed a WCF services with the Northwind database just fine. With different data, I followed the same process: defined my ADO.NET entity model, created the data service, and enabled access to resources, but I am receiving an error. The error on the webpage only says "Request Error." I have IIS 8.0 express installed, both web.configs are similar, and WCF service is enabled.
I put a break point on InitializeService(), but it never hits that sub. I am not sure where to go from here.
IIS Log file
Software: Microsoft Internet Information Services 8.0
Version: 1.0
Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip vcs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken
2013-09-14 09:47:04 ::1 GET /tinytrots.svc - 50274 - ::1 Mozilla/5.0+>>(Windows+NT+6.1)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/29.0.1547.66+Safari/537.36 -> 307 0 0 769
2013-09-14 09:47:04 ::1 GET /tinytrots.svc/ - 50274 - ::1 Mozilla/5.0+> (Windows+NT+6.1)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/29.0.1547.66+Safari/537.36 - >500 0 0 608
IIS TraceLogFiles
ModuleName: ManagedPipelineHandler
Notification: EXECUTE_REQUEST_HANDLER
HttpStatus: 500
HttpReason: Internal Server Error
HttpSubStatus: 0
ErrorCode: The operation completed successfully.(0x0)
Event Viwer
My Application logs says "The direcoty specified for caching compressed content C:\Users\Me\AppData\Local\Temp\iisexpress\ISS Temporary Compressed Files\ Clr4IntegratedAppPool is invalid. Static compression is being disabled."
The Data Service
Public Class tinytrots
Inherits DataService(Of TinyTrotsDBEntities)
Public Shared Sub InitializeService(ByVal config As DataServiceConfiguration)
config.SetEntitySetAccessRule("Activities", EntitySetRights.All)
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3
End Sub
End Class
Had to run this command to register the required script maps in IIS: >"%WINDIR%\Microsoft.Net\Framework\v4.0.30319\ServiceModelReg.exe" -r
http://www.msdn.microsoft.com/en-us/library/ms751527.aspx
http://www.msdn.microsoft.com/en-us/library/ms752252.aspx
I'm running Wordpress with: Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed.
After 3 days researching and configuring, I succeeded to configure.
Running "top" and hitting some cached pages, it shows:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13387 nginx 20 0 472m 11m 4664 S 12.3 2.0 0:46.55 nginx
17577 nginx 20 0 443m 47m 29m S 0.7 8.0 0:42.88 php-fpm
17591 nginx 20 0 438m 43m 29m S 0.7 7.2 0:42.59 php-fpm
1486 mysql 20 0 851m 21m 4832 S 0.3 3.7 1:24.71 mysqld
17907 nginx 20 0 438m 48m 34m S 0.3 8.1 0:36.78 php-fpm
18065 nginx 20 0 442m 47m 29m S 0.3 8.0 0:33.49 php-fpm
18543 nginx 20 0 445m 63m 42m S 0.3 10.6 0:22.94 php-fpm
21125 root 20 0 15012 1148 868 R 0.3 0.2 0:00.86 top
1 root 20 0 19356 1388 1136 S 0.0 0.2 0:00.74 init
1) Why every request is being processed by PHP-PFM? Shouldn't W3 Total Cache supposed to prevent the request from been processed by PHP-FPM?
I know that my page is being cached because every page return in the end of HTML:
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/
Page Caching using disk: enhanced
2) If I install Varnish in front of Nginx, will it stop the request from being processed by PHP-FPM? (Performance will increase? I'm using a Micro Ec2, Ram = 613MB)
PS: The response header is returning "Cache-Control: max-age=0, no-cache" from server. I don't know if this influence W3 Caching.
My specs:
Amazon Micro EC2
Linux version 3.4.48-45.46.amzn1.x86_64 Red Hat 4.6.3-2 (I think it's based on CentOS 5)
PHP 5.3.26 (fpm-fcgi)
I'm not aware of how this w3 total cache works, but let me state to you some facts,
first of all on the nginx level, any php page must hit the php engine, because that's probably what your try_files tells the nginx to do, if w3 total cache has some sort of html cache of the pages, then without some changes to nginx config you will still hit the php even if the cache existed. And if the cache is not really in a form of html then probably the php engine checks for the existence of the page then decides whether to rebuild the page or serve the cached one instead, so you definitely need php to run, the difference is that it won't hit the database and it won't do any processing, just serving the cached page instead.
second question, varnish, yes varnish would actually be good, it would spare you the need of a cache plugin, but then you need to make sure that wordpress knows when to ask varnish to purge the cached pages, the structure of the server would be user -> varnish -> nginx -> php, if varnish has a cached page or assets (css,js,etc) it would serve it directly without passing the request to nginx, I've tried it on a website and the response times of a cached page definitely improved, even when i did a ctrl+f5 to request the whole page without cache it still returned very fast as if the page was just a plain html page.
You'll still need to mess around with the varnish config, or at least that's what i did, because it needs a little bit of learning, but so far all I did was some copy and pasting from blogs and stuff and it worked just fine with me.
I installed Varnish in front of my server, but again, it was being processed by PHP-FPM.
The problem was the lacking of slash at the end of the URL.
In Wordpress, a page is a directory, so it respond as www.mysite.com/page1/.
The point is when you hit www.mysite.com/page1 (without the slash), Nginx have to redirect to www.mysite.com/page1/ (with slash), and by doing this, it uses PHP-FPM.
After putting the slash at the end of all links in my site, the redirect was not done, and all of my page was not processed by PHP-FPM.