Solved

Problems with FirePHP

Posted on 2012-04-01
2
696 Views
Last Modified: 2012-04-05
I am trying to use FirePHP to debug a web page.   I cannot get FirePHP to load properly.  When I try to use the FirePHP, I get the following error:

Warning: require_once(FirePHPCore/FirePHP.class.PHP): failed to open stream: No such file or directory in /var/www/contactform.php on line 15 Fatal error: require_once(): Failed opening required 'FirePHPCore/FirePHP.class.PHP' (include_path='.:/usr/share/php') in /var/www/contactform.php on line 15

I am developing on Ubuntu 11.04 using apache.  My code is in: /var/www

Here's more info
$ls /usr/share/php
    This matches the path in my error message.
    FirePHPCore lives here

$sudo /etc/init.d/apache2 restart
    Apache restarts fine but the I still get the error.
    Clearing the browser history doesn't help.

I don't know what to do next.

How do I fix this problem?
0
Comment
Question by:tmonteit
2 Comments
 
LVL 12

Expert Comment

by:larsrohr
ID: 37794620
Do the permissions on your FirePHPCore directory allow the apache user read and execute/transverse (rx) access?  Perhaps the apache user simply cannot access your FirePHP files.
0
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 37795668
In /var/www create a phpinfo.php file  

<?php phpinfo(); ?>

Execute it and ensure your include path has the /usr/share/php directory in it.

If it does then look at file permissions as was suggested above.

Check file names for proper case.  PHP is case-sensitive and personally I haven't seen many files called filename.PHP.  It is usually a lower-case .php.  Not familiar with FirePHP, though.

Hope that helps...
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question