Jump to content
Froxlor Forum
  • 0

fcgid installation


bgworms

Question

Hallo,

 

ich habe heute Froxlor frisch installiert und alle Konfigurationen ausgef?hrt.

 

Ich habe noch keine User angelegt.

 

Danach wollte ich fcgid nach Anleitung in Wiki installieren. Nachdem ich alles durchgegangen bin konnte ich Froxlor nicht mehr

aufrufen. Er will immer die Datei runterladen, also schein php nicht zu funktionieren.

 

Was muss ich eigentlich bei der Datei /etc/apache2/sites-enabled/000-default eintargen ???

Das was in dem fcgi-Handbuch steht oder muss das was in dem fcgi-Handbuch steht dazugef?gt werden ?

 

Ich habe beides ausprobiert, danach den apache neu gestartet, aber mit dem selben "erfolg".

 

Hier mal die Ausgabe von ps faux:

 

 
server014:/etc/cron.daily# ps faux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   1984   680 ?        Ss   15:19   0:00 init [2]
root       295  0.0  0.0  28016  1252 ?        Sl   15:19   0:00 /usr/sbin/rsyslogd -c3
root       308  0.0  0.0   5276  1000 ?        Ss   15:19   0:00 /usr/sbin/sshd
root      8375  0.0  0.0   8596  2736 ?        Ss   18:32   0:00  \_ sshd: root@pts/1
root      8378  0.0  0.0   6012  1544 pts/1    Ss   18:32   0:00      \_ -bash
root      9565  0.0  0.0   5500   808 pts/1    R+   20:28   0:00          \_ ps faux
root      5569  0.0  0.0   5716  1260 ?        S    17:31   0:00 /bin/sh /usr/bin/mysqld_safe
mysql     5606  0.0  0.3 120044 17696 ?        Sl   17:31   0:01  \_ /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql
root      5607  0.0  0.0   4836   596 ?        S    17:31   0:00  \_ logger -p daemon.err -t mysqld_safe -i -t mysqld
bind      6324  0.0  0.2 104872 14656 ?        Ssl  17:43   0:00 /usr/sbin/named -u bind
root      7173  0.0  0.0   5480  1804 ?        Ss   17:56   0:00 /usr/lib/postfix/master
postfix   7180  0.0  0.0   5536  1892 ?        S    17:56   0:00  \_ qmgr -l -t fifo -u
postfix   9290  0.0  0.0   5796  1628 ?        S    19:35   0:00  \_ pickup -l -t fifo -u -c
root      7768  0.0  0.0   2004   600 ?        Ss   18:03   0:00 /usr/sbin/dovecot
vmail     7770  0.0  0.0   9420  2436 ?        S    18:03   0:00  \_ dovecot-auth
dovecot   7777  0.0  0.0   3504  1584 ?        S    18:03   0:00  \_ pop3-login
dovecot   7778  0.0  0.0   3504  1584 ?        S    18:03   0:00  \_ pop3-login
dovecot   7779  0.0  0.0   3504  1588 ?        S    18:03   0:00  \_ pop3-login
dovecot   7780  0.0  0.0   3508  1592 ?        S    18:03   0:00  \_ imap-login
dovecot   7781  0.0  0.0   3508  1588 ?        S    18:03   0:00  \_ imap-login
dovecot   7782  0.0  0.0   3508  1588 ?        S    18:03   0:00  \_ imap-login
proftpd   8172  0.0  0.0  10872  1552 ?        Ss   18:19   0:00 proftpd: (accepting connections)
root      8667  0.0  0.0 114356  1816 ?        Ssl  19:05   0:00 /usr/sbin/nscd
root      9151  0.0  0.0   5272   800 ?        Ss   19:23   0:00 /usr/sbin/cron
root      9533  0.0  0.0  13812  3000 ?        Ss   20:20   0:00 /usr/sbin/apache2 -k start
www-data  9535  0.0  0.0  13748  1844 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
www-data  9537  0.0  0.0  13812  2004 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
www-data  9538  0.0  0.0  13812  2004 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
www-data  9539  0.0  0.0  13812  2004 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
www-data  9540  0.0  0.0  13812  2004 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
www-data  9541  0.0  0.0  13812  2004 ?        S    20:20   0:00  \_ /usr/sbin/apache2 -k start
server014:/etc/cron.daily#

 

In der Anleitung steht auch unter Punkt 5, dass ich in der Froxlor-Einstellung bei FCGI das mit dem Vhost einschalten soll.

Das habe ich nicht gemacht, sondern nur im Hauptmenue Einstellungen FCGI eingeschaltet. Ich denke, das ist der Fehler, aber ich

kann es jetzt nicht mehr einstellen, da ich ja nicht mehr in Froxlor reinkommen. Wie und wo kann ich das aktivieren ?

 

