|
|||
|
I installed php 5.2.4 on my Fedora 7 and it has been working fine itself (any of my programs works) on the Apache server.
Also installed ZF as described in the official manual (made a path to the libs in my php.ini file, made some dirs (including /var/www/application/controllers), added some lines to the .htaccess file...) but with no success however. All the lines below and including the first line calling the library (e.g. "require_once") are lost from the returned html (including html tags). Any clue? Help woud be fine. Thanks. marco |
|
|||
|
Quote:
After my previous posting I tried renaming index.php to test.php to retry, then I got a "500 Server Error" message. I assumed the lack in the html returned was from the same error and looked in the Apache error_log. There are lines of "HTTP/1.1 500 - Internal Server Error" only and no more hint. No error or no new entry was found in the PHP error log. I have worked with several Perl/CGI scripts and know well the "500 error" is the toughest for interpretation... Continued help would be fine. marco |
|
|||
|
Often said is "When you encounter a '500 Server Error' look in your error log." Only the same message or no more detailed one is found in the error log however. Is there any option to be added into httpd.conf or something for an entry of some more detailed one?
marco |
|
|||
|
You must proper set up your apache first . I assume you are using a .htaccess file , if you remove it and acess index.php and get some php errors ( it would be normal) , it's because of improper apache configuration( I assume you are not using php cgi ).
Ensure mod_rewrite is loaded in your apache , if so , make sure AlowOverides is set to all for your web directory so that your .htaccess file can be effective and also FollowSymlinks option is present . You may want to check : Apache Tutorial: .htaccess files - Apache HTTP Server and Blueprint for PHP Applications: Bootstrapping (part 2) , and if this does not help and apache seems the problem I will help you further. Regards |
|
|||
|
Thank you for keeping in touch.
Here are my dir map and entries from some conf files assumed to be related to this problem: Code:
/
etc/
httpd/
conf/
httpd.conf
php.ini
usr/
lib/
php/
Zend/ (ZF libraries)
Acl/
Acl.php
etc.
etc.
...
modules/
pear/
var/
log/
httpd/
access_log (Apache access log)
error_log (Apache error log)
php (PHP error log)
www/
application/
controllers/
IndexController.php
models/
views/
html/
.htaccess
index.php
Lines are extracted from my /etc/httpd/conf/httpd.conf file that are possibly related:
LoadModule rewrite_module modules/mod_rewrite.so
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Includes ExecCGI FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Also from my /etc/php.ini file:
include_path = ".:/usr/lib/php"
In the /var/www/html/.htaccess file are only these lines:
RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
The following lines have been added to top of the /var/www/html/index.php file:
<?php
require_once 'Zend/Controller/Front.php';
Zend_Controller_Front::run('/var/www/application/controllers');
?>
|
|
|||
|
Thanks Elemental, but I found out the same tutorial in an article (Nabble - Instalation issues and mod_rewrite issues.) from Zend (home) Community Forum after posting my previous followup and tried following the way in the tutorial with no success (getting a 500 error message).
Quote:
|
|
|||
|
Have you set AllowOverride to All in your Apache configuration.
__________________
Affordable Web Hosting Coupons Free Domains Hosting Coupons Promo Web Hosting Choices |
![]() |
| Thread Tools | |
| Display Modes | |
|
|