I'm here to ask about a strange behaviour of Apache with accents:
this rule works just fine
RewriteRule ^([èéìòùa-zA-Z0-9_\-\s]*)$ index.php?route=$1 [L]
but if i dare to add an 'à'
RewriteRule ^([àèéìòùa-zA-Z0-9_\-\s]*)$ index.php?route=$1 [L]
Apache loses his mind (Yes, I can hear you reading this with the Joker voice)
Can anyone explain this to me?
UPDATE: Error log
[Wed Nov 12 12:49:43 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Nov 12 12:49:43 2014] [notice] Apache/2.2.21 (Win64) mod_ssl/2.2.21 OpenSSL/1.0.0g PHP/5.3.10 configured -- resuming normal operations
[Wed Nov 12 12:49:43 2014] [notice] Server built: Sep 24 2011 19:57:51
[Wed Nov 12 12:49:43 2014] [notice] Parent: Created child process 3304
[Wed Nov 12 12:49:43 2014] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Nov 12 12:49:44 2014] [notice] Child 3304: Child process is running
[Wed Nov 12 12:49:44 2014] [notice] Child 3304: Acquired the start mutex.
[Wed Nov 12 12:49:44 2014] [notice] Child 3304: Starting 64 worker threads.
[Wed Nov 12 12:49:44 2014] [notice] Child 3304: Starting thread to listen on port 80.
[Wed Nov 12 12:49:44 2014] [notice] Child 3304: Starting thread to listen on port 80.
Related
I was following a tutorial to install APC on my centos vps, and then I ran into a trouble, so found some help here, now my PHP isn't working on apache.
Only the very root index.php works, no other root pages, none in sub directories. If I access the php directly, it forces a download of the file.
This is odd because php has always worked on the server for over a year. When I check error_log, I see this.
[Thu Feb 27 05:56:35 2014] [notice] caught SIGTERM, shutting down
[Thu Feb 27 05:56:35 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Feb 27 05:56:35 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 27 05:56:35 2014] [notice] Digest: done
[Thu Feb 27 05:56:35 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
Anyone have any ideas as to why this is happening?
That's actually a completely normal log
[Thu Feb 27 05:56:35 2014] [notice] caught SIGTERM, shutting down
SIGTERM is sent to daemons being shutdown/restarted
[Thu Feb 27 05:56:35 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
The server is starting, suExec is enabled
[Thu Feb 27 05:56:35 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Feb 27 05:56:35 2014] [notice] Digest: done
Digest authentication is initialized
[Thu Feb 27 05:56:35 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
Apache is ready.
You should use the most paranoid logging settings you can for PHP, it hasn't yet told you what is wrong ;)
I am trying to track down the cause of my Apache PHP crashes. I am hoping there is some kind of setting, tool or something to help track down what code, configuration or what the issue is that is causing these php crashes.
In my Windows event log I have (shows apache crashing, but caused by php):
Faulting application httpd.exe, version 2.2.21.0, time stamp 0x4e6b3136, faulting module php5ts.dll, version 5.3.8.0, time stamp 0x4e537a04, exception code 0xc0000005, fault offset 0x0000c7d7, process id 0xbf4, application start time 0x01cd45afc42f0b7d.
The application utilizes Apache, PHP and MySQL on a Windows Server 2008 machine (xampp).
This is the crash in my Apache log:
[Fri Jun 08 15:56:34 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Fri Jun 08 15:56:35 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 15:56:35 2012] [notice] Digest: done
[Fri Jun 08 15:56:35 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Fri Jun 08 15:56:35 2012] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jun 08 15:56:35 2012] [notice] Parent: Created child process 1220
[Fri Jun 08 15:56:35 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 15:56:35 2012] [notice] Digest: done
[Fri Jun 08 15:56:35 2012] [notice] Child 1220: Child process is running
[Fri Jun 08 15:56:35 2012] [notice] Child 1220: Acquired the start mutex.
[Fri Jun 08 15:56:35 2012] [notice] Child 1220: Starting 150 worker threads.
[Fri Jun 08 15:56:35 2012] [notice] Child 1220: Starting thread to listen on port 80.
[Fri Jun 08 15:56:35 2012] [notice] Child 1220: Starting thread to listen on port 80.
[Fri Jun 08 15:57:37 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Fri Jun 08 15:57:37 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 15:57:37 2012] [notice] Digest: done
[Fri Jun 08 15:57:37 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Fri Jun 08 15:57:37 2012] [notice] Server built: Sep 10 2011 11:34:11
[Fri Jun 08 15:57:37 2012] [notice] Parent: Created child process 3932
[Fri Jun 08 15:57:38 2012] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 08 15:57:38 2012] [notice] Digest: done
[Fri Jun 08 15:57:38 2012] [notice] Child 3932: Child process is running
[Fri Jun 08 15:57:38 2012] [notice] Child 3932: Acquired the start mutex.
[Fri Jun 08 15:57:38 2012] [notice] Child 3932: Starting 150 worker threads.
[Fri Jun 08 15:57:38 2012] [notice] Child 3932: Starting thread to listen on port 80.
[Fri Jun 08 15:57:38 2012] [notice] Child 3932: Starting thread to listen on port 80.
Any thoughts on what I should try, or tools/techniques to trace back to what code, etc. might be causing this?
Since XAMPP's Apache (for Windows) is built with winn_nt MPM (multi-thread) + Thread-Safe PHP, it may be that you are hitting a problem inherent to the supposedly Thread-Safe versions of PHP (see this very good post for more information). This could explain why you never encounter the error when running in a single-user mode.
Please let us know if Uku Loskit's suggestion did any good. If not, I would recommend switching to a Prefork + Non-Thread-Safe PHP setup in such a multi-user environment.
Because MPM must be chosen at compile-time, you would need to either:
compile Apache yourself (technically feasible, but quite a pain in the neck on Windows, as far as I remember)
find a distribution other than XAMPP, which is built with prefork (I do not know any)
Perhaps you'd better try to run PHP with FastCGI (this extra layer basically isolates server threads by starting a separate PHP process for each thread, and much more). This should allow you to verify easily enough my initial assumption.
Just a side note: I do not see the point in installing Apache on a Windows Server. You may want to consider either using IIS, optionally with FastGCI (see instructions here), or (better) switch to a Linux-based stack.
The easyphp is currently at 5.3.9, I need the newest. I downloaded the latest php package from php.net, and deleted the old php and copied the new php directory. I try "phpinfo();", first it displays the result, but at the end Windows 7 says apache has crashed. How to upgrate to the newest php? Errors.log:
[Wed May 16 09:38:36 2012] [notice] Apache/2.2.21 (Win32) PHP/5.4.2 configured -- resuming normal operations
[Wed May 16 09:38:36 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed May 16 09:38:36 2012] [notice] Parent: Created child process 3900
[Wed May 16 09:38:36 2012] [notice] Child 3900: Child process is running
[Wed May 16 09:38:36 2012] [notice] Child 3900: Acquired the start mutex.
[Wed May 16 09:38:36 2012] [notice] Child 3900: Starting 64 worker threads.
[Wed May 16 09:38:36 2012] [notice] Child 3900: Starting thread to listen on port 8887.
[Wed May 16 09:39:03 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Wed May 16 09:39:04 2012] [notice] Apache/2.2.21 (Win32) PHP/5.4.2 configured -- resuming normal operations
[Wed May 16 09:39:04 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed May 16 09:39:04 2012] [notice] Parent: Created child process 2764
[Wed May 16 09:39:04 2012] [notice] Child 2764: Child process is running
[Wed May 16 09:39:04 2012] [notice] Child 2764: Acquired the start mutex.
[Wed May 16 09:39:04 2012] [notice] Child 2764: Starting 64 worker threads.
[Wed May 16 09:39:04 2012] [notice] Child 2764: Starting thread to listen on port 8887.
[Wed May 16 09:39:23 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed May 16 09:39:23 2012] [notice] Child 2764: Exit event signaled. Child process is ending.
[Wed May 16 09:39:24 2012] [notice] Child 2764: Released the start mutex
[Wed May 16 09:39:25 2012] [notice] Child 2764: All worker threads have exited.
[Wed May 16 09:39:25 2012] [notice] Child 2764: Child process is exiting
[Wed May 16 09:39:25 2012] [notice] Parent: Child process exited successfully.
[Wed May 16 09:40:46 2012] [notice] Apache/2.2.21 (Win32) PHP/5.4.2 configured -- resuming normal operations
[Wed May 16 09:40:46 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed May 16 09:40:46 2012] [notice] Parent: Created child process 5712
[Wed May 16 09:40:46 2012] [notice] Child 5712: Child process is running
[Wed May 16 09:40:46 2012] [notice] Child 5712: Acquired the start mutex.
[Wed May 16 09:40:46 2012] [notice] Child 5712: Starting 64 worker threads.
[Wed May 16 09:40:46 2012] [notice] Child 5712: Starting thread to listen on port 8887.
[Wed May 16 09:41:01 2012] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Wed May 16 09:41:01 2012] [notice] Apache/2.2.21 (Win32) PHP/5.4.2 configured -- resuming normal operations
[Wed May 16 09:41:01 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed May 16 09:41:01 2012] [notice] Parent: Created child process 3972
[Wed May 16 09:41:01 2012] [notice] Child 3972: Child process is running
[Wed May 16 09:41:01 2012] [notice] Child 3972: Acquired the start mutex.
[Wed May 16 09:41:01 2012] [notice] Child 3972: Starting 64 worker threads.
[Wed May 16 09:41:01 2012] [notice] Child 3972: Starting thread to listen on port 8887.
[Wed May 16 09:42:20 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed May 16 09:42:20 2012] [notice] Child 3972: Exit event signaled. Child process is ending.
[Wed May 16 09:42:21 2012] [notice] Child 3972: Released the start mutex
[Wed May 16 09:42:22 2012] [notice] Child 3972: All worker threads have exited.
[Wed May 16 09:42:22 2012] [notice] Child 3972: Child process is exiting
[Wed May 16 09:42:22 2012] [notice] Parent: Child process exited successfully.
While not the exact answer you're looking for.. I used to use EasyPHP until I realized that their updates come very, very slowly. Since then I've started using The Uniform Server instead, which offers more or less the same tools, but more frequent updates and can be also run from USB.
Hi setup new code ignitior application on my local machine.
RewriteEngine on
RewriteCond $1 !^(index\.php|public|tmp|user_guide|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
This is .htaccess file content
and below is the config file content
$config['base_url'] = "http://localhost/myapp";
$config['index_page']= ""; $config['uri_protocol'] = "REQUEST_URI";
when i try to access application using http://localhost/myapp url gives ERROR 500
Error 500 localhost 10/05/11 20:43:26 Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3
So any idea what is the problem
[Wed Oct 05 21:50:22 2011] [alert] [client 127.0.0.1] C:/xampp/htdocs/myapp/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
[Wed Oct 05 21:50:33 2011] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Wed Oct 05 21:50:33 2011] [notice] Child 4812: Exit event signaled. Child process is ending.
[Wed Oct 05 21:50:34 2011] [notice] Child 4812: Released the start mutex
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: Waiting for 250 worker threads to exit.
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: All worker threads have exited.
[Wed Oct 05 21:50:35 2011] [notice] Child 4812: Child process is exiting
Error in my_thread_global_end(): 1 threads didn't exit
[Wed Oct 05 21:50:43 2011] [notice] Parent: Child process exited successfully.
Error in my_thread_global_end(): 1 threads didn't exit
[Wed Oct 05 21:50:56 2011] [notice] Apache/2.2.4 (Win32) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_autoindex_color PHP/5.2.3 configured -- resuming normal operations
[Wed Oct 05 21:50:56 2011] [notice] Server built: Mar 5 2007 11:23:00
[Wed Oct 05 21:50:56 2011] [notice] Parent: Created child process 4164
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Child process is running
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Acquired the start mutex.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting 250 worker threads.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting thread to listen on port 443.
[Wed Oct 05 21:50:57 2011] [notice] Child 4164: Starting thread to listen on port 80.
It seem obvious to me - just enable Apache's mod_rewrite.
http://www.astahost.com/info.php/Apache-Tutorial-Enable-Mod_rewrite-Windows_t11623.html
http://localhost/joomla/administrator/ The web browser returns an error that the page does not exist after I complete the installation and deleted the folder.
I have to use apache2. I am also using the latest version of apache, mysql. Im using php 5.2.13 VC6 x86 Thread Safe.
I used a combo of two tutorials:
Tutorial 1
Tutorial 2
When I chose mysql as the database it would give me the error right away but if I chose mysqli then I would be able to complete the installation then when I selected either client or administrator then I would get the browser error.
The only difference between the two tutorials is that I used PHPIniDir instead of copying and pasting it to apache.
httpd.conf
LoadModule php5_module "c:/datafiles/php/php5apache2_2.dll"
AddType application/x-httpd-php .php .phtml .inc .php3
AddType application/x-httpd-php-source .phps
PHPIniDir "c:/datafiles/php"
I also changed ServerName localhost:80 due to an error in the log.
error.log
[Fri Jul 09 07:05:21 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Fri Jul 09 07:05:21 2010] [notice] Child 4108: Exit event signaled. Child process is ending.
[Fri Jul 09 07:05:22 2010] [notice] Child 4108: Released the start mutex
[Fri Jul 09 07:05:23 2010] [notice] Child 4108: All worker threads have exited.
[Fri Jul 09 07:05:23 2010] [notice] Child 4108: Child process is exiting
[Fri Jul 09 07:05:23 2010] [notice] Parent: Child process exited successfully.
[Fri Jul 09 07:06:23 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations
[Fri Jul 09 07:06:23 2010] [notice] Server built: Mar 4 2010 11:27:46
[Fri Jul 09 07:06:23 2010] [notice] Parent: Created child process 3520
[Fri Jul 09 07:06:23 2010] [notice] Child 3520: Child process is running
[Fri Jul 09 07:06:23 2010] [notice] Child 3520: Acquired the start mutex.
[Fri Jul 09 07:06:23 2010] [notice] Child 3520: Starting 64 worker threads.
[Fri Jul 09 07:06:23 2010] [notice] Child 3520: Starting thread to listen on port 80.
[Fri Jul 09 07:08:00 2010] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri Jul 09 07:08:00 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations
[Fri Jul 09 07:08:00 2010] [notice] Server built: Mar 4 2010 11:27:46
[Fri Jul 09 07:08:00 2010] [notice] Parent: Created child process 6584
[Fri Jul 09 07:08:00 2010] [notice] Child 6584: Child process is running
[Fri Jul 09 07:08:00 2010] [notice] Child 6584: Acquired the start mutex.
[Fri Jul 09 07:08:00 2010] [notice] Child 6584: Starting 64 worker threads.
[Fri Jul 09 07:08:00 2010] [notice] Child 6584: Starting thread to listen on port 80.
[Fri Jul 09 07:08:01 2010] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri Jul 09 07:08:01 2010] [notice] Apache/2.2.15 (Win32) PHP/5.2.13 configured -- resuming normal operations
[Fri Jul 09 07:08:01 2010] [notice] Server built: Mar 4 2010 11:27:46
[Fri Jul 09 07:08:01 2010] [notice] Parent: Created child process 5780
[Fri Jul 09 07:08:01 2010] [notice] Child 5780: Child process is running
[Fri Jul 09 07:08:02 2010] [notice] Child 5780: Acquired the start mutex.
[Fri Jul 09 07:08:02 2010] [notice] Child 5780: Starting 64 worker threads.
[Fri Jul 09 07:08:02 2010] [notice] Child 5780: Starting thread to listen on port 80.
All pre-installation checks are perfect.
I even tried the PHP installers from the two currently available version but they don't let me start apache.
edit: It was able to install with mysqli the data samples.
try Disabling each extension in php.ini file to see which extension is causing the crash .most of the time the "Curl Extension" would be the reason for the Crash.