LG Bodo

Link to comment
Share on other sites

Recommended Posts

Hallo,

 

die Datei /etc/cron.d/froxlor existiert wie in der Konfiguration in Froxlor steht.

cron ist gestartet.

 

Aber mir ist folgendes in der Anleitung aufgefallen:

 

If you have set up all correctly it should be now possible to open the customer domains in your browser. If there are PHP  child processes under the Apache process all is working fine. You can also check that by running phpinfo(); from a file within a customer domain.

 

Ich habe keine customer-Domain, da ich noch keine Kunden und Domains angelegt habe. Ich habe direkt nach der Installation von Froxlor das fcgid-Handbuch durchgearbeitet. Ich kann ja jetzt ?ber Froxlor keine domains und Kunden mehr anlegen, da ich ja nicht mehr draufkomme.

 

Wenn ich folgendes in der Konsole aufrufe kommt keine Fehlermeldung. Es kommt gar keine Meldung. Ist das richtig ?

 

/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php

Link to comment
Share on other sites

Wenn ich folgendes in der Konsole aufrufe kommt keine Fehlermeldung. Es kommt gar keine Meldung. Ist das richtig ?

/usr/bin/php5 -q /var/www/froxlor/scripts/froxlor_master_cronjob.php

 

Ja, denn es gibt wohl derzeit keine Tasks die der Cronjob ausf?hren muss.

 

Bitte nopaste deine vhost-Konfigurationsdatei die von Froxlor erstellt wurde (in /etc/apache/sites-enables/, oder was du angegeben hast im Panel)

Link to comment
Share on other sites

 

Bitte nopaste deine vhost-Konfigurationsdatei die von Froxlor erstellt wurde (in /etc/apache/sites-enables/, oder was du angegeben hast im Panel)

 

