Home > centOS, Fedora 12, PHP > Centos – Failed opening required ‘Spreadsheet/Excel/Writer.php’

Centos – Failed opening required ‘Spreadsheet/Excel/Writer.php’

Warning: require_once(Spreadsheet/Excel/Writer.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/html/index.php on line 11</div>
<div>Fatal error: require_once() [function.require]: Failed opening required 'Spreadsheet/Excel/Writer.php' (include_path='.:/tmp/PEAR/') in /var/www/html/index.php on line 11</div>

1. php.ini file is having incorrect, path settings for your pear

[root@www html]# grep include_path /etc/php.ini
; (directory must also be in include_path or full path must
[root@www html]# grep open_basedir /etc/php.ini
; open_basedir, if set, limits all file operations to the defined directory
open_basedir = "/var/www/html:/root/PEAR:/usr/bin/php:/usr/include/php:/tmp/"
[root@www html]#
2. Restart httpd
Categories: centOS, Fedora 12, PHP
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: