PHP in windows 10 - php

I installed every version of PHP on windows 10 via the web platform installer with IIS10 as the web server. A simple page using PHP 7.1 as follows
<?php
echo "Hello world";
returns back a [HTTP/1.1 500 Internal Server Error 19ms] message.
Any feedback as to what I could be missing.
Thanks.

Related

Running Program on My Local Windows Server

I have a windows 2012 server that has been created for me. I am using a Mac and using Microsoft Remote Desktop to connect to the server. When I am using my Mac, I plug in the address of my server and code file (my_server/path_of_file) so I can run it but every time I get an error, usually either Server error 404 or Server error 500. How can I fix this so that I can browse files on my server from my Mac?

Error 500 on GAE local dev server with Laravel and PHP 5.5

I'm running Laravel on Google App Engine.
Since App Engine runs PHP using a PHP 5.5 interpreter, I specified php55 as runtime. The project runs well on Google's servers.
When I run my website on the local dev server the SDK provides using runtime: php everything works fine. Changing the runtime to php55 gives me a blank page and the following error in my log:
Unable to delete function dlUnable to delete function mb_send_mail
ERROR:root:php failure (255) with:
stdout:
Status: 500 Internal Server Error
X-Powered-By: PHP/5.5.23
Content-type: text/html
I installed the newest version of the GAE SDK.
Of course I can run with the runtime variable set to php instead of php55, but I'm still wondering why runtime: php55 doesn't work on localhost and if I'm missing something here.
I'm seeing this as well on OSX running via command line. My suspicion is that this is a bug in the Google App Engine development server.
I've opened a ticket here and will gladly update this answer once something more concrete is determined:
https://code.google.com/p/googleappengine/issues/detail?id=12127

Facebook PHP sdk 500 Internal Server Error on windows server

I am trying to integrate Facebook php sdk with my application (build on YII framework) using yii-facebook-opengraph extension.
The problem arises once i am trying to authenticate to facebook. after authentication and redirects to the domain its throwing 500 internal server error.
Application hosted on windows server, PHP (5.2.17), Yii(1.1.14),parallel plesk(9.5).
The cause for 500 internal server is unknown. also checked the log but its of no help to trace the error.
Please help me to fix the issue.
The most recent version of Facebook's PHP SDK, version 4, requires PHP 5.4. Your question indicates that you're using an earlier version of PHP.

Customize HTTP 400 error page in IIS 7

Is their any way to display a custom page for HTTP 400 error.
I'm using PHP with IIS7 in Windows server 2008 R2
I checked Microsoft website and got this info. It tells that we can't customize it.
I found another article regarding this via ".htaccess" file (http://perishablepress.com/custom-http-errors-via-htaccess/)
No. We cannot display a custom page for HTTP 400 error using PHP in IIS7 in windows server 2008 R2.
Please refer the link for more details.(Link)

HTTP Error 500 on phpinfo.php

I just installed MySQL on Windows Server 2008 R2.
I followed the instructions on: [Install and Configure MySQL for PHP Applications on IIS7][1]
And when i was gonna check phpinfo.php, i get error 500. Here is a ScreenShot that i took when using RDP to our Windows 2008 R2 server. http://i.stack.imgur.com/hW7qG.png
I have no idea what causes this error. And i have absolutley no idea how to fix this.
Here is the error log that IIS made for today: http://s000.tinyupload.com/?file_id=11719906829973224437
i've searched around using google, and there was no solution for my problem.
I have PHP Manager, and it does not show any message that would indicate there is a problem with the PHP configuration.
Any idea how i can fix this, so that i can continue on developing the website for my company?

Categories