Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2007, 02:02 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Unhappy Won't Work

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-03-2007, 07:26 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

Do you get any kind of error? A php error , apache error? Can you paste it here?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-03-2007, 08:49 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

Quote:
Originally Posted by khelo View Post
Do you get any kind of error? A php error , apache error? Can you paste it here?
Thanks for the reply.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-03-2007, 09:21 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-04-2007, 09:59 PM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 10-05-2007, 03:10 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

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');
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-05-2007, 11:05 PM
Elemental's Avatar
Senior Member
 
Join Date: Jul 2007
Posts: 122
Default

Also check out this tutorial. It's a view releases behind but still very relevant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 10-09-2007, 07:15 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Default

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:
Originally Posted by Elemental View Post
Also check out this tutorial. It's a view releases behind but still very relevant.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-24-2008, 02:23 AM
Junior Member
 
Join Date: May 2008
Posts: 11
Default

Have you set AllowOverride to All in your Apache configuration.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:12 PM.