Apache is not starting using Mamp in Windows 10? - php

I am plannig to start a simple php application to do that I instaled Mamp because I worked with it before, it is good, but now I am facing a problem, as the title says, my Apache Server is not starting, it starts and then when MySql starts it stops, I did not understand what was happening so I tried some solutions I found here in stackoverflow.
One of the solutions suggested that this is a problem in the latest version 4.1.1, so he provided a link to the previous version 4.1 and it is true because this problem was not there before, I took the exe file and installed it but I had the same problem, maybe Mamp version changing has helped him but did not worked for me.
The second solution is a solution that has been suggested by many people, and I think it is a solution, but I could not implement it and that's why I am here.
The solution says that changing the php version in the Mamp - Preferences - php to 7.2.14 instead of 7.3 solves the problem, I tried it but I get an error, Windows interface pops up and saying that something in not found, I did not get what was that, and googled it but I am still unable to understand what is missing and I feel like that nobody before me faced the problem x).
The message in french but here is what is saying :
The processus starting point zend_wrong_parameter_count_error##16 is
not found in the library of dynamic links.
C:/MAMP/bin/php/php.7.2.14/ext/php_gd2.dll
I think the message is clear, something is missing, and it is this file php_gd2.dll, I checked and it is true, but how am I going to add it correctly ?
I downloaded the file from a website and added it to my php7.14.2 folder but I get the same error.
Any help would be much appreciated, I wanted to start the app a month ago and faced this problem and then changed my plans just because of it and now I need to fix it to move on.

Related

Why I get this error everyime? `Missed schedule`

I'm getting an error Missed schedule on WordPress. I get this error while I try to publish content or after I make a change something including updating some CSS(Customizer). I have never encountered such a problem before with WordPress. My server is completely under my control.
Checked in WordPress date and time
Checked server date and time
Checked PHP date and time zone.
Disabled all of the plugins and reactivated one by one still doesn't work.
I made research about that but most people are providing solutions with plugins. But I don't need to use kind of plugins.
OS: CentOS 7 64bit + Plesk Onyx
PHP Version: 7.4.8 run as FastCGI
Wordpress Version: 5.5
Theme: Generatepress
Somebody has fond a workaround: change CentOS+Plesk to Ubuntu+Plesk.
I have finally found a solution to the problem. Changing the system is not a useful option for me.
In this forum they explain the problem: here
And it brings us an explanation in the plesk forums: here
It is basically a problem in CentOS7, the UTC file is not valid and this causes problems in publishing changes in WordPress.
The problem is solved by replacing that file "/usr/share/zoneinfo/UTC" with a correct copy (I have taken it from another server with CentOS6).
And everything works correctly. You don't even need to reboot.

PHP Install on IIS 7, no test results

I am trying to install PHP on my IIS web server running version 7.0. I downloaded the php-7.1.8 Non Thread Safe for Windows 64. I then procceded to follow the steps found here: https://www.howtogeek.com/50432/how-to-install-php-on-iis-7-for-windows-server-2008/.
I had no issues with the install but when it came to the last step of creating the test PHP page and launching, instead of getting the results, i'm being asked to Open or save the file??
I've also tried putting this into a live website and accessing it outside the web server. When I try this I receive a 500 - Internal Server Error.
I had tried this about a year or two ago and got frustrated, so I gave up and have retried today but experiencing about the same result. Don't know what other information would help, but i'm willing to provide what's necessary. Thank you for any help.
After continuing research I ended up using the Windows Installer version (https://www.microsoft.com/web/platform/phponwindows.aspx) and then went back through the configuration steps of the php.ini file.

How to update MySqli to php5-mysqlnd

I recently started coding with Codeigniter, so fairly new, even to php.
I built my first app, installed it on server after Xampp. I got this error
Message: mysqli::real_connect(): Headers and client library minor version mismatch. Headers:50542 Library:50626
After searching online I found that I need php5-mysqlnd. I found this nice article but don't know where all these processes are happening.
Is there a tool in Cpanel where all these codes for updating php5-mysqlnd are taking place?
All I know I have Linux hosting version 5.4.45 with Hostgator.
it looks like I found another way to do it (not like the way that link said).
I was going through my CPanel and found an option to change my PHP version. I clicked and on next page it asked what all components I want to include, I couldn't believe "Mysqlnd" was one of them.
I changed it to 5.6 from 5.4.45. That's all it took.
Thanks a lot.

cakephp: php version problem (i think) need help

so, i was building this website using cakePHP 1.2.1.8004 on my local and it was pre-developed until i got my hands on it, and yesterday i finally uploaded it so that it could go live, but apparently there's a lot of functions that were undefined and make my web goes all "white screen of death"
on my local i was using xampp 1.7.1 with php 5.2.9, and my online server is using php 5.2.17. i am thinking like the problems were coming from the php version difference, and i am trying to replicate it on my local by finding a xampp version which has the same php version, but apparently xampp doesn't have any bundle which includes php 5.2.17. now is there anyone who has had the same problem like i do, and confirm that the php version is really the source of the problem here so that i could reinstall the php on my server and downgraded it to pp 5.2.9? or should i look for another solution ?
thanks
This sounds suspiciously like a server rewrite issue. I would verify the URL rewrite is working correctly. Also, do you have debug turned on in core? It may shed some light on the issue as well.

PHP has encountered an Access Violation at 77FCAFF8

I am running a PHP site that uses Ajax and jQuery as well. The site will run fine for quite some time, and suddently my pages (and ajax-retrieved sub-pages) comes back with the message
PHP has encountered an Access Violation at 77FCAFF8
It seems that rebooting the server corrects the issue. Running PHP Version 5.1.6 (Windows NT 5.0 build 2195). I did a some searching on here and some other sites, and there seems to be no fix..
URL REMOVED
UPDATE:
I think I'm on to something.. will get back to you.
UPDATE
After reviewing the IIS setup, i noticed there was no Handler Mapping setup for the website. This, of course begs the question - how did it ever work in the first place, when it was originally setup this way!? I added the handler mapping and it seems to be Okay so far.
UPDATE
The problem popped its heads out again this morning after 36 hours without encounering it. Back to the drawing board.
UPDATE
We ended up just moving the site to a secondary web server where we were able to upgrade PHP without an issue.
This is a PHP issue somewhere. You could spend some time narrowing down which function you're using that is causing the problem. I would instead upgrade to a newer version of PHP. If still no luck, try a slightly older version. There have been significant changes with version 5.3.2.
After some research I think this may be the solution (Taken from http://bugs.php.net/bug.php?id=28929 ):
[2010-06-11 15:12 UTC] in2ishun at yahoo dot com
***************** SOLUTION!!!!
I realize this issue is AGES old, but it still manages to be the top hit on Google searches as of now (6/2010).
I fixed my own instance of seeing this error. W2k3, IIS6, PHP 5.2.6, MySQL 5.1.
The problem is in the pathing. When I used the MSI installer for MySQL without doing an "advanced" installation (where I could manage the install details), it added a path to the system environment that contained spaces. Even after changing the path environment to use the Windows short-name location of the mysql bin directory, it still didn't work.
The solution was for me to reinstall mysql and set the default installation path to just off the root (e.g. C:\mysql). Once I did that the error went away and my app started working.
There are a number of sites with a variety of potential solutions to this issue and several of them mentioned paths and the "libmysql.dll" file (in the "bin" directory of your mysql installation).
If this helps you solve your problem, consider leaving a comment here so others can see that it works.

Categories