View Full Version : Apache => non funziona il php
Zeno Cosini
02-02-2005, 15:29
Ciao ragazzi, ho un piccolo problemino...
Ho installato Gentoox sulla mia Xbox, funziona tutto correttamente, ho installato Mysql, Apache e mod_php.
Apache funziona solo che non capisco perchè non mi interpreta il codice in PHP...
Come ho specificato sopra ho installato la modphp quindi non riesco a capire perchè non vada...
Se vi posto i file di configurazione qualcuno potrebbe darmi una mano?:)
grazie in anticipo!!!
-edit-
Il problema risulta ai miei occhi ancora più strano...
questo codice lo interpreta
<?php
phpinfo();
?>
mentre se punto il browser sul file index.php di phpmyadmin mi visualizza solo codice e nulla di grafico...:rolleyes:
Nel file httpd.conf ci stanno queste righe?
----
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
----
rollopack
02-02-2005, 16:27
Ma la cartella di phpmyadmin é in una directory di apache (/var/www) o é posizionata altrove?
Originariamente inviato da rollopack
Ma la cartella di phpmyadmin é in una directory di apache (/var/www) o é posizionata altrove?
Credo che sia in /var/www oppure non vedo come abbia fatto a richiamarla :sofico:
Zeno Cosini
02-02-2005, 20:40
esatto nico... è in /var/www/localhost/htdocs
cmq poco dopo aver postato misteriosamente ha iniziato a leggere il php, magari era rimasto in cache la vecchia pagina e non visualizzava la nuova interpretando il php...
cmq visto che siete stati così gentili ad intervenire ora ho una ltro problema:
sono sicuro che il database MySql ed il php funzionino, questo perchè per fare una prova ho installato un forum phpBB e funziona a meraviglia.
Ho installato phpmyadmin ma non ne vuole sapere si funzionare, inizialmente era a causa di un errore che ho scovato che mi promptava una maschera per il login, mentre ora il problema è un altro ma non riesco proprio a capire di cosa si tratti, google non mi è stato amico e in un'ora di ricerche nn ho risolto nulla...
ecco il file config.inc.php:
?php
/* $Id: config.inc.php,v 2.47 2004/11/03 13:45:25 garvinhicking Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
/**
* phpMyAdmin Configuration File
*
* All directives are explained in Documentation.html
*/
/**
* Sets the php error reporting - Please do not change this line!
*/
if (!isset($old_error_reporting)) {
error_reporting(E_ALL);
@ini_set('display_errors', '1');
}
}
/**
* Your phpMyAdmin url
*
* Complete the variable below with the full url ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*
* If the auto-detection code does work properly, you can set to TRUE the
*
* If the auto-detection code does work properly, you can set to TRUE the
* $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
*/
$cfg['PmaAbsoluteUri'] = 'http://Xbox/phpmyadmin/';
/**
* Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
* You should use this if and ONLY if the PmaAbsoluteUri auto-detection
* works perfectly.
*/
$cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
/**
* Disable the default warning that is displayed on the DB Details Structure pa$
* any of the required Tables for the relationfeatures could not be found
*/
$cfg['PmaNoRelation_DisableWarning'] = FALSE;
*/
$cfg['PmaNoRelation_DisableWarning'] = FALSE;
/**
* The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
* at least one server configuration uses 'cookie' auth_type, enter here a
* passphrase that will be used by blowfish.
*/
$cfg['blowfish_secret'] = '';
/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['$
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'Xbox'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank$
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - lea$
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL $
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension $
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol $
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have rea$
$cfg['Servers'][$i]['controlpass'] = '';
// access to the "mysql/use$
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method $
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'gentoox'; // MySQL password (o$
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in $
// It may also be an array $
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this ho$
$cfg['Servers'][$i]['pmadb'] = 'pmadb'; // Database used for Relati$
// (see scripts/create_tabl$
// - leave blank for no s$
// DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = 'PMA_bookmark';
// Bookmark table
// - leave blank for no b$
// DEFAULT: 'pma_bookma$
$cfg['Servers'][$i]['relation'] = 'PMA_relation';
// table to describe the re$
// - leave blank for no r$
// DEFAULT: 'pma_relati$
// - leave blank for no r$
// DEFAULT: 'pma_relati$
$cfg['Servers'][$i]['table_info'] = 'PMA_table_info';
// table to describe the di$
// - leave blank for no d$
// DEFAULT: 'pma_table_$
$cfg['Servers'][$i]['table_coords'] = 'PMA_table_coords';
// table to describe the ta$
// - leave blank for no P$
// DEFAULT: 'pma_table_$
$cfg['Servers'][$i]['pdf_pages'] = 'PMA_pdf_pages';
// table to describe pages $
// - leave blank if you d$
// DEFAULT: 'pma_pdf_pa$
$cfg['Servers'][$i]['column_info'] = 'PMA_column_info';
// table to store column in$
// - leave blank for no c$
// DEFAULT: 'pma_column$
$cfg['Servers'][$i]['history'] = 'PMA_history';
// DEFAULT: 'pma_column$
$cfg['Servers'][$i]['history'] = 'PMA_history';
// table to store SQL histo$
// - leave blank for no S$
// DEFAULT: 'pma_histor$
$cfg['Servers'][$i]['verbose_check'] = TRUE; // set to FALSE if you know$
// are up to date. This pre$
// checks and thereby incre$
$cfg['Servers'][$i]['AllowRoot'] = TRUE; // whether to allow root lo$
$cfg['Servers'][$i]['AllowDeny']['order'] // Host authentication orde$
= '';
$cfg['Servers'][$i]['AllowDeny']['rules'] // Host authentication rule$
= array();
$i++;
$cfg['Servers'][$i]['host'] = '';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['only_db'] = '';
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'
$cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'
$cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'
$cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'
$cfg['Servers'][$i]['history'] = ''; // 'pma_history'
$cfg['Servers'][$i]['verbose_check'] = TRUE;
$cfg['Servers'][$i]['AllowRoot'] = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
$cfg['Servers'][$i]['AllowRoot'] = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
= '';
$cfg['Servers'][$i]['AllowDeny']['rules']
= array();
$i++;
$cfg['Servers'][$i]['host'] = '';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['only_db'] = '';
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['pmadb'] = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['Servers'][$i]['bookmarktable'] = ''; // 'pma_bookmark'
$cfg['Servers'][$i]['relation'] = ''; // 'pma_relation'
$cfg['Servers'][$i]['table_info'] = ''; // 'pma_table_info'
$cfg['Servers'][$i]['table_coords'] = ''; // 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages'] = ''; // 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info'] = ''; // 'pma_column_info'
$cfg['Servers'][$i]['history'] = ''; // 'pma_history'
$cfg['Servers'][$i]['verbose_check'] = TRUE;
$cfg['Servers'][$i]['AllowRoot'] = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
= '';
$cfg['Servers'][$i]['AllowDeny']['rules']
= array();
// If you have more than one server configured, you can set $cfg['ServerDefault']
// to any one of them to autoconnect to that server when phpMyAdmin is started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfg['ServerDefault'] *MUST* be
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfg['ServerDefault'] *MUST* be
// set to that server.
$cfg['ServerDefault'] = 1; // Default server (0 = no default server)
$cfg['Server'] = '';
unset($cfg['Servers'][0]);
/**
* Other core phpMyAdmin settings
*/
$cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
$cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database
$cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)
$cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
// locked tables (since MySQL 3.23.30)
$cfg['ShowSQL'] = TRUE; // show SQL queries as run
$cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users
$cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'
$cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not
$cfg['LoginCookieValidity'] = 1800; // validity of cookie login (in seconds)
$cfg['UseDbSearch'] = TRUE; // whether to enable the "database search" feature
// or not
$cfg['IgnoreMultiSubmitErrors'] = FALSE; // if set to true, PMA continues computing multiple-statement queries
// even if one of the queries failed
$cfg['VerboseMultiSubmit'] = TRUE; // if set to true, PMA will show the affected rows of EACH statement on
// multiple-statement queries. See the read_dump.php file for hardcoded
// defaults on how many queries a statement may contain!
$cfg['AllowArbitraryServer'] = FALSE; // allow login to any user entered server in cookie based auth
// Left frame setup
$cfg['LeftFrameLight'] = TRUE; // use a select-based menu and display only the
// current tables in the left frame.
$cfg['LeftFrameTableSeparator']= '__'; // Which string will be used to generate table prefixes
// to split/nest tables into multiple categories
$cfg['LeftFrameTableLevel'] = '1'; // How many sublevels should be displayed when splitting
// up tables by the above Separator
$cfg['ShowTooltip'] = TRUE; // display table comment as tooltip in left frame
$cfg['ShowTooltipAliasDB'] = FALSE; // if ShowToolTip is enabled, this defines that table/db comments
$cfg['ShowTooltipAliasTB'] = FALSE; // are shown (in the left menu and db_details_structure) instead of
[...]eccetera eccetera
Zeno Cosini
02-02-2005, 21:25
Ho risolto. come sempre era una stupidaggine...
come host al posto di Xbox dovevo mettere localhost...:eek:
grazie a tutti cmq!
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.