I have a problem after moving PHP MySQL program from dedicated hosted server to home server.
The problem is the time php need for showing a page with 800 rows (html formated)
I have a table with 816 rows (64 fields) 320Kb. The problem I'll explain is the same on all table. I added an index but no changes. I made MySQL table analyse. Every table is listed as OK and nothing changes.
Running SELECT * FROM myTable LIMIT 1000 directly in MySQL:
Dedicated distant server : 0.02 second
Home server via DynHost : 0.01 second
Home server via local network : 0.01 second
Running SELECT * FROM myTable LIMIT 1000 in PhpMyAdmin:
Dedicated distant server : 27 seconds
Home server via DynHost : 40 seconds
Home server via local network : 25 seconds
Running SELECT * FROM myTable LIMIT 1000 in program:
Dedicated distant server : 4 seconds
Home server via DynHost : 113 seconds
Home server via local network : 113 seconds
The code (PHP) is exactly the some on both servers.
In the program the speed is the same over DynHost or via local network.
As asked by Juanga, server API was running as Apache handler. Actually the server is running:
Ubunutu 16.04.3
Apache 2.4.18
PHP 5.6.33
MySQL 5.7
phpinfo -> Server API FPM/FastCGI (thank to Juanga)
With FPM/FastCGI the times are the same as before.
I hope somebody has an idea where the problem could come from.
Yves
EDIT: #Juanga
Apache log:
[Tue Feb 20 20:51:24.097192 2018] [ssl:warn] [pid 31539] AH01909: gs3-server.home:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 20 20:51:24.120307 2018] [ssl:warn] [pid 31540] AH01909: gs3-server.home:443:0 server certificate does NOT include an ID which matches the server name
[Tue Feb 20 20:51:24.122216 2018] [mpm_prefork:notice] [pid 31540] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Feb 20 20:51:24.122232 2018] [core:notice] [pid 31540] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 20 20:54:24.650985 2018] [:error] [pid 31545] [client 178.198.93.202:49568] PHP Warning: include(page_content/con_car_search.php): failed to open stream: No such file or directory in /srv/start.php on line 34
[Tue Feb 20 20:54:24.651017 2018] [:error] [pid 31545] [client 178.198.93.202:49568] PHP Warning: include(): Failed opening 'page_content/con_car_search.php' for inclusion (include_path='.:/usr/share/php') in /srv/start.php on line 34
I found this before I cleaned the log file:
[Tue Feb 20 19:47:22.938070 2018] [mpm_prefork:notice] [pid 12711] AH00169: caught SIGTERM, shutting down
Related
I have been pulling my hair out for the last hour or so trying to get the Apache service to work for class. I have been running apache-control.exe as an admin and I tried it as both an installed and uninstalled service. I have changed the ports it runs on, I have reinstalled XAMPP many times, and I have reinstalled the Microsoft VCRuntime.
Here is what my error log looks like:
[Mon Sep 26 12:52:35.034165 2022] [ssl:warn] [pid 5988:tid 352] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: 'C:\\WINDOWS\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.29 in Unknown on line 0
[Mon Sep 26 12:52:35.088318 2022] [:emerg] [pid 5988:tid 352] AH00020:
Configuration Failed, exiting
when i try to execute a module that need to use google adwords tha website don't do anything so i see in the inspect the element and say that have a 500 Internal Server Error, i search o sometimes say the is temporal error butt have two days with same error, so i read that maybe is xampp and permitions so i modificate the
httpd.conf, i change the ports i wirte the next code
<Directory />
AllowOverride All (also i tried with none)
Require all granted
</Directory>
i see the file hots in windows and set the 127.0.0.1 ....
i try to debug in app and i see that can pass in the next lines
$this->load->library('Google_adwords');
$objGoogleAdword = new Google_adwords();
I see the xampp php log
and see this error
[Wed Oct 11 13:22:14.132305 2017] [core:notice] [pid 1524:tid 576] AH00094: Command line: 'c:\xampp\apache\bin\httpd.exe -d C:/xampp/apache'
[Wed Oct 11 13:22:14.135264 2017] [mpm_winnt:notice] [pid 1524:tid 576] AH00418: Parent: Created child process 8216
[Wed Oct 11 13:22:15.475520 2017] [ssl:warn] [pid 8216:tid 520] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 11 13:22:15.747771 2017] [ssl:warn] [pid 8216:tid 520] AH01909: www.example.com:444:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 11 13:22:15.832788 2017] [mpm_winnt:notice] [pid 8216:tid 520] AH00354: Child: Starting 150 worker threads.
well i don't know why doen't works some idea?
This is a common issue where the port is already in use by other applications. But I have corrected the issue from skype where it was using port 80 and 443. But I am not sure what else application might be preventing apache from running.
Here is the error log
Error: Apache shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash or a shutdown by another method.
Press the Logs button to view error logs and check.
the Windows Event Viewer for more clues.
IF you need more help,
copy and post this entire log window in the forum
I have checked the error log file. It would be nice if anyone would kindly explain me the issue. I am new in using xampp
[Mon Jan 11 15:41:31.711045 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:33.542795 2016] [ssl:warn] [pid 6344:tid 768] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:37.708844 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00455: Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.6.15 configured -- resuming normal operations
[Mon Jan 11 15:41:37.709343 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00456: Apache Lounge VC11 Server built: Oct 13 2015 10:54:13
[Mon Jan 11 15:41:37.709343 2016] [core:notice] [pid 6344:tid 768] AH00094: Command line: 'D:\\xampp\\apache\\bin\\httpd.exe -d D:/xampp/apache'
[Mon Jan 11 15:41:37.963876 2016] [mpm_winnt:notice] [pid 6344:tid 768] AH00418: Parent: Created child process 5008
[Mon Jan 11 15:41:44.877326 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.246564 2016] [ssl:warn] [pid 5008:tid 688] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jan 11 15:41:46.644423 2016] [mpm_winnt:notice] [pid 5008:tid 688] AH00354: Child: Starting 150 worker threads.
Well if you read the messages from Apache it is quite obvious you have tried to activate SSL and there is a problem with what you have done.
I think this part of the error message from XAMPP is most relevant a crash or a shutdown by another method.
Assuming you did this by uncommenting the Include conf/extra/httpd-ssl.conf line in httpd.conf then just comment that line out again and then try and fix your SSL config.
As suggested by the error message, look at the Windows Event Viewer. Apache writes there as well as its log file. SOmetimes the errors shown in Event Viewer are very descriptive and will identify a line number in a config file where the error exists
RE Your comment :
I had previous installation of xamp on my system. I had deleted the source folder of xampp and reinstalled xampp
Its possible that as you did not uninstall the old version of XAMPP something from the old version is still registered with your system and that is what is causing this odd situation.
I would uninstall this XAMPP (properly) and then check if you still have an Apache and/or MYSQL service registered, look using the services snapin.
If they are still there you can remove them like this (sc delete ) :-
Start command window using "Run as Administrator"
sc delete MYSQL
sc delete Apache
Make sure you have backed up any databases, although it may already be to late for this.
Then you can re-install the version of XAMPP you want to use.
Setup:
EasyPHP Dev server 13.1VC11 (Apache 2.2.4, MySQL 5.6.12, PHP 5.5.0)
Windows 7.
Apache is set up with multiple virtual hosts each pointing to a separate folder under ...data\localweb\.
Server also acts as a gateway between internet and local network.
My wife has made a webpage which includes JavaScript and jQuery and PHP.
When I open a browser on my server computer and access the pages, everything works as they should. Via both these addresses:
http://127.0.0.1/liselotte/projekt5/2vs.php
http://liselotte.mine.nu/projekt5/2vs.php
However, when I try to access the page from another computer on my local network, the two longer pages in my wife's project gets truncated. (file 2vs.php, also accessible on the page's main menu as "V/S") It always gets truncated at the same place, in the middle of a 8-letter word, in a piece of HTML formatted text.
I use Firefox and can see when the code cuts off before the browser displays an error message that "transfer was aborted". (It's in Swedish, so I'm a bit uncertain about the exact wording of the message) "The connection to the server was severed during retrieval of the page". (no HTTP-error number)
I have also tried Internet Explorer and Chrome, transfer is cut off at the exact same place every time.
Weirdly enough, the page seems to work when accessed from internet.
The Apache config file contains
Listen 127.0.0.1:80
Listen trilliadin.mine.nu:80 #which is one of the virtual hosts
Listen 192.168.137.1:80 #which is Windows local address assigned to my LAN
I've tested disabling all firewalls, but no difference.
I dumped about 4MB text into a file.html to see if this also gets truncated but the whole text-file gets transferred.
Does anyone recognize these symptoms?
EDIT:
Regarding error-reporting... I do get some weird apache-errors when I start the server.
[Wed Jan 15 21:13:37.989659 2014] [mpm_winnt:notice] [pid 968:tid 424] AH00424: Parent: Received restart signal -- Restarting the server.
Failed loading D:\EasyPHP\binaries\php\php_runningversion\php_xdebug-2.2.2-5.4-vc9.dll
PHP Warning: PHP Startup: in Unknown on line 0
[Wed Jan 15 21:13:39.861663 2014] [mpm_winnt:notice] [pid 968:tid 424] AH00455: Apache/2.4.4 (Win32) PHP/5.5.0 configured -- resuming normal operations
[Wed Jan 15 21:13:39.861663 2014] [mpm_winnt:notice] [pid 968:tid 424] AH00456: Server built: Apr 8 2013 13:46:39
[Wed Jan 15 21:13:39.861663 2014] [core:notice] [pid 968:tid 424] AH00094: Command line: 'D:\\EasyPHP\\binaries\\apache\\bin\\apache.exe -d D:/EasyPHP/binaries/apache'
[Wed Jan 15 21:13:39.861663 2014] [mpm_winnt:notice] [pid 968:tid 424] AH00418: Parent: Created child process 5240
[Wed Jan 15 21:13:40.017663 2014] [mpm_winnt:notice] [pid 5328:tid 436] AH00364: Child: All worker threads have exited.
Failed loading D:\EasyPHP\binaries\php\php_runningversion\php_xdebug-2.2.2-5.4-vc9.dll
PHP Warning: PHP Startup: in Unknown on line 0
[Wed Jan 15 21:13:41.655666 2014] [mpm_winnt:notice] [pid 5240:tid 432] AH00354: Child: Starting 64 worker threads.
But I don't understand what it means. Tonight, the Virtual Host liselotte.mine.nu became unresponsive, while virtual host trilliadin.mine.nu continued working. The problem resolved when I restarted the apache server. (see error log above)
I installed XAMPP and PostgreSQL on a Windows 7 machine.
I configured the apache httpd.conf and PHP.ini files just fine, and they work.
I uncommented the "extension php_pgsql.dll" line in the php.ini file and added \php, \php\ext, and the PostgreSQL \bin and \lib directories to my PATH variable.
C:\Program Files\PostgreSQL\9.2\lib;C:\Program Files\PostgreSQL\9.2\bin;C:\xampp\php\ext;C:\Program Files (x86)\PostgreSQL\EnterpriseDB-ApachePHP\php;C:\xampp\php;
I downloaded the php_pgsql.dll file that is compatible with windows and copied it to \php\ext
When I attempt to start the apache server, I get two errors:
"The procedure entry point _regexec#20 could not be located in the dynamic link library php5ts.dll."
and
"PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found."
So, these errors are obviously not fatal, meaning the server then continues to start and completes starting.
Also, if I comment out the "extension php_pgsql.dll" line in php.ini, the error disappears.
Here are the relevant error logs from PHP and apache:
Apache:
[Thu Nov 15 10:48:11.763770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Thu Nov 15 10:48:11.763770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00456: Server built: Aug 18 2012 12:41:37
[Thu Nov 15 10:48:11.763770 2012] [core:notice] [pid 5420:tid 320] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Nov 15 10:48:11.764770 2012] [mpm_winnt:notice] [pid 5420:tid 320] AH00418: Parent: Created child process 5728
[Thu Nov 15 10:48:13.489869 2012] [ssl:warn] [pid 5728:tid 328] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Nov 15 10:48:16.520042 2012] [mpm_winnt:notice] [pid 5728:tid 328] AH00354: Child: Starting 150 worker threads.
PHP:
[15-Nov-2012 15:48:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found.
in Unknown on line 0
[15-Nov-2012 15:48:16 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pgsql.dll' - The specified procedure could not be found.
in Unknown on line 0
I want to get this set up so I can write a PHP interface for a PostgeSQL database. This is just for fun, not in a professional context.
Try this, i had this problem with Windows 7 (64bit), i added the full path of libpq.dll from the PostgreSQL server installation path into httpd.conf, and the problem was solved.