Jump to content
Froxlor Forum
  • 0
v3ng

PHP-FPM funktioniert nicht

Question

Hi, 

Ich habe eben ein neues System auf Stretch Basis mit Apache/ PHP-FPM installiert.
Extrausers sowie mod_proxy sind im Webinterface aktivert .

Leider bekomme ich nach der deaktivierung des Apache PHP Moduls nur den Sourcecode des Panels angezeigt, scheinbar stimmt also mit PHP-FPM etwas nicht. Zudem kann ich Froxlor nicht, wie im Panel eingestellt über den Hostnamen aufrufen, sondern muss /froxlor an die Domain anhängen.
Im FPM Log steht jedoch nichts relevantes dazu.

 

Froxlor vHost:
 

<VirtualHost xxx.xx.xx.155:80>
DocumentRoot "/var/www/html/froxlor/"
 ServerName web.hostname.de
  <FilesMatch \.(php)$>
  SetHandler proxy:unix:/var/lib/apache2/fastcgi/1-froxlor.panel-web.hostname.de-php-fpm.socket|fcgi://localhost
  </FilesMatch>
</VirtualHost>

 

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
2 hours ago, v3ng said:

Leider bekomme ich nach der deaktivierung des Apache PHP Moduls nur den Sourcecode des Panels angezeigt,

1) läuft php-fpm? 'service php-fpm status' sagt was?

2) stimmt der pfad zu den php-pool-configs? Debian Stretch default wäre '/etc/php/7.0/fpm/pool.d/'

3) Sind in der pool-config directory auch configs?

2 hours ago, v3ng said:

Zudem kann ich Froxlor nicht, wie im Panel eingestellt über den Hostnamen aufrufen, sondern muss /froxlor an die Domain anhängen.

da sagt dein vhost aber was anderes, kann also schlecht sein, es sei denn im Order '/var/www/html/froxlor/' ist noch ein Ordner 'froxlor'

Share this post


Link to post
Share on other sites
  • 0

1) Ja, läuft 

● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-01-27 21:53:41 GMT; 12h ago
     Docs: man:php-fpm7.0(8)
 Main PID: 1268 (php-fpm7.0)
   Status: "Processes active: 0, idle: 1, Requests: 3, slow: 0, Traffic: 0req/sec"
    Tasks: 2 (limit: 4915)
   CGroup: /system.slice/php7.0-fpm.service
           ├─1268 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
           └─1270 php-fpm: pool web.hostname.de

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

2) Ja, /etc/php/7.0/fpm/pool.d/ ist eingetragen

3) Ja, die config für das Panel ist vorhanden

4) 

root@web:/var/www/html/froxlor# pwd
/var/www/html/froxlor
root@web:/var/www/html/froxlor# ls
actions		       customer_domains.php
admin_admins.php       customer_email.php
admin_apcuinfo.php     customer_extras.php
admin_autoupdate.php   customer_ftp.php
admin_configfiles.php  customer_index.php
admin_cronjobs.php     customer_logger.php
admin_customers.php    customer_mysql.php
admin_domains.php      customer_tickets.php
admin_index.php        customer_traffic.php
admin_ipsandports.php  dns_editor.php
admin_logger.php       index.php
admin_message.php      install
admin_opcacheinfo.php  js
admin_phpsettings.php  lib
admin_settings.php     lng
admin_templates.php    logs
admin_tickets.php      README.md
admin_traffic.php      scripts
admin_updates.php      ssl_certificates.php
COPYING		       templates
css

 

Share this post


Link to post
Share on other sites
  • 0
listen = /var/lib/apache2/fastcgi/1-froxlor.panel-web.hostname.de-php-fpm.socket
listen.owner = froxlorlocal
listen.group = froxlorlocal
listen.mode = 0660
user = froxlorlocal
group = froxlorlocal
pm = static
pm.max_children = 1
pm.max_requests = 0
;chroot = /var/www/html/froxlor/
security.limit_extensions = .php
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /var/customers/tmp/froxlor.panel/
env[TMPDIR] = /var/customers/tmp/froxlor.panel/
env[TEMP] = /var/customers/tmp/froxlor.panel/
php_admin_value[session.save_path] = /var/customers/tmp/froxlor.panel/
php_admin_value[upload_tmp_dir] = /var/customers/tmp/froxlor.panel/


php_admin_flag[allow_call_time_pass_reference] = Off
php_admin_flag[allow_url_fopen] = On
php_flag[asp_tags] = Off
php_admin_value[disable_classes] =
php_admin_value[disable_functions] = curl_multi_exec,exec,parse_ini_file,passthru,popen,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,system
php_flag[display_errors] = Off
php_flag[display_startup_errors] = Off
php_admin_flag[enable_dl] = Off
php_value[error_reporting] = E_ALL & ~E_NOTICE
php_admin_flag[expose_php] = Off
php_admin_flag[file_uploads] = On
php_admin_flag[cgi.force_redirect] = 1
php_admin_value[gpc_order] = "GPC"
php_flag[html_errors] = Off
php_admin_flag[ignore_repeated_errors] = Off
php_admin_flag[ignore_repeated_source] = Off
php_value[include_path] = ".:/usr/share/php/:/usr/share/php5/"
php_flag[log_errors] = On
php_admin_flag[log_errors] = On
php_value[log_errors_max_len] = 1024
php_flag[magic_quotes_gpc] = Off
php_flag[magic_quotes_runtime] = Off
php_flag[magic_quotes_sybase] = Off
php_value[max_execution_time] = 60
php_admin_value[max_input_time] = 60
php_admin_value[memory_limit] = 128M
php_admin_value[output_buffering] = 4096
php_admin_value[post_max_size] = 16M
php_admin_value[precision] = 14
php_admin_flag[register_argc_argv] = Off
php_admin_flag[report_memleaks] = On
php_admin_value[sendmail_path] = "/usr/sbin/sendmail -t -i -f admin@web.hostname.de"
php_value[session.auto_start] = 0
php_value[session.cookie_domain] =
php_value[session.cookie_lifetime] = 0
php_value[session.cookie_path] = /
php_admin_value[session.gc_divisor] = 1000
php_admin_value[session.gc_probability] = 1
php_value[session.name] = PHPSESSID
php_value[session.serialize_handler] = php
php_flag[session.use_cookies] = 1
php_flag[short_open_tag] = On
php_flag[suhosin.simulation] = Off
php_flag[track_errors] = Off
php_value[upload_max_filesize] = 32M
php_admin_value[variables_order] = "GPCS"
php_admin_value[opcache.restrict_api] = ""

 

Share this post


Link to post
Share on other sites
  • 0

sieht eigentlich soweit alles korrekt aus, webserver und php-fpm auch mal wirklich restarted (nicht nur reload)? ansonsten könnt ich dir anbieten mir das "vor Ort" auf der kiste anzuschauen

Share this post


Link to post
Share on other sites
  • 0

Ja, beide wurden restarted. 
Kannst du dir gerne auch auf der Kiste anschauen, ich bin mal in den IRC gekommen, dürfte einfacher sein.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...





×
×
  • Create New...