|
|||
|
Buongiorno, ho sottoscritto l'abbonamento all'advanced plan per il sito www.autostorecenter.it ho caricato tutti i file del sito che funziona molto bene in locale (utilizzo easy-php) sul server e mi trovo errori di ogni tipo, sicuramente ci? ? dovuto al settaggio sbagliato di alcuni percorsi, vi presento il file common.php che contiene i principali settaggi del sito, vi sarei grato se mi diceste cosa devo cambiare...
<?php /////////////////////////////////////////////////// // common include file // you will have to set your preferences below... // please be careful with this file -- make a backup if you're at all worried // about screwing stuff up. $config = array(); global $config; /////////////////////////////////////////////////// // SITE INFORMATION // make sure this info is accurate $config['version'] = ''; //Do Not Modify // Your site's web address (don't forget the http://) - leave off the trailing slash $config['baseurl'] = 'http://localhost/autostorecenter'; // The actual location of openlistings on the machine -- leave off the trailing slash // Windows users need to use double slashes eg. c:\\www\\open-realty $config['basepath'] = 'C:\\Programmi\\EasyPHP\\www\\autostorecenter'; $config['admin_name'] = 'gianls'; // Your name -- all email will come from this name $config['admin_email'] = 'gianls@libero.it'; // all email which is sent from the site will come from this address $config['site_title'] = 'Autostorecenter '.$config['version']; // Site title $config['company_name'] = 'Autostorecenter'; // Company Name used on Legal Page. $config['company_location'] = 'Autostorecenter'; // Company Location for header. E.g. "of Susquehanna County, Pennsylvania" $config['company_logo'] = '/images/title.jpg'; //Location of company logo. /////////////////////////////////////////////////// // DATABASE TYPE // default is mysql -- make sure you edit this file // to make sure DB settings are correct! global $db_type; $db_type = 'mysql'; // possible choices are: access, ado, db2, ado_access, vfp, fbsql, ibase // firebird, borland_ibase, informix, mssql, mysql, mysqlt, maxsql, oci8 // oci8po, odbc, oracle, postgres, postgres7, sqlanywhere, sybase $db_user = 'root'; //database user $db_password = ''; //database password $db_database = 'openrealty'; //database definition file $db_server = 'localhost'; //database server -- usually localhost, but one never knows // The following is needed only if you are going to use the builtin mysql backup untility. // Not required for most functions in the backup utility. $phpmyadmin = 'http://127.0.0.1/mysql/index.php'; // Path to phpMyAdmin // The following needs to me set to no if your server does not allow you to create indexes. $config['manage_index_permissions'] = 'Yes'; /////////////////////////////////////////////////// // Table Prefix // this allows multiple sites to use the same database, change the value below to a unique // value for every site. Leave it as is for single site installs. $config['table_prefix'] = "default_"; /////////////////////////////////////////////////// // TEMPLATE DATA //$config[template_path] = $config[basepath].'/template/generic'; // leave off the trailing slashes //$config[template_url] = $config[baseurl].'/template/generic'; // leave off the trailing slashes $config['template_path'] = $config['basepath'].'/template/bluebevel_mod'; // leave off the trailing slashes $config['template_url'] = $config['baseurl'].'/template/bluebevel_mod'; // leave off the trailing slashes include($config['template_path'].'/style.php'); // style definitions /////////////////////////////////////////////////// //LANGUAGE FILE PATH -- USED FOR MULTI-LANGUAGE SUPPORT include($config['basepath'].'/include/language/italian.php'); /////////////////////////////////////////////////// // DISPLAY SETTINGS $config['listings_per_page'] = 10; //number of listings to show on one page: $config['add_linefeeds'] = 'yes'; // convert returns to line feeds? yes or no $config['strip_html'] = 'yes'; // Should HTML be stripped out of listings? yes or no $config['allowed_html_tags'] ='<a>[b][i]<u> '; // which html tags can a person input? $config['money_sign'] = ""; // default is dollars '$', but it could be "£" for pounds or "" for euros $config['show_no_photo'] = 'yes'; // if a listing doesn't have a photo, should it use the /images/nophoto.gif instead? $config['number_format_style'] = '2'; // support for international numbering format. See the documentation for details function money_formats ($number) { global $config; // formats prices correctly // defaults to $123, but other folks in other lands do it differently // uncomment the correct one $output = $number.$config['money_sign']; // usa, uk - $123,345 - $config['money_sign'].$number; // $output = $number.$config['money_sign']; // germany, spain -- 123.456,78 ? // $output = $config['money_sign'].' '.$number"; // honduras -- ? 123,456.78 return $output; } /////////////////////////////////////////////////// // UPLOAD SETTINGS $config['max_listings_uploads'] = 5; // max # of pics for a given listing $config['max_listings_upload_size'] = '100000'; // (in bytes) $config['max_listings_upload_width'] = 620; // max width (in pixels) $config['listings_upload_path'] = $config['basepath'].'/images/listing_photos'; // leave off the trailing slash $config['listings_view_images_path'] = $config['baseurl'].'/images/listing_photos'; $config['max_user_uploads'] = 1; // max # of pics for a given user $config['max_user_upload_size'] = '100000'; $config['max_user_upload_width'] = 620; // max width (in pixels) $config['user_upload_path'] = $config['basepath'].'/images/user_photos'; // leave off the trailing slash $config['user_view_images_path'] = $config['baseurl'].'/images/user_photos'; $config['allowed_upload_types'] = array('image/pjpeg','image/jpeg','image/gif','image/x-png'); // allowed file types $config['allowed_upload_extensions'] = array('jpg','gif','png'); //possible allowed file extensions $config['make_thumbnail'] = 'yes'; // use an external thumbnailing tool to resize images $config['thumbnail_width'] = '87'; // max width (in pixels) of thumbnails // This line is for GD Lib Image Support $config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_gd.php'; // path to the thumnailing tool $config['gdversion2'] = False; // This Sets what version of gdLibs you have installed Set to tru is you have GD >= 2.0 // These two lines are for ImageMagick Support //$config['path_to_thumbnailer'] = $config['basepath'].'/include/thumbnail_imagemagick.php'; // path to the thumnailing tool //$config['path_to_imagemagick'] = '/usr/X11R6/bin/convert'; // path to the convert tool, OPTIONAL! (Fill this only if you use ImageMagick) /////////////////////////////////////////////////// // LISTING EXPIRATION SETTINGS $config['use_expiration'] = 'yes'; // should the system use expiration? yes or no $config['days_until_listings_expire'] = '365'; // listings should be active for this number of days /////////////////////////////////////////////////// // USER SETTINGS $config['allow_user_signup'] = 'yes'; // can users sign up through the web site? yes or no $config['user_default_active'] = "yes"; // are new users active by default? yes or no $config['user_default_agent'] = "no"; // are new users agents by default? yes or no $config['user_default_admin'] = 'no'; // are new users admins by default? yes or no // I recommend that you leave the following entries marked "no"... unless there's a particular // reason you want new users to be able to do administrative tasks by default... $config['user_default_feature'] = 'no'; // can new users insert veicle in homepage by default? yes or no $config['user_default_moderate'] = 'no'; // can new users moderate listings by default? yes or no $config['user_default_logview'] = 'no'; // can new users view logs by default? yes or no $config['user_default_editForms'] = 'no'; // can new users edit forms by default? yes or no $config['user_default_canChangeExpirations'] = 'yes'; // can users change the expiration dates of their listings? yes or no /////////////////////////////////////////////////// // RENTAL SEARCH SETTINGS $config['rental_step'] = '20'; $config['max_rental_price'] = '100'; $config['min_rental_price'] = '2000'; /////////////////////////////////////////////////// // MODERATION SETTINGS $config['moderate_users'] = "no"; // should new users require moderator approval to be "active?" yes or no $config['moderate_listings'] = "no"; // should listings require moderator approval to be "live?" yes or no $config['email_notification_of_new_users'] = "yes"; // should the site admin receive an email notification if someone registers? yes or no $config['email_notification_of_new_listings'] = 'yes'; // should the site admin receive an email notification if someone adds a listing? yes or no /////////////////////////////////////////////////// // MISCELLENEOUS SETTINGS // you shouldn't have to mess with these things unless you rename a folder, etc... // main file location include($config['basepath'].'/include/main.php'); // this is the setup for the ADODB library include($config['basepath'].'/include/adodb/adodb.inc.php'); $conn = &ADONewConnection($db_type); $conn->PConnect($db_server, $db_user, $db_password, $db_database); // Meta setting // // impostazioni di default dei meta tag nella pagione del sito // $dynInfo['meta_title'] = " Auto Store Center - Il portale di compravendita automobili nuove, usate e km 0" ; $dynInfo['meta_description'] = " Auto Store Center - Il portale per comprare e vendere automobili e veicoli commerciali presenta la sua ampia offerta di auto nuove e usate nel suo grande database. Permette a tutti di vendere e cercare gratis i propri veicoli online"; $dynInfo['meta_keywords'] = " automobile, automobili, usate, automobili, autousata, autousate, automobili online, automobili nuove, auto nuova, auto nuove, auto usate, auto usato, auto usata, auto, auto di importazione, importazione auto, automobile usata, acquisto, auto usate, acquisto automobili usate, occasioni, car, cars, annunci, inserzioni, vendita auto, vendita automobili, usate, vendita automobile usata, auto km 0, auto km zero, listino auto usate, autosaloni, compravendita auto, macchine nuove, macchine usate, macchine, concessionarie automobili, concessionarie auto, concessionari automobili, portale, concessionari, veicolo elaborato, auto d'epoca, autoveicoli usati, autoveicolo usato, veicoli nuovi, listino automobili usate, veicoli usati, veicolo usato, database auto usate, automobili sportive, auto cabrio, mercato dell'auto, auto mercato, automercato, mercato auto usate, quotazioni automobili usate, audi, alfa romeo, bmw, chrysler, citroen, daihatsu, lancia, ferrari, fiat, ford, hyundai, jeep, honda, kia, opel, nissan, maserati, mercedes-benz, lamborghini, mazda, peugeot, renault, rover, saab, seat, skoda, subaru, suzuki, toyota, volvo, volkswagen " ; $dynInfo['meta_distribution'] = " Global " ; $dynInfo['meta_robots'] = " index, follow " ; $dynInfo['meta_rating'] = " General " ; $dynInfo['meta_revisit'] = " 15 days " ; ?> il programma non ? altro che una versione upgradata di openrealty un software opensource che nel vostro sito ? menzionato tra quelli che dovreste configurare automaticamente... inoltre cercando di settare il database con phpmyadmin dal vostro cpanel non sono riuscito (altra causa di malfunzionamenti) vorrei sapere come fare per importare il file, grazie |
|
|||
|
Ieri ho sottoscritto l'abbonamento al sito www.autostorecenter.it
mi hanno dato in attesa dell'attivazione del dominio uno spazio chiamato http://199.232.160.15/~autostor/ che tra qualche giorno registrato il dominio diventer? http://www.autostorecenter.it Ho caricato tutte le pagine sul server e naturalmente non funziona nulla.... 1. Sopra ho allegato il file common.php che contiene i settaggi principali del sito, appena hai tempo vedi se riesci a correggermi i percorsi in modo che possa metterlo su correttamente. 2. In pi? non riesco a capire come fare a importare il database di cui dispongo... io solitamente utilizzo in locale phpmyadmin ma quello del control panel ? diverso... 3. Caricando i file sul server con ws ftp le mi sono accorto che modificanco i chmod cambiavano tutti e non solo quelli dei quali variavo i premessi sapresti per caso dove sbaglio? come inizio non c'? male eh... se riuscite a datemi una mano... |
|
|||
|
Ciao,
devi cambiare questo dato: Citazione:
$config['basepath'] = '/home/tuousername/public_html/'; Citazione:
Per importare il Db esporti l'sql dal tuo Pc acceddi al Phpmyadmin sul server, clicchi su Sql e richiami il file |
|
|||
|
1. ma questa stringa non la devo cambiare?
$config['baseurl'] = 'http://localhost/autostorecenter'; 2. Per il database ci ho provato ad importarlo ed a suo dire ci ero anche riuscito ma in phpmyadmin non lo vedo come mi accade in locale, ho provato un po' dappertutto. 3. per i chmod come devo fare? |
|
|||
|
Si devi cambiarla con http://www.tuodominio.it
Per il Db mi dici cosa hai fatto? Per il chmod se usi un client Ftp selezioni i file, trovi il comando Chmod sul tuo client e dai il permesso di cui necessita il file Thx |
|
|||
|
1. ma devo mettere l'indirizzo del dominio anche se non ? ancora abilitato (al momento il mio spazio ? http://199.232.160.15/~autostor/)?
2. per il database ho aperto dal control panel phpmyadmin ed ho cliccato sul link in basso a sinistra fino si ? aperta una finestra con un pulsante sfoglia e sono andato ad inserire il file openrealty.sql del mio database, dopodiche mi ? apparso un messaggio che diceva che l'upgrade era stato eseguito ma io in phpmyadmin non vedo dove siano i 17 database che dovrebbero esserci... 3. i chmod li ho impostati con ws ftp le dopo aver trasferito i files, cliccando sui files con il tasto dx ed impostando i permessi 777 ma ho scoperto che mi ha cambiato i permessi di tutti i files trasferiti, probabilmente sbaglio qualcosa... |
|
|||
|
sono riuscito a pubblicare le pagine modificando gli indirizzi come mi hai suggerito, e sono anche riuscito a far prendere il database a phpmyadmin chiss? perch? ieri sera non riuscivo (?)
ora per? il databse non si connette al sito deve esserci ancora qualcosa che non v?.... potresti dargli un'occhiata... l'indirizzo ? il seguente: http://199.232.160.15/~autostor/index.php trovo anche un errore in alto che non so cosa riguardi.... |
|
|||
|
ho provato a modificare i parametri di connessione al db inserendo gli user e pw che mi avete dato voi:
$db_user = '******'; //database user $db_password = '*******'; //database password $db_database = 'autostor_'; //database definition file $db_server = 'localhost'; /database server -- usually localhost, but one never knows ma il sito funziona ancora meno di prima sai spiegarmi cosa ci devo scrivere in quei campi? |
|
|||
|
Non pu? pubblicare la sua password e username sul forum, cos? la rende pubblica a tutti! :cry:
ha creato il Db Mysql dal Cpanel? bene, deve usare i dati che trova in Cpanel-->Mysql, li trova username e psw che ha inserito lei al momento della creazione del db Notte |
![]() |
| Strumenti discussione | |
| Modalità visualizzazione | |
|
|
Discussioni simili
|
||||
| Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
| Problemi nella visualizzazione sito on-line | Janjius | Registrare / Trasferire un dominio | 1 | 18-08-2008 17.05.23 |
| Problemi visualizzazione sito &/o cartelle server remoto | 10leoni | Registrare / Trasferire un dominio | 2 | 21-02-2007 19.14.54 |
| settaggi chmod | gianls | PHP | 2 | 25-03-2004 13.17.20 |