Today I am creating my first project with the Zend Framework, but when I try to connect to my project, I see only "500 Internal Server Error". I am adding a few new lines to the httpd.conf file:
NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot C:\AppServ\www\data1\public ServerName my_ip </VirtualHost> NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot C:\AppServ\www\data1\public ServerName http://my_ip </VirtualHost>
And this is my htaccess file:
RewriteEngine On #RewriteBase data1/public/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] RewriteRule !\.(js|ico|gif|jpg|png|css|swf|html|pps)$ index.php [NC,L] order allow,deny allow from all
I read more topics for this problem, but so far the problem has not been resolved.
This is my error.log file (from server):
[Wed Aug 08 01:46:02 2012] [warn] NameVirtualHost *:80 has no VirtualHosts PHP Warning: PHP Startup: Unable to load dynamic library 'C:/AppServ\\php5 \\ext\\php_exif.dll' - \xd3\xea\xe0\xe7\xe0\xed\xe0\xf2\xe0 \xef\xf0\xee\xf6\xe5\xe4 \xf3\xf0\xe0 \xed\xe5 \xe5 \xed\xe0\xec\xe5\xf0\xe5\xed\xe0.\r\n in Unknown on line 0 [Wed Aug 08 01:46:02 2012] [notice] Apache/2.2.8 (Win32) PHP/5.2.6 configured -- resuming normal operations [Wed Aug 08 01:46:02 2012] [notice] Server built: Jan 18 2008 00:37:19 [Wed Aug 08 01:46:02 2012] [notice] Parent: Created child process 2392 [Wed Aug 08 01:46:02 2012] [warn] NameVirtualHost *:80 has no VirtualHosts [Wed Aug 08 01:46:02 2012] [warn] NameVirtualHost *:80 has no VirtualHosts PHP Warning: PHP Startup: Unable to load dynamic library 'C:/AppServ\\php5\\ext\\php_exif.dll' - \xd3\xea\xe0\xe7\xe0\xed\xe0\xf2\xe0 \xef\xf0\xee\xf6\xe5\xe4\xf3\xf0\xe0 \xed\xe5 \xe5 \xed\xe0\xec\xe5\xf0\xe5\xed\xe0.\r\n in Unknown on line 0 [Wed Aug 08 01:46:02 2012] [notice] Child 2392: Child process is running [Wed Aug 08 01:46:02 2012] [notice] Child 2392: Acquired the start mutex. [Wed Aug 08 01:46:02 2012] [notice] Child 2392: Starting 64 worker threads. [Wed Aug 08 01:46:02 2012] [notice] Child 2392: Starting thread to listen on port 80. [Wed Aug 08 01:46:15 2012] [alert] [client 46.40.124.225] C:/AppServ/www/data1/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Nikolai Cekov
source share