[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] Problemer med phpMyAdmin - SOLVED



Søndag den 29. Juli 2007 skrev Morten Ø. Christensen:
> Søndag den 29. Juli 2007 skrev Ole Kofoed Hansen:
> > Morten Ø. Christensen skrev:
> > > Usually, the problem is solved by installing a software package
> > > called "PHP-MySQL" or something similar."
> >
> > Når pakken er installeret, skyldes det ofte, at php ikke er sat til at
> > aktivere mysql-funktionerne. Prøv at se om der er en udkommenteret linie
> > i din php.ini som refererer til mysql-extensionen.
> >
> > Med venlig hilsen
> >
> > Ole
>
> Ikke så vidt, jeg kan se, men for en god ordens skyld kommer de dele af
> php.ini, som jeg regner med er de relevante:
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;
> ; Paths and Directories ;
> ;;;;;;;;;;;;;;;;;;;;;;;;;
>
> include_path = ".:/usr/lib/php/:/usr/share/pear/"
>
> ; 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
> = /home/mortenoc/apache/phpmyadmin
>
> ; The directory under which PHP opens the script using /~username used only
> ; if nonempty.
> user_dir = /home/mortenoc/apache/phpmyadmin
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = /usr/lib/php/extensions ;
>
> ; 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
>
> ;;;;;;;;;;;;;;;;;;;;;;
> ; Dynamic Extensions ;
> ;;;;;;;;;;;;;;;;;;;;;;
> ;
> ; If you wish to have an extension loaded automatically, use the following
> ; syntax:
>
> extension=mysql.so
>
>
> ; On Mandriva, we don't add the extensions in php.ini anymore, we put
> ; them in /etc/php.d/<number>_<name>.ini, for example 10_recode.ini.
> ;
> ; This is so that the RPMS can register themselves without having to
> ; modify the php.ini file.
>
> [MySQL]
> ; Allow or prevent persistent links.
> mysql.allow_persistent = On
>
> ; Maximum number of persistent links.  -1 means no limit.
> mysql.max_persistent = -1
>
> ; Maximum number of links (persistent + non-persistent).  -1 means no
> limit. mysql.max_links = -1
>
> ; Default port number for mysql_connect().  If unset, mysql_connect() will
> use ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the ;
> compile-time value defined MYSQL_PORT (in that order).  Win32 will only
> look ; at MYSQL_PORT.
> mysql.default_port =
>
> ; Default socket name for local MySQL connects.  If empty, uses the
> built-in ; MySQL defaults.
> mysql.default_socket =
>
> ; Default host for mysql_connect() (doesn't apply in safe mode).
> mysql.default_host =
>
> ; Default user for mysql_connect() (doesn't apply in safe mode).
> mysql.default_user =
>
> ; Default password for mysql_connect() (doesn't apply in safe mode).
> ; Note that this is generally a *bad* idea to store passwords in this file.
> ; *Any* user with PHP access can run 'echo
> get_cfg_var("mysql.default_password")
> ; and reveal this password!  And of course, any users with read access to
> this ; file will be able to reveal the password as well.
> mysql.default_password =
>
> ; Maximum time (in seconds) for connect timeout. -1 means no limit
> mysql.connect_timeout = 60
>
> ; Trace mode. When trace_mode is active (=On), warnings for table/index
> scans and
> ; SQL-Errors will be displayed.
> mysql.trace_mode = Off
>
> [MySQLi]
>
> ; Maximum number of links.  -1 means no limit.
> mysqli.max_links = -1
>
> ; Default port number for mysqli_connect().  If unset, mysqli_connect()
> will use
> ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
> ; compile-time value defined MYSQL_PORT (in that order).  Win32 will only
> look ; at MYSQL_PORT.
> mysqli.default_port = 3306
>
> ; Default socket name for local MySQL connects.  If empty, uses the
> built-in ; MySQL defaults.
> mysqli.default_socket =
>
> ; Default host for mysql_connect() (doesn't apply in safe mode).
> mysqli.default_host =
>
> ; Default user for mysql_connect() (doesn't apply in safe mode).
> mysqli.default_user =
>
> ; Default password for mysqli_connect() (doesn't apply in safe mode).
> ; Note that this is generally a *bad* idea to store passwords in this file.
> ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
> ; and reveal this password!  And of course, any users with read access to
> this ; file will be able to reveal the password as well.
> mysqli.default_pw =
>
> ; Allow or prevent reconnect
> mysqli.reconnect = Off
>
> [mSQL]
> ; Allow or prevent persistent links.
> msql.allow_persistent = On
>
> ; Maximum number of persistent links.  -1 means no limit.
> msql.max_persistent = -1
>
> ; Maximum number of links (persistent+non persistent).  -1 means no limit.
> msql.max_links = -1

Nå, jeg fandt ud af, at php ikke kan indlæse mysql uden mysqls headers. Disse 
bliver dog ikke installeret med den almindelige mysql-rpm og jeg var derfor 
nødt til at installere mysqls dev-pakke.
Derefter geninstallerede jeg php ved at kompilere 
med: ./configure --prefix=/user/local/php --with-apxs2 --with-mysql=/usr/include/mysql 
(hvor mysql.h (headeren) ligger).
Derefter kunne php indlæse mysql som modul men phpMyAdmin ville stadig ikke 
starte op, men efter at have rettet i php.ini, så phpMyAdmin brugte de 
rigtige biblioteker (og f. eks. ikke lagde sin tmp-folder i /root) kører det.

Mvh
Morten

-- 
________________________________________
Morten Østergaard Christensen
Skodsborggade 4, 3. th.
2200 København N
Tlf.: 2248 4012
Skype: mortenoc


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-08-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *