Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Problema php.ini

  1. #1

    Problema php.ini

    Salve a tutti, da quando ho smanettato un po sulla sezione "Path and Directories" del php.ini sulla dir apache2 nn funziona più nulla.

    Di seguito l'errore che ho dal phpmyadmin:
    "Impossibile caricare l'estensione mysql,
    prego controllare la configurazione di PHP"

    Questo l'errore che ho da Cacti:
    "Fatal error: Call to undefined function mysql_pconnect() in /usr/share/php/adodb/drivers/adodb-mysql.inc.php on line 376"

    Sul php.ini ho settato nel seguente modo:


    ;;;;;;;;;;;;;;;;;;;;;;;;;
    ; Paths and Directories ;
    ;;;;;;;;;;;;;;;;;;;;;;;;;

    ; UNIX: "/path1:/path2"
    ;include_path = ".:/usr/share/php"
    ;
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"

    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root =

    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    user_dir =

    ; Directory in which the loadable extensions (modules) reside.
    ; extension_dir = "./"

    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    enable_dl = On

    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; cgi.force_redirect = 1

    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request.
    ; cgi.nph = 1

    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; cgi.redirect_status_env = ;

    ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; fastcgi.impersonate = 1;

    ; Disable logging through FastCGI connection
    ; fastcgi.log = 0

    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1 PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ;cgi.rfc2616_headers = 0


    A chi mi aiuta un prosciutto a natale promesso! Grazie mille!

  2. #2
    ; Directory in which the loadable extensions (modules) reside.
    ; extension_dir = "./"

    devi mettere il path che porta alle estensioni di solito e':

    drive:/php/ext

    e togliere il punto e virgola iniziale che corrisponde ad un REM (commento) facendo ignorare il contenuto successivo. Poi restart di apache.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Allora in realtà quando funzionava prima l'extension directory era commentata già come ora, non credo possa essere quello il problema

  4. #4
    Originariamente inviato da Cendler85
    Allora in realtà quando funzionava prima l'extension directory era commentata già come ora, non credo possa essere quello il problema
    esegui il phpinfo() e guarda cosa e quali sono i path, non escluso quello del php.ini stesso.


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.