Direct Admin Bug ?

Ballevill

Verified User
Joined
Jun 7, 2014
Messages
22
Hello, I'm sorry that I'm using a translator but the English is so different for me sometimes :) I have a problem with DirectAdmin generally have installed Apache server configuration 2.4 + php-fpm 5.3 and php-fpm with CustomBuild 5.4 2.0 Total 99% works well but I have a problem with prestashop so if some file prestashop occurs in the name of "ini" is the server does not see the file and displays the message "file Not Found" rights to files are included to the file and now najciekasze if one of the php Act of php-fpm on mod_php I'll leave the other php-fpm as it begins to act like presta and settings from mod_php to php-fpm and whether this is a bug in Directadminie or simply can not operate two types of php php-fpm as. Regards and thanks for any comments
 
Hello,

If you want to use PHP-FPM then you might need to rename *.ini files to *.php; otherwise you might need to switch from PHP-FPM to suPHP. At least this is what I'd start from.
 
Thanks mate for your reply, however, want to let use x 2 php-fpm versions 5.3 and 5.4 as I mentioned how I installed 2 x php-fpm 90% of the sites works correctly only a problem with files that contain the name of the ini file. Because then apache like to see them. He wanted me to know how it looks from the DirectAdmin configuration if there is a problem because as I mentioned to install two different versions of PHP (eg php mod_php version 5.3 and PHP 5.4 version of php-fpm) is wtedyty prestashop starts and more working on mod_php and in the php-fpm and very much like to work for both php php-fpm. Regards
 
Here's an example we have a js file called "tinymce.inc.js" original with prestashop and if DirectAdmin is configured to run in php-fpm server returns the information from the file does not exist "File not Found" applies only to files that contain the word ini file name
 
Here's an example we have a js file called "tinymce.inc.js" original with prestashop and if DirectAdmin is configured to run in php-fpm server returns the information from the file does not exist "File not Found" applies only to files that contain the word ini file name

ini = inc sorry :)
 
You may remove .inc from DA virtualhost templates:
Code:
|*if HAVE_PHP1_FPM="1"|
        RewriteEngine on
        RewriteOptions InheritBefore
        <FilesMatch "\.(inc|php|phtml|phps|php|PHP1_RELEASE|)$">
                AddHandler "proxy:fcgi://php-fpm|PHP1_RELEASE|.|USER|/" .inc .php .phtml .php|PHP1_RELEASE|
        </FilesMatch>
|*endif|

If you'd like ".inc" to be removed from there by default, please email support@ with a request.
 
You may remove .inc from DA virtualhost templates:
Code:
|*if HAVE_PHP1_FPM="1"|
        RewriteEngine on
        RewriteOptions InheritBefore
        <FilesMatch "\.(inc|php|phtml|phps|php|PHP1_RELEASE|)$">
                AddHandler "proxy:fcgi://php-fpm|PHP1_RELEASE|.|USER|/" .inc .php .phtml .php|PHP1_RELEASE|
        </FilesMatch>
|*endif|

If you'd like ".inc" to be removed from there by default, please email support@ with a request.

Removed but it did not work on the same problem :( Does anyone have any other solution?
 
Hace you executed this:

Code:
[COLOR=#000000][FONT=courier new]echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
[/FONT][/COLOR]

?
 
zEitEr's not working also tried to manually cut with Apache files. restart plus inc php-fpm restart and nothing
 
I guess we miss-understood you. You want files *.inc to be executed with PHP-FPM, right?
What do you see in /var/log/httpd/error_log or/and in /var/log/httpd/domains/<domain>.error.log ?

I've created a file named i.inc with

PHP:
<?php
phpinfo();

and I see some issues with accessing it from my browser.

I see this:

[Mon Jun 09 03:20:34.502504 2014] [proxy_fcgi:error] [pid 17105:tid 140082774275840] [client 109.174.cc.dd:52743] AH01071: Got error 'PHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(/.htaccess) is not within the allowed path(s): (/home/userbob/:/tmp/:/var/tmp/:/usr/local/php53/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/lib/php/) in Unknown on line 0\nPHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(//.htaccess) is not within the allowed path(s): (/home/userbob/:/tmp/:/var/tmp/:/usr/local/php53/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/lib/php/) in Unknown on line 0\nPHP message: PHP Warning: Unknown: open_basedir restriction in effect. File(//home/.htaccess) is not within the allowed path(s): (/home/userbob/:/tmp/:/var/tmp/:/usr/local/php53/lib/:/usr/local/php54/lib/:/usr/local/php55/lib/:/usr/local/lib/php/) in Unknown on line 0\nAccess to the script '//home/userbob/domains/userboblery.ru/public_html/i.inc' has been denied (see security.limit_extensions)\n'
 
Last edited:
Please, here you have access to the data store genovis.pl / login panel is [email protected] password as you enter 123456789 in products and product editions should load a text editor but does not load because firebug displays the file and the file is not found if the act php php_mod everything works but php-fpm does not work
 
Ah, if you want .inc to be executed as PHP, you need to add .inc to the list of security.limit_extensions in /usr/local/php53/etc/php-fpm.conf and restart php-fpm53. Thank you for the report.
 
Yes, I already added .phtml at the same time with .inc :) So that will be the default soon.
 
smtalk I did as you wrote, however, still does not work: (Why, if there is one php as mod_php and the second as php php-fpm as working properly and if both are like php-fpm does not work :/
 
The file /usr/local/php53/etc/php-fpm.conf is a global file, actually that should be

/usr/local/directadmin/data/users/<username>/php/php-fpm53.conf

for users and template /usr/local/directadmin/data/templates/php-fpm.conf
 
zEitEr there's also changed added. wrote inc php and restart apache and it did not work
 
Adds but after restart php configuration file disappears. Inc like to load yourself a default: (
 
Back
Top