ERR_EMPTY_RESPONSE error in WordPress - php

I have setup one theme in WordPress on the server. When I am trying to update the page it gives error ERR_EMPTY_RESPONSE. I have static IP address for my network connection. So, Anyone help me for this?
I have tried many solutions for this but still, it is not working.
Thanks in Advance!!

Try this!!
Sometimes it may be your systems IP issue. Follow these steps
Process 1
Step 1 : Open CMD Prompt
Step 2:
Run below commands one by one.
ipconfig /release
ipconfig /all
ipconfig /flushdns
ipconfig /renew
netsh int ip set dns
netsh winsock reset
Now Restart your PC.
Process 2
Problem may be in your wp-login.php , you have to replace wp-login.php file with latest WordPress versions wp-login.php file.

Related

How to resolve mysql port 3306 error on wamp?

I am getting following error when I test mysql port 3306:
***** Test which uses port 3306 *****
===== Tested by command netstat filtered on port 3306 =====
Port 3306 is not found associated with TCP protocol
Port 3306 is not found associated with TCP protocol
--- Do you want to copy the results into Clipboard?
--- Type 'y' to confirm - Press ENTER to continue...
I've tried many methods but it could not work. Apache is working fine but MySQL service is not able to start. Wamp icon is orange and showing only 1 of 3 services running.
I have tried all points mentioned in MySQL service not starting on WAMP?
After so much exploring, it is rectified now. The my.ini file inside the Windows folder was the real problem. It is conflicting with the WAMP mysql my.ini. Now it is working fine after deleting that file from the Windows folder.
after lots of struggling, I found the solution in this answer
for me, the reason for this issue was the wrong config data was cached for mysql so did this:
I tried going to: C:\wamp64\bin\mysql\mysql5.7.24\data and deleted the
following:
auto.cnf, xxxxxxxxx.err, xxxxxxxxx.pid, ib_logfile0 and ib_logfile1
But I left the ibdata1 alone as it references all local databases.(dont delete that at all!) I
then restarted wamp and it worked like a charm.
Delete the my.ini file inside the folder work
Go to cmd and run 'netstat /a' to get a list of all the ports running.
Check to see if TCP 0.0.0.0:3006 is on the list. On mine, it was not and 0.0.0.0:3008 was on the list instead.
To verify the database is in fact running:
Change directory to the folder holding the mysql version I expected to be running. Then I attempted to login with command line to the mysql database I instantiated with phpMyAdmin... using 'mysql -u yourloginId -p yourDataBaseName'
Hit enter and then enter your pass word. If you did not setup a password... skip the '-p'.
If you database is running you'll get a bunch of info related to it and changes the prompt to 'mysql'.... type in 'quit' and hit enter to exit out. Then you are done with cmd.
Since the database is running and WAMP is using ports in the 3000 range, then I assumed that 3008 is the correct port. Go to the WAMP icon click on it... go to php then php.ini and edit it. Do a find on 3006... and you will likely find it as mysql port... change it to the port actually running mysql... for me it was 3008. Save it and restart WAMP... Issue should be resolved.
going to C:\wamp64\bin\mysql*yourmysqlversion* you should find my.ini
After deleting that file you should be fine. Be sure to use your Wamp testing tools in wamp settings to test the ports for Mysql/Maria DB and Apache. Microsoft IIS is a common culprit for not making all services run.

XAMPP manager can't start server on OS X but it work on terminal

First my english might be bad so if you understand what I mean but the sentence is not correct feel free to edit my post, and if you don't understand I'll try my best to explain better.
I installed XAMMP on my MyBook Air version 10.11.5. I can launch the application but in "Manage servers" when I press the "Start all" button all the status switched from "Stopped" to "Starting" and then return to "Stopped" after about 20 seconds. Here is the application log :
Starting MySQL Database...
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Two things here : the MySQL database doesn't send anything in return and it seem that for the log the servers are running. So maybe it was only a display problem on the "Manage servers" tab so I tried to go to the adress http://localhost but nothing.
After a lot of research and try the only topic who gives me what I want is this one : MySQL Database won't start in XAMPP Manager-osx
The command sudo /Applications/XAMPP/xamppfiles/bin/mysql.server startworks perfectly. So now I can start the MySQL server only. The I noticed something, here is the terminal log :
MacBook-Air:~ user$ sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Starting MySQL
. SUCCESS!
You can see I had to enter my session password. So my questions are simple :
Could the password be the problem for the XAMPP Manager ?
i.e. the manager try to launch the servers but encounter the password request and then failed to launch the servers.
If it's the case how can I give to XAMPP the access so the manager can launch on is own the servers without needed to use the terminal ?
Is there any command like the one below to launch also the PHP server if I can't fix the Manager problem ?
I promise I did research on this topic but I find nothing about this specific password (I was often redirected on starting session password...).
Thank you for reading and maybe for answering !
Yes because thats not the right way to start XAMPP.
You should do the following instead cd to your xampp application folder, there should be a executable file called xampp. The gui application is not that good, I've had various problems with it, I think the best thing to do is to start it via terminal.
The password is not the problem, its asking because it requires admin privileges to run it. Thats why you're using sudo.
Run the following command:
sudo ./xampp start
You can find the list of all xampp terminal commands by typing the following:
./xampp -h
For example you can start different 'modules' of the application separately e.g to start just apache.
sudo ./xampp startapache
I hope this helps.
Could it be something broken with the installer?
I had the same issue, but after downgrading to 7.0.5 everything works fine on El Capitan.

