I have tried some of the techniques on the other questions here to no avail. For some reason, after 3 weeks of no use, yesterday when I turned my laptop on and activated WAMP server (with no apparent problems, all visual feedback was ok), I am unable to visit any php files in my browser. I can go to localhost/random.html, but I cannot visit localhost/otherfile.php. I have no idea what the problem could be, no configuration has changed since I last used it. I have installed windows updates, I am using Windows XP, but I can't find any indication. The php error log is empty, and the apache error log is not showing me any concrete errors (though I have looked up what it is showing) that led me to a solution.
Any ideas on what to do or where to look for a solution?
Related
I have this well known problem about a recently installed WordPress.org that has an error on any part that tries to connect to the WordPress.org servers (updating, installing plugins, insalling themes, etc).
Error message:
Warning: An unexpected error occurred. Something may be wrong with
WordPress.org or this server’s configuration. If you continue to have
problems, please try the support forums. WordPress could not establish
a secure connection to WordPress.org. Please contact your server
administrator.
I know that this sounds familiar. I've found hundreds of similar posts over the internet, but every single solution people give doesn't work. Some posts even have tens of completely different answers like "just do this" with only frustrated people that can't solve the problem with those (like me).
I've spent the whole day trying to fix it with no solution :( So, yes, I'm kind of almost hopless now. I'd really appreciate if someone can lend me a hand with this.
This is what I have:
A WordPress.org fresh install
MariaDB brand new database and user
Apache server ("httpd")
PHP 7.4
CentOS 8 in a GCloud VM micro-instance
A just installed LetsEncrypt certification
This is what I've tried:
Checked if cURL is installed
Checked that OpenSSL is installed
Manually added api.wordpress.org and downloads.wordpress.org IPs in my hosts file
Checked that my firewalls allow 80 and 443 ports traffic in and out (gcloud and CentOS iptables/firewalld)
Checked that ;extension=curl.so is present in my php.ini
Checked that the vhost is correct in the apache conf file
Checked that I can ping both WordPress URLs
Prooooobably I've tried some other things, but I cannot remember now (seriously, I'm into this for like 7 hours now)
If someone has a clue on how to solve this, I'd be really happy. I can send any other information, log, or anything that is needed. And, BTW, I started learning about admin and creating webservers a few weeks ago, using a CentOS netinstall in a local VM and using it as a simulation; I created the webserver, created a wordpress website, and everything went juuust fine... it's only this real VPS in gcloud that gave me this problem :(
Don't know if you solved your problem, if not, read that:
I've had the same pb and done all things you do.
I run a up to date CentOS 8 with a fresh install of an up to date wordpress.
Answer
I found my solution here : An unexpected error occurred. Something may be wrong with WordPress.org
Open /etc/selinux/config and change the line SELINUX=enforcing to SELINUX=permissive
and reboot.
so simple... My problem is solved now. I removed all other changed I've done (wp_config.php, cURL.php, hosts, ...)
Thanks you Abu Bakar
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.
I have noted that this question has been asked before, but none of the solutions offered have fixed my problem.
I have MAMP PRO. I sat down to work and when I typed my localhost URL into chrome, it just downloads the file rather than opens it in the browser. Others have suggested this is caching problem, but I have cleared the chrome cache. I have stopped and restarted apache and MySQL with no effect.
In addition to this (and possibly related), my databases have reverted to a version from a week ago.
Any advice on this problem, bearing in mind that clearing the cache had no effect, would be helpful...
EDIT:
So after playing around....a test.php file runs fine from 127.0.0.1/test.php but if I run.......127.0.0.1/breathe/index.php (which is my site) no joy, it just downloads it. If I shift all my directory straight into htdocs it works....
This is not ideal....but will do for now. But I want to know why this is happening. I need to understand this...so I can deal with further issues.
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 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.