Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.4.66+ PHP error in Nutstore sync folder |
|
| Author |
|
nhafeng
Joined: 15 Oct 2026 Posts: 4 Location: China, Foshan
|
Posted: Thu 15 Oct '26 9:09 Post subject: Apache 2.4.66+ PHP error in Nutstore sync folder |
|
|
I meet issue when upgrade apache to 2.4.66+ (below 2.4.65 are ok)
Apache 2.4.65 x64
PHP 7 / 8 (installed as a module of Apache)
Nutstore 7.212 (a sync tool)
PHP files are in Nutstore sync folders.
When I access PHP files in Browser, it shows:
| Quote: | Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'xxx/xxx/xxx.php' (include_path='.;C:\php\pear') in Unknown on line 0 |
When the file is not in Nutstore sync folder, it's ok.
When Apache downgraded to 2.4.65 or below, it's ok too.
Does anyone meet same problem and solved it ?
Thanks. |
|
| Back to top |
|
tangent Moderator
Joined: 16 Aug 2020 Posts: 471 Location: UK
|
Posted: Thu 15 Oct '26 21:46 Post subject: |
|
|
The fact you are able to access PHP files outside the Nutstore folder with Apache 2.4.66, rather suggests a file locking or permissions issue of some form. Having said that, there's nothing specifically listed in the 2.4.66 changelog that relates to file locking, though there is mention of a security change relating to mod_userdir, which might be relevant (ASF changelog history can be found here https://www.apachelounge.com/Changelog-2.4.html).
One thing that might be worth trying.
You mention you're using PHP as a module, whereas perceived wisdom suggests running PHP code through mod_fcgid. There is an excellent tutorial on how to use mod_fcgid here https://www.apachelounge.com/viewtopic.php?t=2394
This would decouple the PHP code to run in a separate process from Apache, and might resolve your Nutstore access issue. |
|
| Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7486 Location: EU, Germany, Next to Hamburg
|
|
| Back to top |
|
nhafeng
Joined: 15 Oct 2026 Posts: 4 Location: China, Foshan
|
Posted: Sun 18 Oct '26 3:35 Post subject: |
|
|
the php script would run anyway, even try an catch.
the simplest script:
also cause the error.
Last edited by nhafeng on Sun 18 Oct '26 3:40; edited 2 times in total |
|
| Back to top |
|
nhafeng
Joined: 15 Oct 2026 Posts: 4 Location: China, Foshan
|
Posted: Sun 18 Oct '26 3:37 Post subject: |
|
|
| tangent wrote: | The fact you are able to access PHP files outside the Nutstore folder with Apache 2.4.66, rather suggests a file locking or permissions issue of some form. Having said that, there's nothing specifically listed in the 2.4.66 changelog that relates to file locking, though there is mention of a security change relating to mod_userdir, which might be relevant (ASF changelog history can be found here https://www.apachelounge.com/Changelog-2.4.html).
One thing that might be worth trying.
You mention you're using PHP as a module, whereas perceived wisdom suggests running PHP code through mod_fcgid. There is an excellent tutorial on how to use mod_fcgid here https://www.apachelounge.com/viewtopic.php?t=2394
This would decouple the PHP code to run in a separate process from Apache, and might resolve your Nutstore access issue. |
It's ok running PHP with fast cgi mode. So I think it's apache 2.4.66(above)'s issue |
|
| Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7486 Location: EU, Germany, Next to Hamburg
|
Posted: Sun 18 Oct '26 9:37 Post subject: |
|
|
| nhafeng wrote: |
the php script would run anyway, even try an catch.
the simplest script:
also cause the error. |
Please post your config part for PHP.
Also can you run "php -m" on the command line? |
|
| Back to top |
|
nhafeng
Joined: 15 Oct 2026 Posts: 4 Location: China, Foshan
|
Posted: Tue 20 Oct '26 3:13 Post subject: |
|
|
| James Blond wrote: | | nhafeng wrote: |
the php script would run anyway, even try an catch.
the simplest script:
also cause the error. |
Please post your config part for PHP.
Also can you run "php -m" on the command line? |
PHP8.5
| Code: | [PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
fileinfo
filter
gd
hash
iconv
json
lexbor
libxml
mbstring
mysqli
mysqlnd
pcre
PDO
Phar
random
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
uri
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache |
PHP7.4
| Code: |
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
fileinfo
filter
gd
geoip
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
pcre
PDO
Phar
readline
Reflection
session
SimpleXML
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules] |
php.ini (8.5)
| Code: | [PHP]
engine = On
short_open_tag = Off
precision = 14
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = -1
disable_functions =
zend.enable_gc = On
zend.exception_ignore_args = On
zend.exception_string_param_max_len = 0
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
max_memory_limit = -1
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
display_startup_errors = On
log_errors = On
ignore_repeated_errors = Off
ignore_repeated_source = Off
error_log = d:/amp/log/php8_errors.log
variables_order = "GPCS"
request_order = "GP"
auto_globals_jit = On
post_max_size = 8M
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
default_charset = "UTF-8"
doc_root =
user_dir =
extension_dir = "/amp/php8/ext"
enable_dl = Off
file_uploads = On
upload_max_filesize = 32M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
extension=bz2
extension=curl
extension=fileinfo
extension=gd
extension=mbstring
extension=mysqli
extension=zip
[Session]
session.save_handler = files
session.use_strict_mode = 0
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.cookie_samesite =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 36000
session.referer_check =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.trans_sid_tags = "a=href,area=href,frame=src,form=" |
|
|
| Back to top |
|
|
|
|
|
|