MySQL Database cannot start on XAMPP for Mac

All of a sudden I am encountering this problem on my mac. I cant start my MySQL Database. I can only start my ProFTPD and Apache Web Server.
This is the application log:
Starting all servers...
Starting MySQL Database...
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
I have even did some research through stackoverflow. First i tried to end the process through my activity monitor by i couldnt find the keyword sql on the filter search area. The second method i tried was adding the unset DYLD_LIBRARY_PATH
but that didnt even worked for me.
Can i know how to solve this problem. Helps would be really appreciated. Thank you
#1. Open XAMPP Installation Directory
#2. Open "etc" Folder
#3. Find "my.cnf" file and open it in any text editor
#4. Change Port from 3306 to 3307 (if you have installed skype or other apps)
#5. Add "innodb_force_recovery=1" under "myisam_sort_buffer_size=8M"
#6. Save "my.cnf" file
#7. Restart Mysql Server By Your Terminal by command:
"sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start"
You Get A message "Starting MySQL SUCCESS! "
For me, Xampp Control panel was not launching, and in Stackoverflow some where it was mentioned to add Read / Write for every one on every file of xampp, when I did that. It allowed me to launch xampp control panel but mysql was not starting.
Later I debuged and found that /Applications/XAMPP/xamppfiles/etc/my.cnf should not be writeable by everyone, mysql will ignore my.cnf if it is for everyone. I changed the permission to read only for this file, and able to start mysql server
I just solve the answer by going to the activity monitor and search for sql under all process and terminate it. then i restart my mac and now my sql database is working great for me.
I Know this post was originally posted last year, but I just had the same problem and I found the solution for me. So here it is, just in case this can help somebody else.
I tried all the suggestions I found online, including trying to terminate MySQL on the activity monitor, but then I realized that when you download/upgrade XAMPP - MySQL, the option to automatically start MySQLserver on Startup is ON. You need to turn it off. Here is what you do:
Go System Preferences and click on the Mysql icon, You should get this window:
Uncheck that option. You will be asked for your password. After you are done with that, restart your computer and the problem should be fixed.
I hope that help somebody who is as confused as I was. lol ✌🏼
Xampp Control Panel> Manage Server> Mysql Database > Configure > change the port from 3306 to 3307
At least it worked for me in mac.
For me using macOS Catalina, I had to delete this 2 files then quit and restart the manager-osx:
MyName-MacBook-Pro.local.err
tc.log
The folder path is this: /Applications/XAMPP/xamppfiles/var
Note: the 2 files were automatically regenerated after I start and Apache and MySQL
If mysql is not starting in xampp, it might be a port conflict issue. Mysql run by default on port 3306. you need to check if another application is occupying that port. use following command to check app occupying a port
lsof -nP -i4TCP:3306
if you find an application occupying that port, stop the application and restart xampp. As an alternative, you can go to php.ini file or click configure in the dropdown and change the mysql port to 3307
I spent whole day trying to resolve this issue. Changing the port no from 3306 to 3307 worked for me. Simply open the configure module and change the port number. Hope it works for you.
In case this may help. I followed all the steps above still nothing worked for me. And I follow this article MySQL database won't start in xampp and it worked. what is says is:
Steps
Open terminal and type
sudo su
and then put in your password
Then type
ps aux | grep mysql
You will need to get the process id of mysql. There should be number near the top, something like 739 or 8827 (in my case I got 74689, just look after mysql or _mysql process id)
Kill the process using
kill -9 {process id}
this should look something like this: kill -9 739
Restart MySQL in manager-osx
If any of the above don’t work, This should work:
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
I tried the suggested solutions above however none worked for me. So I uninstalled XAMPP and then reinstalled it and so now MySQL server starts up ok.

