PHP Firebird with Debian 8 - VestaCP - php

I want to get data from Firebird database with PHP. I have a VPS server and Operation System Debian 8 and main panel Vesta CP. My PHP version is PHP 5.
I found some information on web and I tried all of them but it's not happened. How can I get data from Firebird database with php?
http://php.net/manual/tr/ibase.installation.php
http://www.firebirdfaq.org/faq234/

i solved this problem, reinstall OS but not Debian 8 , setup Debian 9.3 and VestaCP.
So php version is 7. and on console ;
apt-get install php7.0-interbase
almost done

Related

phpMyAdmin Installation on a Windows PC

How can I install phpMyAdmin on my PC? I have already PHP, MySQL and IIS installed.
How can I install it in Windows 10? And if I do upgrade to Windows 11, should i do the same?
f you are trying to get a test/preprod environment, you should take a look at Xampp. It provides a database server, Apache web server, php and phpmyadmin and is very scalable and configurable.
Xampp : https://www.apachefriends.org/fr/index.html
And of course, Xampp can be used on Windows 10 as well on Windows 11.

Upgrading from PHP 5.3.3 to PHP 5.5 CentOS 6.9 (Remi-release) WordPress SMF php-mysql not working

I wanted to upgrade my CentOS 6.9 Server from PHP 5.3.3 to 5.5.38 via remi repo it all worked well and I also get PHP 5.5.38 when I type in "php -v" but now that I am on that version I can't use any MySQL on my Site anymore, the new php-mysql Package is installed but its now called php-mysqlnd.
I already fixed all my MySQL 5.5 Errors by doing mysql_upgrade -u root -p
and resetting the password but it still won't work
It's a VZ Server. And I have the Parallels Power Panel but not the Plesk Panel
I also restarted mysqld and apache2 (httpd) I even tried apachectl vs. service httpd but I still don't get a working php-mysql on my Server
Adresses BLOCKED-IP - letoria.net (The Domain is a cached Cloudflare Site)
I hope someone can help me.
You should update your Worpdress installation, but not yet - you don't really want to be doing that at the same time as all the other changes. For now, get your current system back running by adding a mysql extension shim (I quite like the one at https://www.dotpointer.tk/mysql/) as an auto-prepend.

CakePHP 1.3 and Ubuntu 16.04

I recently switched to a new Ubuntu 16.04 web server (on GCE) from an Ubuntu 14.04 server. I moved across a few Ruby on Rails projects that run on nginx and postgres with few problems. I now have two legacy CakePHP 1.3 apps to move over to the new server, but I am running in to PHP and MYSQL problems.
The old server was Ubuntu 14.04 running PHP 5.5 and MySQL 5.5.
Ubuntu 16 runs PHP 7, but since I read that CakePHP 1.3 won't work on PHP7, I have downgraded to PHP 5.6.
But, I am still getting this error "PHP message: PHP Fatal error: Call to undefined function mysql_query()"
Is this because I am running mysql-5.7? Or is it still a problem with my PHP 5.6 installation?
I can get phpinfo to run. Here is a screenshot of the top of the result.
Somewhere along the way of downgrading PHP from PHP 7 to PHP 5.6 I missed a few php5.6 packages. I did the following:
sudo apt-get install php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml
sudo service nginx restart
Now the old cakephp1.3 site is working fine on Ubuntu 16.
Also, note that since I am running CakePHP through nginx instead of the standard Apache setup, I needed to customize my nginx configuration specifically for CakePHP.

How to download, use and keep updated PHP, Apache, MySQL on a machine running on Windows 10 Home operating system?

I'm a PHP developer by profession. Till now I was working on Ubuntu Linux 14.04 LTS 64-bit operating system and LAMP stack.
Yesterday I bought a new Lenovo laptop pre-installed with Windows 10 Home Single Language operating system.
Then to start development using PHP and MySQL I installed Wampserver (64 bits & PHP 5.6.15 & PHP 7) 3 on my new machine.
After installation I'm facing so many problems in running PHP and PHPMyAdmin without error. Also it's showing me PHP Version 5.6.16 installed which is actually a old one.
Actually, I want to install the latest stable versions of following softwares before starting my PHP development :
PHP Version 7.0.6
Apache httpd 2.4.20
MySQL Version 5.7.12
PHPMyAdmin Version 4.6.1
And also whenever any new stable version for any of the above softwares become available I should be able to upgrade the same software to it like I used to do on my Ubuntu machine by running regular system update.
Can someone please suggest me a way to achieve it without any hassle and trouble? So that I can concentrate more on web development rather than doing configuration settings.
Thanks.
There are MANY ADDONS available for WAMPServer 3
They are all on SourceForge
Or they can be downloaded from links on the WAMPServer forum
Or the alternate download site (often a few days ahead of SourceForge)
Remember that with WAMPServer you can switch between any installed version of Apache/PHP/MYSQL with a simple click of a menu item.
The latest version of WAMPServer is currently V3.0.4 and comes with
Apache2.4.18
MYSQL5.7.11
PHP7.6.19 & 7.0.4
ADDON for PHP7.0.6 is also there ready for download and install
ADDON for Apache2.4.20 is also there ready for download and install
ADDON for MYSQL5.7.12 is also there ready for download and install
ADDON for PHPMyAdmin Version 4.6.1 is also there ready for download and install
There have been a few odd hiccups with phpMyAdmin lately so there is also an ADDON for a tool called Adminer4.2.4 available also
MYSQL Workbench is also a great tool for messing with MYSQL, but if you install that be careful to only install the Workbench and not another MYSQL Server as well.
What more could you possibly want
Try XAMPP , pick the version you want
https://www.apachefriends.org/download.html
XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer. It's that easy.

Upgrade PostgreSQL 8.1 to 8.3 on Debian Lenny, but zend php still recognize pgsql as version 8.1

The story goes like this:
I have Zend server CE PHP5.3 with all the modules available enabled running on Debian Etch.
I decided to upgrade Debian Etch to Lenny, then also upgraded PostgreSQL 8.1 to 8.3
Restored the database mydatabase --> $ psql mydatabase < schema_and_data.sql
Checked the web site that connects to a postgreSQL database and got this error.
Error: Failed to connect to database.
So I manually login to postgreSQL -> postgres#devserver:/$ psql mydatabase
Obviously postgreSQL is fine with mydatabase as my database
I checked phpinfo and PostgreSQL(libpq) Version : 8.1.1 (which was the previous version instead of the new 8.3)
I'm stuck at #6 at the moment.
Aside from doing the following that I think would fix it back to 'working condition':
Also downgrading postgreSQL 8.3 to 8.1 is not allowed as postgresSQL 8.1 is not supported on Lenny.
Setup my Debian box back to Etch and install zend/postgreSQL 8.1.
Any idea how to re-configure php-5.3-pgsql-zend on Lenny to recognize the new 8.3 version? Thanks!
If you haven't restarted your web server or php-cgi process, try that. They probably still have an old copy of libpq and/or the php pgsql stuff loaded.

Categories