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.
Related
I've recently been developing a Laravel app on my Mac OSX under an XAMPP/Apache server. And suddenly a couple days ago (no updates or anything) my server started resolving the pages at over a minute (roughly 80s on average). It obviously makes development really difficult and was wondering the possible issues could be? Please let me know what files/code snippets would be needed!
I'm running my app on a virtual host in the httpd.conf file if that's any help.
I've also reinstalled XAMPP with PHP 7.0 and reset my entire repo as well but to no avail. Other website load perfectly fine too. Other coders on the app don't see a change in the loading time, so this seems like a local issue and not one concerning the size of the app.
Would appreciate any help, thanks!
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'm trying to install NewRelic on my website, I use PHP, cPanel(VPS/dedicated) and Centos (64bit) for my server, I've installed the server monitoring part right on my server but when I try to install the 'app' part on my server I can't get that to install, I followed the instruction links http://newrelic.com/docs/php/new-relic-for-php
but to no success, has anyone got any ideas as to why this maybe? I have restared httpd and appache multiple times and given it some time to propogate etc..
The problem of this is having WHM installed and many PHP services installed, you should try this guide I found:
New Relic for PHP w/cPanel
We have few dedicated servers on HostGator. Few months back we had installed "NewRelic" on our server for monitoring, later we started having issues and here is what HostGator Tech Team said
"While it's possible to configure a cPanel server to use a non-cPanel
PHP version, it's complicated to configure and we will not support it
or set it up. PHP gets compiled from source by cPanel normally and it
should be left this way, as it interacts with a number of other
components on the server in complicated ways, as you found out today.
We recommend completely removing the custom "Newrelic" repository as
well as the packages it installed in order to avoid further
compatibility problems."
and here is what "NewRelic" team said
"I wasn't trying to suggest that Hostgator's assertion was wrong. I
was just trying to figure out which instructions to go over with you."
Make sure to check compatibility before installing it. Installation instruction can be found at http://www.networkredux.com/answers/view/Hosting/Control_Panels/WHM/cPanel/162
New Relic Needs to document this cpanel compatibility better, I know it's my fault for not researching but while using a hostgator dedicated server with cpanel/whm I got new relic up and running. . then my server became a huge mess if improperly configured files and a few days of reading and learning to get it straightened out - I understand my fault entirely but a big ass CPANEL/WHM <- CAREFULL sign might have helped :P
I have run into problems getting my local php and rails development environments to play nicely with each other on OSX 10.7.
Developing is a hobby, and I am a total noob. I use MAMP for developing in PHP. A few months a ago I decided to give RoR a whirl, and set up a dev environment using Passenger.
A couple of weeks ago I reinstalled MAMP when I noticed I could not access the MAMP sites.
Now I can't access the RoR sites. I've tried reinstalling Passenger. I still get the error "Oops! Google Chrome could not find app.local" when I type the local URL. If I navigate to localhost, I get an "It Works!" page, so something is being served.
I have experimented with Pow. The server seems to work if I navigate to localhost, but when I go to the app I get a rake not found error. Strange, as all the gems worked under Passenger. I've since uninstalled Pow.
So I have three questions.
1) How do I troubleshoot my setup to find out what is going wrong? I'm guessing it is an issue with the Apache server (though I could be very wrong). Where should I look for log files to help resolve this?
2) What is the best way to set up a local dev environment so that I can switch easily between RoR and PHP? (I know that virtualization is an option, but would prefer not to go down this route, unless there is a very good reason to).
3) Can anyone recommend a good guide or source of info for beginners on setting up dev environments? I have read a lot of different things online, but need to get a better grasp of the basics - i.e., understanding where gem files etc are being installed, proper use of bash files, macports vs homebrew, passenger vs pow etc.
Thanks for taking the time to help a frustrated beginner.
Andy
OK, I'm going to answer my own question. I have got the rails apps running locally, but I still don't feel confident that I fully understand what's happening.
This is what I did.
Uninstalled Passenger
gem uninstall passenger
Uninstalled Passenger PrefPane by right clicking in system preference.
Updated all system gems
gem update --system
cd'd to app directory and updated all app gems
bundle update
Reinstalled Passenger
gem install passenger
passenger-install-apache2-module
Recompiled Passenger Prefpane for OSX 10.7 using xcodebuild and installed.
Deleted and readded apps to passnger prefpane.
I'm not sure what fixed it, but the apps are now running. This is what I think happened. Somehow the configuration between Passenger and Apache had become corrupt, and reinstalling prefpane added the correct lines back into the Apache config file.
The problem is that I stil don't know which Apache install Passenger is using- mac default, macports, or MAMP. I think this is what confused me before, as the config file I was checking was not the correct one.
As a byproduct, I have learned that several of my gems were not up to date or missing dependencies. This may explain the difficulties I experienced with Pow. If so, the Pow seems to be a much easier alternative to Passenger.
So, things are up and running, but I still have a long way to go before I understand how all these configuration files a working. I still don;t think I'm using the Apache install that I would prefer to use!
EDIT
PS: MAMP is also still working for PHP development, and I can easily switch between the two by disabling web sharing in system preferences, and launching MAMP. So all issues resolved for now!
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.