could not configure domains in zpanel vps

I'm working on a vps server with zpanel.I really new in this area .I don't know how to set up WordPress and use it . I have gone through this manual .But this is not really helping . I got stuck at the 5th step.there is no ajax explorer in my zpanel.Then i gone through another manual which says to add a repo in zpanel .I don't know how to add that also .Can anyone please help me in setting up a wordpress site manualy into my zpanel.Thanks !
1) first download some SSH client, I recommend Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html). Choose the version that suits your operating system.
2) login to your VPS via SSH. In putty under "hostname your IP adress" put your VPS's IP or a domain name you have configured for that server. Check that the port number on the right to the hostname is 22. Click OPEN button in the bottom.
3) after providing your root username/password combo. follow all the steps from this page: http://www.servermom.org/install-ajaxplorer-file-manager-module-zpanel-cp/951/
Step 1 – Login to your server as root. I assume you knew how to do
this.
Step 2 – Then add additional repo for zPanel:
shell> zppy repo add zppy.alineofcode.co.uk
Step 3 – Now issue this command to update the repo:
shell> zppy update
Step 4 – Finally, here it is the main command to download and install
Ajaxplorer on your server:
shell> zppy install ajaxplorer
Step 5 – Open up your favorite web browser, visit the login page of
your zPanel server then login as zadmin.
login zpanel
Step 6 – Go to Server Admin >> Module Admin menu.
enable ajaxplorer
Step 7 – Next, enable Ajaxplorer module for Administrator, Reseller
and Client then hit the Save Changes button.
activate module
Step 8 – Before you test it, you better do some necessary checks. Now
go to Putty / Terminal window again then issue this command;
shell> nano /etc/zpanel/configs/apache/httpd.conf
Step 9 – Make sure the following line as below:
"php_admin_value upload_tmp_dir /var/zpanel/temp"
and not as below (the wrong one):
"php_admin_value upload_tmp_dir /etc/zpanel/temp"
Otherwise you might find some errors.
Step 10 – Go back to zPanel configuration page in your browser. Click
on File Management menu >> then Ajaxplorer >> followed by clicking the
Launch Ajaxplorer button.
launch ajaxplorer
Step 11 – You’ll notice that a new browser window appears launching
Ajaxplorer main UI up. Wait for few seconds till the interface fully
loaded.
loading
And Voila!
4) back to your original instructions page and continue from step 5

Yii curl Couldn't resolve host error CentOs 6

I've gotten trouble around the error "Couldn't resolve host '...'".
I have also researched through many topics and couldn't find the workaround.
First time, same the code, I could do curl without no problem. But today it suddenly stopped working. Here were my attempts
Same the code in my localhost, curl worked fine.
In my server CentOs 6 (using Cpanel Whm), my structure of directories looks like following
public_html
-YiiWebsiteFolder
-curl_test.php
I could run curl to same URL in curl_test.php without the problem, it worked fine. It also worked even I put the curl_test.php inside the YiiWebsiteFolder, so problem wouldn't not be the permission.
But if I run same code to call curl through Yii (YiiWebsiteFolder), ran it in Yii controller and action, it would raise the error 'Couldn't resolve host ...'.
(my URL rewrite is very normal, my site URL looks like "mydomain.com/index.php/test/myaction" )
So I guessed the cause could be Yii, was not DNS problem like some help topics said.
http://forums.cpanel.net/f34/file_get_contents-couldnt-resolve-host-name-120065.html
Couldn't resolve host and DNS Resolution failed
Both Yii config main.php files of my local machine and my server are same.
Edited: I have found this guy who had same problem like me
cURL doesn't work when it's used in a PHP application and running > through a web browser
cURL doesn't work when it's used in a PHP application and running
through a web browser. However, that same PHP page with cURL, when run
via the terminal, does what it's supposed to do and fetches the
information that I want
But he has found it out the problem is the DAEMON array, but I don't use Apache DAEMON (even I don't sure what it is).
I have tried all of possible solutions such as restarting my network and my apache to change the order when they started, modify etc/resolv.conf / (add or remove 12.0.0.1 and try some public DNS)
service network stop
service network start
service network restart
/sbin/service httpd stop
/sbin/service httpd start
I've spent many hours to troubleshoot the problem but no succeed at all.
Any help is really appreciated.
This does not solve your specific problem but I thought I should post to say I had the same problem in that PHP cURL could not resolve any host name when the PHP script was run from a web browser but the same script run from the terminal command line worked fine (i.e. cURL resolved host names to return the expected response). In my case it was resolved with the following:
/sbin/service httpd stop
/sbin/service httpd start

Categories