At first, sorry for my English.
I'm currently installing the newest version of simplesamlphp (an unknown tool 'till now for me + I'm a Java developer (not php) so my knowledge on php is limited).
The main aim is to use CAS with SAML2 using simplesamlphp.
The problem is... on CAS.php module file we have a call to 'new SimpleSAML_Auth_LDAP(...)' which is supposed to create a connection to the ldap server, but it fails and shows no error (just a blank page). I tracked the error to the ../lib/SimpleSAML/Auth/LDAP.php file constructor; it fails when it tries to connect to the ldap:
$this->ldap = #ldap_connect($hostname, $port);
Any idea about it?
I finally managed to make it run, i just had to reinstall php5-ldap, seems that something went wrong the first time it was installed. Now I have more doubts about how it really works, but the post is resolved.
Related
I'm really new in google cloud services and servers. I've successfully installed LAMP over SSH. However, when I try to post, get request over postman or application it always gives me 500 Internal Server Error. I wonder if there is a configuration that I missed? I do not know, maybe it is a problem with the port or maybe I should ho with App Engine instead of Compute Engine. I do not know what kind of document or code I should put here. In cases when you want I can share. Thank you!
I found the solution from log file! thank you #jabbson :) I learn that is very important and helpful to check log files.
phpenmod mysqli
whit this command I've successfully activate extension and now it gives respond code 200. If someone will face this issue first -> check the apache2 log files, then-> don't forget to activate required plugins or extensions!
I have an app that makes use of third party software using PHP(32 bit PHP) COM object, everything is working fine on my local machine (Windows 7, 64bit).
When I deployed my app to a live server (Windows Server 2012, 64bit) and I try to create my COM object I'm getting the
Fatal Error: Cannot create object "Class not registered"
After finding these other SO questions:
Class not registered error from PHP
Failed to create COM object 'X': Class not registered in another WAMP
I have ran regsvr32.exe (the 32bit version) for my DLL with message prompt indicating successful registry.
And also verified that the CLSID exists in all the proper places in the registry (registry entries are the same on both machines):
HKEY_CLASSES_ROOT\Wow6432Node\CLSID
HKEY_LOCAL_MACHINE\Software\Classes\Wow6432Node\CLSID
Does anyone know why I am still receiving this error? Is it due to Windows Server 2012 OS?
I'm not familiar with hosting php websites in windows but I know for IIS hosted websites I get this error for a myriad of reasons. Some of which you've mentioned above. When hosting in IIS I know there is a setting that needs to be set to True called "Enable 32 bit applications"
Also you want to make sure if you are transferring this file from another computer that the file is unblocked as this will cause a lot of headaches as well and strange errors.
Sometimes what I do as well is to write a simple test gui that calls this com dll to eliminate anything related to running it as a website. If you are able to access it with the gui application it could be something security related to running it as a website if the user the website is running under is different than the user launching the gui application.
Edit
Also try the article mentioned here:
http://www.gfi.com/blog/32bit-object-64bit-environment/
It seemed to have helped you judging by the comment below.
I am trying to use a c++ app to access a php script on a different computer. The script queries a mysql database and outputs the values. When accessing https://myaddress/script.php in my web browser, it gives me the "The site's security certificate is not trusted!" page, then allows me to Proceed Anyway. I expected that, and it is ok because I have not yet jumped through the hoops to get my certificate certified.
However, when I try to access the same site from within my c++ app using QNetworkAccessManager, it tells me that the SSL handshake failed and quits out.
Why is this a problem? Does it have something to do with the fact that my certificate hasn't been authenticated, or is it something else? Can I set a feature in Qt Creator that allows my code to access even not trusted sites?
Any guidance would be very helpful,
Thanks in advance.
I had similar problem, I did two things:
re run/install Win32 OpenSSL Installation.
Download the latest "light" Win32 or Win64 installation package, for example "Win32 OpenSSL v0.9.8l Light".
follow link here:
http://developer.nokia.com/community/discussion/showthread.php/234276-Qt-SSL-handshake-failed
I have tried to setup and installed PHP and MySql in IIS because I want to try PHP web development, and after doing that, I have checked the websites I have created in Visual Studio to check if the websites I have created in ASP.net and MSSQL were affected. When I tried to run the asp.net websites I have created and tried to login to those websites I started to get the error:
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance"
So what I did was, uninstall MySQL because I was afraid that it was the cause of my problem in MSSQL. After uninstalling, I started to get the error:
login failed for user 'domain\name'
whenever I try to login to my asp.net websites.
Please help me in resolving this issue. Thank you.
You can try:
Delete:
C:\Documents and Settings\\ASPNET\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data
C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS
I'm beginner trying Mongodb.
I installed Mongodb and localhost:28017/ is working.
When I start service via terminal "/etc/init.d/mongodb start" it works.
But I added test.php file in /var/www/
<?php
$connection = new Mongo();
?>
but I'm getting server error "Server error
The website encountered an error while retrieving localhost/test.php. It may be down for maintenance or configured incorrectly.".
There's two parts to MongoDB: the server part, and the client part. The server part does all the real work, but you need to be able to talk to it. Client libraries fill that gap. They abstract the underlying network communication and present a nice API (e.g., new Mongo()) to the user. You've got the server running; that's great. You have not, however, installed the client library for PHP, so PHP has no idea what to do with new Mongo().