Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to connect to a Microsoft SQL Server 2008 database using sqlsrv_connect in PHP.
I've already installed, Microsoft SQL Server 2008 native client from http://www.microsoft.com/en-us/download/details.aspx?id=27596 (SQLSRV30.exe), since my php version is 5.4.3 and I am running with Thread Safety enabled.
I've also tried Connecting to an sql server database using php on windows.
I've configured everything accordingly, how it should be configured, but sqlsrv_connect is still giving me:
Fatal error: Call to undefined function sqlsrv_connect()
The thing is when I run php.exe -i in my command prompt, it shows that sqlsrv support is enabled: sqlsrv support => enabled, but it is not showing in phpinfo() although the sqlsrv extension is in my php ext directory, what could be wrong?
What am I doing wrong? I need help with this from people who might have had this connection problem before.
The mistake I made was that, I later learnt that there are three php.ini files that needs to be modified for the added extension to work.
The first is: wamp/bin/php/php.ini
The second: wamp/bin/apache/php.ini
The third: wamp/bin/php/phpForApache.ini
I didn't edit the last file, that was the problem. It works now.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
I am new to php. I was already running mysql ver 8.0.27 on my mac 11.5 (BigSur)
Now i have installed XAMPP (8.0.15), Apache is running perfectly but MySQL Database is stopped and also localhost/phpmyadmin is not working. But my previously installed mysql is running, i am using it through workbench. Can i use my running mysql with it or need to change the port to run from XAMPP?
You should use modern dev stacks like Docker or Vagrant (I prefer docker) ... XAMPP is outdated. But it looks like a port problem. If you really want to use XAMPP, try changing the port numbers.
Also take a look at this video https://www.youtube.com/watch?v=YXWQTpSHIMc&ab_channel=BINARYHACK
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I work for a school that has a new webservice we are trying to build for the school. I wanted to upgrade the PHP from 5.6 to 7.4 so we can run some extensions. However, the website connects to a PostgreSQL database using the PDO function
conn = new PDO("pgsql:host=*** dbname=***","***", "***");
Now that we upgraded, we are receiving an error
PHP Fatal error: Uncaught Error: Class 'PDO' not found in
I went to easy apache 4 and made sure php74-php-pdo was installed. What else am I missing?
Every day this is broken we will be missing data. Please help.
I switched out PDO and put in pg_connect. It seems to connect to the database just fine. I'll have to keep an eye on it to make sure it is working properly.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I follow this guide to install LAMP server on fedora 22 workstation
How To Install LAMP Stack (Apache, MariaDB And PHP) In Fedora 22
Everything working well except phpmyadmin.
When i need access it of the browser
i see nothing (blank page)
How i can fix this issue ?
Any Suggestions ?
Possibly you can get more info via 2 things
1- Enabling php display_errors in php.ini file which you can find by running
php --ini
changing display_errors to on and save it then restart apache web server and revisit phpmyadmin url which should show you the error
2- looking in apache error log which mostly located in /var/log/httpd/error.log
you can use tail -f for better tshooting
tail -f /var/log/httpd/error.log
Try running phpMyAdmin's index.php over the command line. This should give you more information about the error that causes the problem.
php index.php
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I've installed XAMPP Windows 1.8.2 and after installing and turning on Apache & MySQL, I can't load my PMA webpage: http://localhost/phpmyadmin/ . It still loading, but nothing happens. I really don't know, what I am doing wrong. Also I can't use any PHP application, which is trying to use MySQL connection (like Symfony2). If I turn off MySQL in XAMPP Control Panel and trying to reload this URL, same problem.
Thanks for any help.
From this point, I would recommend for you to use 1.5.1 version of Xammp right away. Long story why (shortly, this is a Windows matter and with this answer its irrelevant).
So....
Uninstal that version
find 1.5.1
Install
However, when you install 1.5.x you might have problems with PMA when larger tables are loaded. This sorts things out
Find PMA version 2.11.11.3 package (this baby is really stable)
Unpack
c/p all files from pack to your xampp/PMA folder and overwrite everything :P
And thats it.
You may, later on, upgrade PHP to ie 5.3.0 and there is a trick how to do that painless somewhere on www (google ekhm) but cant remember where exactly. Enjoy.
ps: If you dont like this answer, youre probably on XP and you need something like vcredist_x86.exe but problems wont stop there ;)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Installing roundcube webmail: I have the DB set up (win serv 2008, MS SQL 2008 - though even that was a battle!) i can navigate to the installer but when I go to set up everything there is no SQL Server option in the list of DBs?
Anyone got any idea what thats all about? I can see MySql, MySqli and PgSql but no MSSQL.
Roundcube installer doesn't detect mssql!
Select with mysql option while you are install ms sql driver for php.
there is a complete installation guide http://www.ifunky.net/Blog/post/How-To-Install-RoundCube-With-hMailServer-and-Windows-2008-IIS7.aspx
Make sure you've activated the MSSQL extension in your php.ini. I don't know this script, but often installers first detect which database extensions are available and let you only use these.
So find your php.ini and search it for something like this:
extension=msql.dll
If you can't find the line, add it to the file (maybe restart your webserver) and try again.
It's because Roundcube Installer doesn't detect MSSQL, but you can install/run it without Installer.