Es gibt in diesem Verzeichnis keine von Froxlor erstellte vhost-Konfigurationsdatei, nur die 000-default, die damit nichts zu tun hat :-( Ich habe ja auch noch keine Kunden angelegt gehabt und auch noch keine Kundendomains.

Link to comment
Share on other sites

ok, dann starten wir den "erstelle config-dateien" cronjob mal manuell:

 

Auf der Shell eine MySQL-Verbindung herstellen:

mysql -u root -p froxlor

 

Cron-Task f?r das Neuerstellen von Webserver Konfigurationen einf?gen:

mysql> INSERT INTO `panel_tasks` SET `type` = '1';

 

Mysql-Shell verlassen:

mysql> \q

 

Cronjob manuell ausf?hren:

php /var/www/froxlor/scripts/froxlor_master_cronjob.php

 

Danach sollten auf jeden Fall Vhost-Dateien erzeugt worden sein

Link to comment
Share on other sites

Er hat auf jeden Fall mal eine Datei erzeugt. Apache neu gestartet, aber es geht noch nicht. Hier der Konsole-Auszug:

 


server014:/etc/apache2/sites-enabled# cat 10_froxlor_ipandport_178.63.xxx.xx.80.conf
# 10_froxlor_ipandport_178.63.xxx.xx.80.conf
# Created 08.10.2010 11:17
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

NameVirtualHost 178.63.xxx.xx:80
<VirtualHost 178.63.xxx.xx:80>
DocumentRoot "/var/www/"
ServerName server014.xxxxxxx.de
 SuexecUserGroup "froxlorlocal" "froxlorlocal"
 <Directory "/var/www/">
   AddHandler fcgid-script .php
   FCGIWrapper /var/www/php-fcgi-scripts/froxlor.panel/php-fcgi-starter .php
   Options +ExecCGI
   Order allow,deny
   allow from all
 </Directory>
</VirtualHost>
server014:/etc/apache2/sites-enabled#

Link to comment
Share on other sites

da ist schonmal problem nummer 1, was hast du denn als Webserver-User eingetragen?

Unter debian ist das standardm??ig "www-data"

 

Bzw. versuche doch zun?chst mal

 

apache2 -t

 

um den Syntax der Config zu testen

Link to comment
Share on other sites

Da kommt genau die selbe Fehlermeldung :-(

 



server014:/etc/apache2/sites-enabled# apache2 -t
apache2: bad user name ${APACHE_RUN_USER}
server014:/etc/apache2/sites-enabled# echo $APACHE_RUN_USER

server014:/etc/apache2/sites-enabled# /usr/lib/apache2/suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www-data"
-D AP_LOG_EXEC="/var/log/apache2/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"
server014:/etc/apache2/sites-enabled#


Link to comment
Share on other sites

bitte mal die Rechte des Ordners nopasten

 

ls -la /var/www/froxlor

 

 

server014:/etc/apache2/sites-enabled# ls -la /var/www/froxlor
total 476
drwxr-xr-x 11 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 .
drwxr-xr-x  5 root         root          4096 2010-10-08 11:17 ..
drwxr-xr-x  3 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 actions
-rw-r--r--  1 froxlorlocal froxlorlocal 27783 2010-09-20 09:56 admin_admins.php
-rw-r--r--  1 froxlorlocal froxlorlocal  1052 2010-02-05 09:23 admin_aps.php
-rw-r--r--  1 froxlorlocal froxlorlocal  5680 2010-03-22 13:36 admin_configfiles.php
-rw-r--r--  1 froxlorlocal froxlorlocal  4342 2010-03-26 09:42 admin_cronjobs.php
-rw-r--r--  1 froxlorlocal froxlorlocal 56638 2010-09-27 11:53 admin_customers.php
-rw-r--r--  1 froxlorlocal froxlorlocal 51500 2010-09-20 08:07 admin_domains.php
-rw-r--r--  1 froxlorlocal froxlorlocal  9905 2010-09-20 09:56 admin_index.php
-rw-r--r--  1 froxlorlocal froxlorlocal 12341 2010-01-25 11:06 admin_ipsandports.php
-rw-r--r--  1 froxlorlocal froxlorlocal  4264 2010-01-25 11:06 admin_logger.php
-rw-r--r--  1 froxlorlocal froxlorlocal  3722 2010-02-05 09:23 admin_message.php
-rw-r--r--  1 froxlorlocal froxlorlocal  6698 2010-04-30 07:07 admin_phpsettings.php
-rw-r--r--  1 froxlorlocal froxlorlocal  6094 2010-08-05 08:19 admin_settings.php
-rw-r--r--  1 froxlorlocal froxlorlocal 13354 2010-08-17 08:19 admin_templates.php
-rw-r--r--  1 froxlorlocal froxlorlocal 28376 2010-09-23 08:08 admin_tickets.php
-rw-r--r--  1 froxlorlocal froxlorlocal  3562 2010-04-29 08:50 admin_updates.php
-rw-r--r--  1 froxlorlocal froxlorlocal  1058 2010-02-05 09:36 customer_aps.php
-rw-r--r--  1 froxlorlocal froxlorlocal  9182 2010-09-20 09:56 customer_autoresponder.php
-rw-r--r--  1 froxlorlocal froxlorlocal 22093 2010-08-12 14:32 customer_domains.php
-rw-r--r--  1 froxlorlocal froxlorlocal 30830 2010-07-24 21:42 customer_email.php
-rw-r--r--  1 froxlorlocal froxlorlocal 15623 2010-08-11 09:48 customer_extras.php
-rw-r--r--  1 froxlorlocal froxlorlocal 13898 2010-08-10 11:21 customer_ftp.php
-rw-r--r--  1 froxlorlocal froxlorlocal  7159 2010-09-20 09:56 customer_index.php
-rw-r--r--  1 froxlorlocal froxlorlocal 12224 2010-08-10 11:21 customer_mysql.php
-rw-r--r--  1 froxlorlocal froxlorlocal 15002 2010-04-29 07:38 customer_tickets.php
-rw-r--r--  1 froxlorlocal froxlorlocal  9321 2010-04-20 12:58 customer_traffic.php
drwxr-xr-x  2 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 images
-rw-r--r--  1 froxlorlocal froxlorlocal 10758 2010-08-17 08:19 index.php
drwxr-xr-x  5 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 install
drwxr-xr-x  6 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 lib
drwxr-xr-x  2 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 lng
drwxr-xr-x  2 froxlorlocal froxlorlocal  4096 2010-10-01 08:31 packages
drwxr-xr-x  3 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 scripts
drwxr-xr-x  2 froxlorlocal froxlorlocal  4096 2010-10-01 08:31 temp
drwxr-xr-x  7 froxlorlocal froxlorlocal  4096 2010-10-07 18:52 templates
server014:/etc/apache2/sites-enabled#

Link to comment
Share on other sites

und bei ls -la /var/www/ geh?rt der Ordner 'froxlor' auch dem User 'froxlorlocal' ?

 

Ja.

 


server014:/etc/apache2/sites-enabled# ls -la /var/www/
total 24
drwxr-xr-x  5 root         root         4096 2010-10-08 11:17 .
drwxr-xr-x 15 root         root         4096 2010-10-07 18:59 ..
drwxr-xr-x 11 froxlorlocal froxlorlocal 4096 2010-10-07 18:52 froxlor
-rw-r--r--  1 root         root           45 2010-10-07 18:31 index.html
drwxr-xr-x  3 root         root         4096 2010-10-08 11:17 php-fcgi-scripts
drwxr-xr-x  2 root         root         4096 2010-10-07 18:52 webalizer
server014:/etc/apache2/sites-enabled#

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...