failed to open stream (constants.php)
Moderator: Thorsten
failed to open stream (constants.php)
Hello,
I made all the required chmod changes to get the mkdir function to work. Once i got through those problems I received this error on the top of the installer.php file.
Warning: main(/xxxxxxxxx/faq/inc/constants.php): failed to open stream: Permission denied in /xxxxxxxxxxxxxxxx/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/xxxxxxxxxx/faq/inc/constants.php' (include_path='.:/xxxxxxxxxxxx/') in /xxxxxxxxxxxxx/faq/install/installer.php on line 19
Do i have to add the /inc/ directory to my apache include path?
Any help is greatly appreciated.
Thanks,
Mike
I made all the required chmod changes to get the mkdir function to work. Once i got through those problems I received this error on the top of the installer.php file.
Warning: main(/xxxxxxxxx/faq/inc/constants.php): failed to open stream: Permission denied in /xxxxxxxxxxxxxxxx/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/xxxxxxxxxx/faq/inc/constants.php' (include_path='.:/xxxxxxxxxxxx/') in /xxxxxxxxxxxxx/faq/install/installer.php on line 19
Do i have to add the /inc/ directory to my apache include path?
Any help is greatly appreciated.
Thanks,
Mike
Hi,
it seems your Apache hasn't the right to read the file constants.php.
bye
Thorsten
it seems your Apache hasn't the right to read the file constants.php.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
the script needs the right to read the file.
bye
Thorsten
the script needs the right to read the file.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
OK
installer.php and constant.php both have the same owner, and are wide open with permissions.
-rwsrwsrwt 1 apache 21632 Dec 2 14:05 installer.php
-rwsrwsrwt 1 apache 7453 Dec 2 13:03 constants.php
still getting the same error.
Any other ideas?
I would really like to see how this software works.
Thanks,
Mike
installer.php and constant.php both have the same owner, and are wide open with permissions.
-rwsrwsrwt 1 apache 21632 Dec 2 14:05 installer.php
-rwsrwsrwt 1 apache 7453 Dec 2 13:03 constants.php
still getting the same error.
Any other ideas?
I would really like to see how this software works.
Thanks,
Mike
Hi,
a chmod 755 should be okay.
bye
Thorsten
a chmod 755 should be okay.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
OK
I chmoded constants.php
-rwxr-xr-x 1 apache 7453 Dec 2 13:03 constants.php
still getting the exact same error
Warning: main(/usr/local/xxxxxxxx/knowledge/faq/inc/constants.php): failed to open stream: Permission denied in /usr/local/xxxxxxxx/knowledge/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/usr/local/xxxxxxxx/knowledge/faq/inc/constants.php' (include_path='.:/usr/local/xxxxxxs/xx/func/') in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
Why are there so many permissions errors with this install? I am no UNIX master but i never have this many problems.
Thanks,
Mike
I chmoded constants.php
-rwxr-xr-x 1 apache 7453 Dec 2 13:03 constants.php
still getting the exact same error
Warning: main(/usr/local/xxxxxxxx/knowledge/faq/inc/constants.php): failed to open stream: Permission denied in /usr/local/xxxxxxxx/knowledge/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/usr/local/xxxxxxxx/knowledge/faq/inc/constants.php' (include_path='.:/usr/local/xxxxxxs/xx/func/') in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
Why are there so many permissions errors with this install? I am no UNIX master but i never have this many problems.
Thanks,
Mike
Hi,
okay, I got the problem.
In line 19 of installer.php you see
Change it to:
and it should work.
Or add your htdocs directory to the PHP include path.
bye
Thorsten
okay, I got the problem.
In line 19 of installer.php you see
Code: Select all
require_once(PMF_ROOT_DIR."/inc/constants.php");
Code: Select all
require_once("../inc/constants.php");
Or add your htdocs directory to the PHP include path.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi Thorsten,
I hate to keep bothering you. If I can't get this to work soon I am afraid I will have to abandon it.
First I changed the require_once line as per your last post. Same error. I had already messed around with that to make sure that root directory constant was spittiing out the correct path (which is was/is).
Then I just added the path to the inc folder into my include_path in the ini file and restarted apache. Sure enough now i get the same error olny it shows my updated include path:
Warning: main(/usr/local/apache/xxxxx/knowledge/faq/inc/constants.php): failed to open stream: Permission denied in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/usr/local/apache/xxxxxx/knowledge/faq/inc/constants.php' (include_path='.:/usr/local/lib/php/:/usr/local/apache/xxxxxxx/:/usr/local/apache/xxxxxxx/knowledge/faq/inc/') in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
has anyone else had a similar problem??
Thanks,
Mike
I hate to keep bothering you. If I can't get this to work soon I am afraid I will have to abandon it.
First I changed the require_once line as per your last post. Same error. I had already messed around with that to make sure that root directory constant was spittiing out the correct path (which is was/is).
Then I just added the path to the inc folder into my include_path in the ini file and restarted apache. Sure enough now i get the same error olny it shows my updated include path:
Warning: main(/usr/local/apache/xxxxx/knowledge/faq/inc/constants.php): failed to open stream: Permission denied in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
Fatal error: main(): Failed opening required '/usr/local/apache/xxxxxx/knowledge/faq/inc/constants.php' (include_path='.:/usr/local/lib/php/:/usr/local/apache/xxxxxxx/:/usr/local/apache/xxxxxxx/knowledge/faq/inc/') in /usr/local/apache/xxxxxxx/knowledge/faq/install/installer.php on line 19
has anyone else had a similar problem??
Thanks,
Mike
Hi,
do you have Safe Mode activated?
bye
Thorsten
do you have Safe Mode activated?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
would it be possible to disable the Zend Optimizer? This could be a problem...
bye
Thorsten
would it be possible to disable the Zend Optimizer? This could be a problem...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist