Installing Moodle on IIS Server - php

i'm new to use moodle. i'm currently used moodle version 2.5 in iis 8 on local machine windows 8 with sql server 2012 express edition as database server.
what i wanted to know is how to install native mssql? and can we use native mssql to connect it with sql server 2012 express edition on windows 8?
i got this error while install moodle :
Error: database driver problem detected
The site administrator should verify server configuration
PHP has not been properly configured with the MSSQL extension so that it can communicate with SQL*Server. Please check your php.ini file or recompile PHP.
what should i do? thanks
in this article :
How to get mssql work with PHP 5.3?
i found : The MSSQL extension is not available anymore on Windows with PHP 5.3 or later. SQLSRV, an alternative driver for MS SQL is available from Microsoft: ยป http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx.
so if i used moodle 2.5 (it need 5.4.x php version) so i can't use mssql? is that true?
thanks
and sorry for my English.

Have you read follow the instructions in the Moodle Website
Here it is:
Installation overview
1) Get MSSQL Server installed and running. (A free limited version, SQL Server Express Edition is available for testing.)
Make sure that you choose mixed authentication (Windows and local accounts) to keep things simpler later. You'll be asked to define the "sa" account password (it's the default System Administrator account which has full access to all databases by default).
2) Make sure MS SQL Server can accept incoming TCP/IP connections on port 1433 (the standard one).
You might need to explicitly allow this in your Windows firewall (see the Control Panel). You may also need to edit options in the :SQL Server Configuration Manager -> Network Configuration -> Protocols -> TCP/IP enabled
3) Open the "SQL Server Management Studio" and create a new empty database. If you are using the "sa" account then you don't need to do anything else here.
4) Configure these settings in your created (and still empty) database: Configure these settings in your created (and still empty) database:
Use a case sensitive collation, such as Latin1_General_CS_AS.
ANSI NULLS Enabled = true (ALTER DATABASE xxxx SET ANSI_NULLS ON)
Quoted Identifiers Enabled = true (ALTER DATABASE xxxx SET QUOTED_IDENTIFIER ON)
(Moodle 2.x only) Row Versioning Enabled (ALTER DATABASE xxxx SET READ_COMMITTED_SNAPSHOT ON)
This is not settable via the DB properties. To set READ_COMMITTED_SNAPSHOT, there must be no active connections to the database except for the connection executing the ALTER command. If you are viewing the DB in the Server Management Studio, disconnect from any servers in the "Object Explorer" (right-click > Disconnect), then create a "New Query" and run the ALTER command. See http://msdn.microsoft.com/en-us/library/bb522682.aspx for details.
If your DB name starts with a number, you may need to put quotes around the DB name in the query.
5) Get PHP installed with a web server. Unless you want to do it under IIS or some other way, the packages on the Moodle download page are a good solution.
6) Choose one of the following specific sections for your server to install the mssql extension alternative installed and running properly on your PHP box.
7) Set the following settings in your php.ini file
mssql.textlimit = 20971520
mssql.textsize = 20971520
8) With all this properly configured, you can continue with a standard Moodle installation.

Related

PHP: Using different Windows user credentials with APACHE and WAMP Server

In my company we are currently running a WAMP server with SQLSRV drivers for our BD query's, we are looking to use Windows Authentication for SQLSRV connection instead of SQL AUTH , But the default Windows User where the WAMP server is different from the user we need to access the SQLSRV host.
Im looking for a way to change the credentials from the default user to a new user when using Windows Authentication in PHP. I was wondering if is possible to do it from Apache configuration or other tool inside WAMP server.
I have tried starting Apache service as a different user, and the entire WAMP server as different user, but make no difference.

How to connect to http://localhost/magento to complete Magento Community Edition ver1.9.2.4 installation?

