Youtube data API V3 PHP on IIS web server not working - php

I am trying out the YouTube data API V3 using PHP on a IIS web server (version 8.5.9600). I followed the instructions provided, installed the PHP code samples, API client library using composer, and setup the developer API key etc... https://developers.google.com/youtube/v3/code_samples/php
When trying out the search function on the PHP code samples, it returns a blank page.
I did the same but with a XAMPP installation with Apache web server (version 2.4.25) and it works fine. The problem is when I use the IIS web server. The code is exactly the same since I just copied the files, the PHP version is also the same PHP 7, I also tried with PHP 7.1. The web servers are installed on a Windows 8.1 machine.
I would really love to know how I can make the YouTube API work under PHP in IIS.

I managed to fix the issue thanks to Hackerman. I followed the related question to enable the error messages on the webserver. The error was a cURL error 60. I managed to fix it by following another thread - PHP cURL error code 60.
Now everything is ok!

Related

PHP Install on IIS 7, no test results

I am trying to install PHP on my IIS web server running version 7.0. I downloaded the php-7.1.8 Non Thread Safe for Windows 64. I then procceded to follow the steps found here: https://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/.
I had no issues with the install but when it came to the last step of creating the test PHP page and launching, instead of getting the results, i'm being asked to Open or save the file??
I've also tried putting this into a live website and accessing it outside the web server. When I try this I receive a 500 - Internal Server Error.
I had tried this about a year or two ago and got frustrated, so I gave up and have retried today but experiencing about the same result. Don't know what other information would help, but i'm willing to provide what's necessary. Thank you for any help.
After continuing research I ended up using the Windows Installer version (https://www.microsoft.com/web/platform/phponwindows.aspx) and then went back through the configuration steps of the php.ini file.

Sagepay v3.0 php integration demo not working

I am trying to upgrade from an earlier version of sagepay php integration to the new v3.0. First step is to get the demo working. I downloaded VspPHPkit from the site and installed it under localhost/sagepay on my Ubuntu development environment.
I have setup the MYSQL and have checked that the mod_rewrite on Apache is enabled. All good. I have also copied the htaccess file to my web root.
My problem is that when I load localhost/sagepay/demo, the page renders ok but the links to the Form Protocol example points to localhost/sagepay/demo/form. This is not a directory which is in the installed example and neither is it specified in the htaccess as a redirect.
I must be missing something.
I had the same problem. It turned out that I had version 7.0 of PHP active rather than version 5.6. Once I switched to 5.6, it all worked fine.

A codeigniter application migrated from WAMP to LAMP stopped working

I developed an application using codeigniter php 5.3 Apache and mysql with WAMP server on Windows 7 using WAMP. Recently, I started moving the application to Ubantu 14 with apache2, php 5.5 and mysql. It is dead now. I am able to access simple php script under www but my application is showing only blank page. (mozilla debugger shows error 500). Logs are not showing anything. What could be the reason?.. is it a common problem? It's the first time I am using Ubantu.
Well codeigniter is supported to php version 5.4 currently so won't work on php 5.5 but if you want it to work then downgrade php version or else the below link might help you.
https://dillieodigital.wordpress.com/2014/05/30/quick-tip-how-to-running-codeigniter-on-php-5-5-and-mysql-5-6/

PHP application which worked in XAMPP is not working in IIS 7

Recently I've uploaded my PHP application, which was working in XAMPP into a new server having IIS7. And now the application stopped working. The login page doesn't authenticate the users.
I followed all the instructions available in the following links,
http://php.iis.net/
http://www.php.net/manual/en/install.windows.iis7.php
on how to install PHP in IIS and hosting a PHP application in IIS7 using FastCGI but of no result.
What is the problem? I couldn't figure it out.

How to diagnose an internal server error (HTTP 500) from a PHP page in IIS 7.5

I am trying to get a trial copy of the aMember membership management system running on my local dev machine, which is Windows 7 64-bit with IIS 7.5. I have MySQL 5.5.10 and PHP 5.3.6, the latter which I installed using the Windows installer package. It seems fine.
The aMember package has a tester.php script which I ran, and it gave an 'OK' result, despite its output being full of error messages related to Function eregi() is deprecated. I then ran the setup.php script, which seemed to run properly. It took me through one or two screens of gathering e.g. login information for MySQL, and then said it was completed and offered me links to some aMember admin pages. None of these links work, and clicking any of them results in an Internal Server error (HTTP 500): An unexpected condition was encountered while the server was attempting to fulfill the request.
What can I do to further diagnose this error, short of placing lots of diagnostic writes in the php pages themselves? Tools at my disposal are Aptana Studio and Visual Studio, although I doubt the latter is any use here. I have logged the issue with aMember support, who quickly asked for my server logs, and then disappeared.
My first port of call here would be to enable Failed Request Tracing:
Troubleshooting Failed Requests Using Tracing in IIS 7
Troubleshoot with Failed Request Tracing
I am also suspicious about your PHP install. As a rule of thumb never use the installers. They never seem to do the right thing.
I would tear down your PHP install and start from scratch using these steps:
Using FastCGI to Host PHP Applications on IIS 7
FastCGI + the Non-threadsafe build of PHP (5.2 or 5.3) is the definitive way to install and configure PHP on IIS7.
The aMember trial software uses encoded PHP which requires IonCube to decode. I had installed this, but it seems the installation had failed, as a subsequent installation remedied the problem. I was initially stumped because after installing IonCube, I ran the aMember test script which told me IonCube was installed. aMember support responded that:
unfortunately tester script is not handle situation with dynamic loading correctly.
PHP from 5 version do not allow to load libraries dynamically if these libraries are not in php lib folder. So you have to install IonCube or Zend into server php.ini'
I don't know why that can't build a warning into the test script.

Categories