Drupal 4.7 Unable to connect to database server - php

This is strange, in Drupal 4.7 (a new install) I can get it to come up with a page that says "Unable to connect to database server" when I have not put in the DB connect information. This comes up in the browser just fine.
So I go in an put in the correct connect info (which works fine with my Drupal 6 sites) and I suddenly get a white screen. If I run cron.php I see the same HTML spit out that created the DB error before this.
Any idea what is going on?
UPDATE: I made a mistake, my webserver is actually using PHP 5.2. This is due to the fact that I am running this on my Macbook Pro which comes with PHP and Apache, but I am using Zend Server CE for my local web dev environment.
Sys info:
Drupal 4.7.11
PHP 5.3.4
MySQL 5.1.54
Any thoughts or ideas are welcome. I am really not sure where to go with this and I need to be able to get Drupal 4 working on my system to do a content migration from some older sites. (Yep, I wasn't using Drupal 4.7 to punish myself. I have a good reason).

I managed to figure it out awhile ago. Unfortunately I don't remember what I did, but I got it to work at least to the extent that I could bootstrap Drupal and then load the nodes and export them.
I am going to set this as solved. I apologize for not having the answer in here. It may have been LDAP, which comes with XAMPP but not Zend. I know that was a major problem on the Drupal6 version of this site.

Related

Migrate DB error, Unable to process payload

Recently I have switched on Macbook from Windows, and I had to re-do all my working processes.
I am working to set up a WordPress local website to look like the live one, and usually how I would have done that is through Git and then MigrateDB (pull) from the live.
I came across this error while pulling, at the Media stage:
Unable to process payload.
I was wondering if anyone has ever been through this and you might be able to help.
I am going to answer my own question as I found out why this was happening and leave it here with the hopes that if anyone ever encounters this issue, will know what to do.
The "Unable to process payload." happens due to Xampp, if you want to download the latest version on a Macbook M1 type processor, won't work, and you are forced to download an older version 7.2.3, this version does not work well with some of the WordPress Plugins so you will get all bunch of errors.
Solution
Get rid of XAMPP, if you are using a Macbook M1 type processor and install MAMPP, the free version, it will work fine and smoothly.

Why is my PHP Built in development server no longer responsive?

Good Evening Everyone,
I've been learning PHP and I'm using the built in server to learn the syntax and running simple scripts and web pages. I've been going at it for a better part of 3 weeks now but suddenly this evening. When I try to load my php webpage(s) it would load one page (or hang) then when I'd go to another page I wrote it would either hang or not load at all (Chrome is continuously "waiting on host"). I've been running Windows Server 2016 64 bit (very clean box here). I haven't had any problems with playing with the built in server until today. We are talking about very SIMPLE hello, world scrips with a couple of html tags here or there. I'm using version 7.2.0 64 bit Development Server. I ever tried x86 for giggles and it demonstrates the same behavior.
my command: php -S localhost:8000 (or any open port) I even used my IP to no avail. Suddenly my development sever just stopped working. I've made no changes to my PC.
I'm not receiving any errors or anything when I try to load my pages. What gives? I've made no changes to the ini file. I can attach if needed. Thank You guys so much!
I figured it out there was a command I was running within one of my php scripts that was causing it to hang! It's working now.

Drupal 8 already installed, and sometimes it doesn't. Can PHP fix this?

I downloaded Drupal 8 connecting to IIS, and mysql (mssql as well). When I proceed to install Drupal 8, it tells me that it is already installed. When I delete settings.php, it sometimes would actually install all the way. Sometimes it just says batch error. Other times Drupal says "already installed".
I notice when the site loads, it takes a long time saying "waiting for localhost".
I have php storm running proficiently but it did not find the errors. So maybe it wasn't the file itself.Is there a specific way php storm can fix this?
If anyone can please help me, feel free, I really need guidance for this.
Below are images to what is on my screen.
Link to how I set up the entire file/process. I am aware its mssql. I used both
Other times, it displays a no active batch error.
This only occurs with Drupal 8. WordPress, Joomla, and Drupal 7 works perfectly.
You can fix this issue by copying code of default.settings.php into your settings.php and install it into empty database.
It's normally occurs when you really have the Drupal installed on your database.
Try to delete the database that is configured on your settings.php and run the /install.php again.
It will solve your problem.

Webmatrix - PHP - Wordpress (not working)

I have spent 2 days and have read multiple posts / articles re this subject with no resolution. I am running WebMatrix 2 on XP Pro with sp/3. WM works like a charm until I try to open Word Press through Web Gallery. Every time I get a message that the
"installation failed because php-cgi.exe is not available. Please rerun the Windows installer for PHP and enable either 'IIs FastCGI' or 'Other CGI'."
The PHP starter site also fails for the same reason.
Apparently all php files were installed by webmatrix (including php-cgi.exe) so I can't figure out why word press (and the PHP starter site) fails and keeps throwing this error.
I even tried a totally new install of WebMatrix on an unused laptop with no existing PHP or mySql files and got exactly the same result. Apparently, there is a flaw built in to the WebMatrix program regarding running PHP.
I have a hard time believing that MSFT would even release this with such a functionality problem. I am not knocking MSFT because I think WM is an awesome product. But, if there are known post installation steps which need to be taken, a heads up would have been nice. I hope WebMatrix 3 users are not encountering the same problem.
Has anyone been able to figure this out?
Any help to fix this would be greatly appreciated.
Thanks for your help.
Have you watched this video? and followed all the instructions?
Installing Wordpress on Webmatrix
php-cgi.exe is a file which IIS runs to emulate PHP. This error is todo with the configuration of you IIS server on Windows.
Also have a look at this, which shows you how to install fast cgi on IIS
Installing Fast CGI with IIS

I am really confused and frustrated about my php website and mysql connection

So basically I've created a MYSQL database that holds information about a gaming server player information, it's loaded into this PHP website that I created just 2 days ago (I'm completely new to PHP, I only started experimenting on it 2 days ago). So I had it all fixed up but on a localhost, it could fetch the data from the mysql database but only in the localhost, today I wanted to host a free mysql hostname is: fdb3.runhosting.com username: 1141497_damagedz and ofcourse I know the password. But when I'm trying to type this in via my PHP code in the db_connect line it gives me error saying it fails to connect at line 13 which is the line of $db_connect line, before it did work under the localhost but just now it doesnt work because I've deleted 3 files from xampp but surely that shouldnt matter now since its hosted on a whole different place like fdb3.runhosting.com ??
Also I'm using Adobe Dreamweaver to make the PHP website, before I just had to type in
http://localhost/tester.php
to open up my tester.php website that I've been working on, but now after I deleted the xampp it wont open this so I can't really tell what I'm doing or does it work or not, this is after I deleted my xampp, which is after I deleted my 3 files from xampp. So you can see i'm really confused and I do not know how to fix this at all, I don't know why db_connect at php gives me errors when clearly my fdb3.runhosting.com mysql database works just fine... I've created tables there too. Also how may I run my tester.php file without the localhost? Please tell me I'm really confused and really need help, thank you!
"I've deleted 3 files from xampp but surely that shouldnt matter"
Which 3 files and how do you come to that conclusion? Everything you say tends to indicate the reverse to be true!
Re-install XAMPP is the logical first option. Backup your htdocs folder then re-install. Don't know if you'll need the backup or not (I suspect not)
I agree with David.
It is highly unlikely you can use the remote database at fdb3.runhosting.com using PHP scripts on your local computer. XAMPP includes a MySQL database server and had you not deleted phpMyAdmin you would be able to use that to browse the databases on it.
Develop the website on your local XAMPP install and local XAMPP database, then export the database to the remote host and copy the files across when you are ready to view it online.
It's also worth keeping the XAMPP install folder and others because it contains information on XAMP and I believe allows you to check whether the version you're running is the latest one.

Categories