Jump to content
Froxlor Forum

franks

Members
  • Posts

    59
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by franks

  1. Ich habe das Composer Package von OpenAI installiert.

    GitHub - orhanerday/open-ai: OpenAI PHP SDK : Most downloaded, forked, contributed, huge community supported, and used PHP (Laravel , Symfony, Yii, Cake PHP or any PHP framework) SDK for OpenAI GPT-3 and DALL-E. It also supports chatGPT-like streaming.

    Nun kann ich auf der Console ein Script fehlerfrei aufrufen.
    Gerne möchte ich über ein PHP Script auf einer Website ein Script aufrufen aber habe das Problem dass bei den originalen Zeilen

    require __DIR__ . '/vendor/autoload.php'; // remove this line if you use a PHP Framework.

    Den Fehler Warning: require(/var/customers/webs/xxx/xxx.com/vendor/autoload.php): failed to open stream: No such file or directory
    bringt und 

     

    require '/root/vendor/autoload.php';

    Warning: require(): open_basedir restriction in effect. File(/root/vendor/autoload.php) is not within the allowed path(s): 

     

    Am Rande möchte ich erwähnen dass ich unglaublich finde wie ChatPGT performt.
    Wenn man z.B. Wie installiere ich Froxlor auf Debian 10 eingebe dann erhalte ich direkt eine Anleitung. 
    Die Antworten sind zwar nicht immer korrekt aber sehr hilfreich.

  2. Hallo,

    ich haben Composer installiert. Nun sollte auf den Prad /rpot/vendor/ zugegriffen werden.
    In der PHP-Konfiguration habe ich
     

    {OPEN_BASEDIR_C}open_basedir = "{OPEN_BASEDIR}:/root/vendor/"

     

    eingetragen. Leider funktioniert das so nicht. Was ist der richtige und ein sicherer Weg?

  3. Darf ich höflich fragen ob die Zeile 

    chmod(/var/www/html/froxlor//bin/froxlor-cli, 0755);

    im Masterchronjob eventuell falsch ist?

    Ich erhalte beim manuellem Aufruf folgende Meldung:

    PHP Parse error:  syntax error, unexpected token "/" in /var/www/html/froxlor/scripts/froxlor_master_cronjob.php on line 2

     

  4. Ich habe meine Debian 10 von Froxlor 2.0.3. auf 2.0.8 upgedatet.

    Dabei ist folgende Fehlermeldung gekommen:

    Uncaught exception
    0 Undefined constant "PHO_EOL"
    
    #0 /var/www/html/froxlor/install/updatesql.php(56): include_once()
    #1 /var/www/html/froxlor/admin_updates.php(53): include_once('/var/www/html/f...')
    #2 {main}

     

  5. <VirtualHost xx.xx.xx.20:443>
      ServerName stream.xxx.info
      ServerAdmin xxx
      SSLEngine On
      SSLProtocol -ALL +TLSv1 +TLSv1.2
      SSLCompression Off
      SSLSessionTickets on
      SSLHonorCipherOrder off
      SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA$
      SSLVerifyDepth 10
      SSLCertificateFile /etc/ssl/froxlor-custom/stream.xxx.info.crt
      SSLCertificateKeyFile /etc/ssl/froxlor-custom/stream.xxx.info.key
      SSLCACertificateFile /etc/ssl/froxlor-custom/stream.xxx.info_CA.pem
      SSLCertificateChainFile /etc/ssl/froxlor-custom/stream.xxx.info_chain.pem
      <IfModule mod_headers.c>
        Header always set Strict-Transport-Security "max-age=0"
      </IfModule>
      DocumentRoot "/var/customers/webs/franks/xxx.com"
      FcgidIdleTimeout 30
      SuexecUserGroup "franks" "franks"
      <Directory "/var/customers/webs/franks/xxx.com/">
        <FilesMatch "\.(php|html)$">
          SetHandler fcgid-script
          FcgidWrapper /var/www/php-fcgi-scripts/franks/stream.xxx.info/php-fcgi-starter .php
          FcgidWrapper /var/www/php-fcgi-scripts/franks/stream.xxx.info/php-fcgi-starter .html
          Options +ExecCGI
        </FilesMatch>
        Require all granted
        AllowOverride All
      </Directory>
      Alias /webalizer "/var/customers/webs/franks/webalizer"
      LogLevel warn
      ErrorLog "/var/customers/logs/franks-error.log"
      CustomLog "/var/customers/logs/franks-access.log" combined
    </VirtualHost>

    Müssten die Einstellungen hier mit drinnen stehen?

  6. ProxyPass        /service1     http://localhost:8080/service1
    ProxyPassReverse  /service1  http://localhost:8080/service1
    
    <Proxy http://localhost:8080/service1>
        Require all granted
        Options none
    </Proxy>

    ich habe den von dir oben beschriebenen eintrag in die vhost gemacht und nun erhalte ich wenn ich auf
    www.domain.com funktioniert das SSL Zerifikat aber lande im Verzeichnis von einer Website
    www.domain.com:8080/service1 dann geht Restreamer mit ungültigem SSL Zerifikat 
    www.domain.com/service1 gehe Restreamer mit ungültigem SSL Zerifikat  (Restreamer antwortet {"code":404,"message":"File not found","details":["/service1/ui"]})

     

     

    Beim versuch

    ProxyPass        /     http://localhost:8080/
    ProxyPassReverse  / http://localhost:8080/
    
    <Proxy http://localhost:8080/>
        Require all granted
        Options none
    </Proxy>

    www.domain.com funktioniert das SSL Zerifikat aber Lande im Verzeichnis von einer Website
    www.domain.com:8080/ dann geht Restreamer mit ungültigem SSL Zerifikat 

     

     

×
×
  • Create New...