After installing MySQL Community Server and successfully creating magento database, I still cannot connect to finish the magento installation or even view the Magento Installation Wizard.
I typed this into the command line:
create database magento;
Gave me ERR: 1820 (HY000), but I overcame this with:
ALTER USER 'root'#'localhost' IDENTIFIED BY 'MyNewPass';
And then quit MySQL.
Then I downloaded the Magento Software Community Edition ver 1.9.2.4 tar.gz, I moved the files to /Library/WebServer/Documents and tried to launch a browser on http://localhost/magento, IP address/magento, and cannot finish the setup since localhost is unable to connect.
I was following this tutorial but now I'm stuck at the 8:00 mark:
https://www.youtube.com/watch?v=EJRaCzPUqic
You may need to set the MySQL socket file path in your php.ini - when connecting to localhost MySQL, PHP would look for the socket first, and the most recent distributions of MySQL (say MacPorts' one) disable networking in MySQL settings by default.
Either enable networking in your MySQL settings (so that 127.0.0.1 can be reached by PHP), use 127.0.0.1 instead of "localhost" in database credentials (host), or amend php.ini to set the default mysql socket to the correct path on your system.

Configuring MySQL connection in Google App Engine PHP SDK on Windows 7

Need basic help configuring Google App Engine SDK on a Windows 7 system to use a local install of MySQL. The GAE install is vanilla (GAE 1.8.8, Python 2.7.6, PHP 5.4), with MySQL 5.6.15 also installed. I am able to use the MySQL console, so MySQL is running. PHP is also running.
When I run a short PHP script consisting almost entirely of this line:
$dbconn = mysql_connect('localhost','root','rootpwd');
this is the error message I get:
Warning: mysql_connect(): No connection could be made because the target machine actively refused it.
My question: What settings do I need to add or change to allow my PHP scripts to connect to MySQL?
My root username and password are correct, as verified by my ability to access MySQL through the console. There are some difference between the GAE SDK setup and that of a WAMP server, which I also have installed on the same machine but which is not running now. Is there still likely to be a conflict between the freshly installed MySQL instance and the one on the WAMP server? Are there some environment variables (in Windows, in the SDK, or elsewhere) that I need to set?
I'm fairly sure this question has been asked before, but the answers I am seeing are either more complex than I can believe would be necessary, or simply gloss over the details of configuring the connection. Any help would be appreciated.
FIGURED IT OUT... Apparently my script was being pointed to the MySQL instance from the WAMP server, which was not running when I tried to connect in the script. As soon as I started that MySQL instance, the script connected to it.
So the moral of the story is... if you already have a MySQL instance installed outside of the GAE SDK, as long as that service is running your GAE PHP script will find it, and there's no need to install another MySQL instance just for the Google SDK.
You must allow external connection.
I don't know the path, but, apparently, the GAE connects to localhost not directly.
You can change the "localhost" by "127.0.0.1" to test it, or to "::1".
Some links to try change MySql external connections rules.
http://www.thegeekstuff.com/2010/08/allow-mysql-client-connection/
How to allow remote connection to mysql

Installing OpenX (Revive AdServer) with remote DB

Dear openx experts out there,
I'm new to PHP and also Revive AdServer (OpenX).
I successfully installed a Revive server using MySql, in a condition where both instances hosted in the same hardware.
My question is, how can I install the Revive server in a different hardware using MySql that hosted in another hardware?
The error on Revive installation wizard is mentioned that MySql not present, and some how I have to checked on php.ini file.
Has anybody tried this attempt before and succeeded, please do drop by and advice me.
Thanks,
Bromo
The issue you have is that the server you are installing Revive Adserver on (not the database server) does not have the required MySQL libraries installed, so PHP does not have MySQL support present. As a result, your PHP server cannot "talk" to a MySQL server.
You will need to (or ask your system administrator to) update the web server that has PHP installed on it, onto which you are attempting to install Revive Adserver, so that the PHP installation has support for talking to MySQL databases.
Once this is done, you should be able to install Revive Adserver just fine, and point it at the remote MySQL server that you want to use.
Revive Ad Server Installation using Remote MySQL :
While Installation Wizard , enter IP Address of your Remote MySQL Server instead of "localhost"
Also Grant Privileges to that mysql user .
If you trying to setup a cluster for openx or revive adserver
Reference:
http://www.sherin.co.in/openxcluster121 &
http://www.sherin.co.in/openxhandbook

How to add ODBC to MAMP on OSX

I'm trying to get ODBC to work on MAMP. I have tried many suggestions and solutions including those already on stackoverflow:
MAMP: Adding ODBC or SQL Server support ,
How do I add an ODBC driver to a MAMP environment?
None are successful so far.
This is the latest I tried.
I downloaded the latest ODBC connector:
http://dev.mysql.com/downloads/connector/odbc/
Installed it with the OSX DMG
I than added the driver in iODBC
I keep getting this message:
Specific driver could not be loaded
and
No suitable image found. Did find: /usr/local/lib/libmyodbc5w.so mach-o, but wrong architecture
Any suggestions?
Looks like you are right about the 32-bit only of iODBC.
You will need to download the Source, and compile from scratch. You will also need to download XCode through the AppStore first, so you have access to gcc and cmake.
Source Code Link: http://www.iodbc.org/downloads/iODBC/libiodbc-3.52.7.tar.gz
Note: From the CLI you can run the lipo -detailed_info /path/to/binary command. This would give you detailed information about a specified binary.
I struggled with this problem for MANY hours (I messed with msql/php, and for years ago, so I consider myself currently a total newbie!). My problem was I couldn't connect my PC to my new online server using ODBC (server was a mac mini running mavericks, trying to connect from a windows machine in my office via mysql odic connector). I finally found a solution that works. here is my situation and environment:
I am converting from Access to MySql/PHP. Application configured as front-end / back-end.
Put my server online so I could export my access back end tables to MYSQL. (some were online at another server, some were on my internal windows 2003 server. ) planning to change front end to php from access vba.
Installed ODBC Administrator on mac mini (mavericks) per google searches.
Went to drivers tab in ODBC Administrator. Set my drivers from USER to SYSTEM in the pulldown on the drivers page. This opened the drivers to appear on the SYSTEM tab of ODBC Administrator (prior to this, the drivers did not appear on the SYSTEM tab of ODBC Administrator).
Added the DSN, the USER, the PORT, and the PASSWORD variables.
I then went to my MAMP application that was running on the Mac. I clicked on [FILE], [EDIT] [TEMPLATE] [my.cnf]. This opened the configuration file. There is a warning - if this gets polluted, it screws up the entire MAMP app.
I made the following change (Inserted a comment above the change).
the bind address was just commented out. 9-5-14
bind-address = 127.0.0.1
This change does not tie MAMP to the localhost (I believe).
I kept scrolling through the file. I also made the next change, and then saved the .cnf file:
Just commented out the next line. Trying to get odbc to work. 9-5-14
MAMP_skip-networking_MAMP
This change I believe tells MAMP to allow remote connections.
On PC, under Data Sources, System DSN tab, using MYSQL ODBC 5.1 driver, I set the datasource name, I set the URL of the online server (which was registered with internic), I set the port, and I entered the User and password to be the same KEYS I set in the ODBC System DSN I added on the Mac server. Then, I pulled down the database tab, and miraculously - the databases in my mac server appeared!
Hope this is helpful to another newbie! I literally worked WAY too many hours trying to find a solution, and it wound up being pretty easy once I lucked into the answer!
.

Categories