Visualizzazione risultati 1 fino 21 di 21

Discussione: Status.net

  1. #1
    Guest

    Predefinito Status.net

    Sto cercando di installare questo script, che alla versione 9.0 gira bene su AV. Ma passando alla 1.1 mi trovo davanti l'ostacolo del getmypid() disabilitato per ragioni di sicurezza. Ho cercato per il forum ed ho trovato una soluzione che dovrebbe disabilitare il messaggio di errore, anteponendo @ a getmypid(). E ci siamo, ma l'installazione non va ugualmente a buon fine, vengono create le tabelle, senza nessuna configurazione e senza l'utente admin, e non viene creato il config.php. E rimane l'odiosa scritta DB Error: unknown error
    Questa è la parte di codice di util.php che menziona il getmypid()
    Codice:
    {
        $pid = @getmypid();
        $server = common_config('site', 'server');
        if (php_sapi_name() == 'cli') {
            $script = basename($_SERVER['PHP_SELF']);
            return "$server:$script:$pid";
        } else {
            static $req_id = null;
            if (!isset($req_id)) {
                $req_id = substr(md5(mt_rand()), 0, 8);
            }
            if (isset($_SERVER['REQUEST_URI'])) {
                $url = $_SERVER['REQUEST_URI'];
            }
            $method = $_SERVER['REQUEST_METHOD'];
            return "$server:$pid.$req_id $method $url";
        }
    }
    Premetto che non sono una cima in mysql, ma la domanda e: potrò usare l'aggiornamento o rimarrò alla 9.0?
    Grazie a tutti

  2. #2
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Al posto della chiocciola puoi sostituire proprio la riga con, per esempio:

    Codice:
    $pid = 1;
    Però nel codice che riporti non c'è nulla di utile per stabilire cosa non va. L'unico errore che ti viene riportato è quello?


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  3. #3
    Guest

    Predefinito

    Ho provato in questo momento a fare l'installazione con la modifica
    Codice:
    $pid = 1;
    è evidente che è stato rimosso l'errore dato dal
    Codice:
    getmypid();
    ma ora ho questo messaggio:
    Page notice
    Initializing...
    Starting installation...
    Checking database...
    Creating database tables...
    Database error: DB Error: unknown error

    Se creo un config.php e gli inserisco:
    Codice:
    $config['site']['logdebug'] = true;
    si può risalire all'errore?

    Grazie a tutti

  4. #4
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Citazione Originalmente inviato da ashtag Visualizza messaggio
    Se creo un config.php e gli inserisco:
    Codice:
    $config['site']['logdebug'] = true;
    si può risalire all'errore?
    Potrebbe. Fai un tentativo. Sicuramente l'unknown error non ci è di molto aiuto per capire di cosa si tratta.


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  5. #5
    Guest

    Predefinito

    Sembra essere più complicato di quel che temevo...
    con un file config.php non mi fa procedere, poichè mi informa che il config esiste già.
    Ed effettivamente non sò come procedere, ora l'unica cosa che voglio vedere, è di fatto quali sono i requisiti specifici di questa versione.
    Ti farò sapere presto saitfainder Grazie.

  6. #6
    Guest

    Predefinito

    Questo è quello che dice il readme.file

    The following software packages are *required* for this software to
    run correctly.

    - PHP 5.2.3+. It may be possible to run this software on earlier
    versions of PHP, but many of the functions used are only available
    in PHP 5.2 or above. 5.2.6 or later is needed for XMPP background
    daemons on 64-bit platforms. PHP 5.3.x should work correctly in this
    release, but problems with some plugins are possible.
    - MySQL 5.x. The StatusNet database is stored, by default, in a MySQL
    server. It has been primarily tested on 5.x servers, although it may
    be possible to install on earlier (or later!) versions. The server
    *must* support the MyISAM storage engine -- the default for most
    MySQL servers -- *and* the InnoDB storage engine.
    - A Web server. Preferably, you should have Apache 2.2.x with the
    mod_rewrite extension installed and enabled.

    Your PHP installation must include the following PHP extensions:

    - Curl. This is for fetching files by HTTP.
    - XMLWriter. This is for formatting XML and HTML output.
    - MySQL. For accessing the database.
    - GD. For scaling down avatar images.
    - mbstring. For handling Unicode (UTF-8) encoded strings.
    - gettext. For multiple languages. Default on many PHP installs.

    For some functionality, you will also need the following extensions:

    - Memcache. A client for the memcached server, which caches database
    information in volatile memory. This is important for adequate
    performance on high-traffic sites. You will also need a memcached
    server to store the data in.
    - Mailparse. Efficient parsing of email requires this extension.
    Submission by email or SMS-over-email uses this extension.
    - Sphinx Search. A client for the sphinx server, an alternative
    to MySQL or Postgresql fulltext search. You will also need a
    Sphinx server to serve the search queries.
    - bcmath or gmp. For Salmon signatures (part of OStatus). Needed
    if you have OStatus configured.

    You will almost definitely get 2-3 times better performance from your
    site if you install a PHP bytecode cache/accelerator. Some well-known
    examples are: eaccelerator, Turck mmcache, xcache, apc. Zend Optimizer
    is a proprietary accelerator installed on some hosting sites.

    External libraries
    ------------------

    A number of external PHP libraries are used to provide basic
    functionality and optional functionality for your system. For your
    convenience, they are available in the "extlib" directory of this
    package, and you do not have to download and install them. However,
    you may want to keep them up-to-date with the latest upstream version,
    and the URLs are listed here for your convenience.

    - DB_DataObject http://pear.php.net/package/DB_DataObject
    - Validate http://pear.php.net/package/Validate
    - OpenID from OpenIDEnabled (not the PEAR version!). We decided
    to use the openidenabled.com version since it's more widely
    implemented, and seems to be better supported.
    http://openidenabled.com/php-openid/
    - PEAR DB. Although this is an older data access system (new
    packages should probably use PHP DBO), the OpenID libraries
    depend on PEAR DB so we use it here, too. DB_DataObject can
    also use PEAR MDB2, which may give you better performance
    but won't work with OpenID.
    http://pear.php.net/package/DB
    - OAuth.php from http://oauth.googlecode.com/svn/code/php/
    - markdown.php from http://michelf.com/projects/php-markdown/
    - PEAR Mail, for sending out mail notifications
    http://pear.php.net/package/Mail
    - PEAR Net_SMTP, if you use the SMTP factory for notifications
    http://pear.php.net/package/Net_SMTP
    - PEAR Net_Socket, if you use the SMTP factory for notifications
    http://pear.php.net/package/Net_Socket
    - XMPPHP, the follow-up to Class.Jabber.php. Probably the best XMPP
    library available for PHP. http://xmpphp.googlecode.com/. Note that
    as of this writing the version of this library that is available in
    the extlib directory is *significantly different* from the upstream
    version (patches have been submitted). Upgrading to the upstream
    version may render your StatusNet site unable to send or receive XMPP
    messages.
    - Facebook library. Used for the Facebook application.
    - PEAR Services_oEmbed. Used for some multimedia integration.
    - PEAR HTTP_Request is an oEmbed dependency.
    - PEAR Validate is an oEmbed dependency.
    - PEAR Net_URL2 is an oEmbed dependency.
    - Console_GetOpt for parsing command-line options.
    - libomb. a library for implementing OpenMicroBlogging 0.1, the
    predecessor to OStatus.
    - HTTP_Request2, a library for making HTTP requests.

  7. #7
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Ho provato adesso un'installazione della versione 1.1.0 e non ho avuto nessunissimo problema e sembra funzionare senza problemi. Tu hai fatto un aggiornamento?


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  8. #8
    Guest

    Predefinito

    Accidenti.
    No il mio non è un upgrade dalla 0.9, quella è su un'altro sito sempre AV. Questa è una nuova installazione. Sono sconcertato, anzi ora i dubbi aumentano, hai per caso settato qualche parametro particolare nel file .htaccess ?
    Grazie

  9. #9
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    No, assolutamente nulla. Ho solo compilato il modulo d'installazione col nome da assegnare, i dati del database e l'account di amministratore.


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  10. #10
    Guest

    Predefinito

    ...non ho parole.
    Provo ad installarlo senza .htaccess e senza fare nulla.. hai visto mai.

    Grazie ancora.

  11. #11
    Guest

    Predefinito

    Niente.
    Database error: DB Error: unknown error
    Ma tu hai qualche permesso di scrittura in più su mysql e php?
    Credo sia opportuno chiarire che il mio è un free hosting, è possibile che non abbia i requisiti necessari?

    Grazie.

  12. #12
    Guest

    Predefinito

    E' sconcertante il fatto che dopo più di mille letture, tanti ragazzi in gamba (certamente più di me) non si trovi il sistema di installare questo script.
    Nessun consiglio?
    Grazie a tutti

  13. #13
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Ma siamo sicuri che metti i dati corretti per la connessione al database? Mi fai uno screenshot di quello che inserisci?


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  14. #14
    Guest

    Predefinito



    E poi chiaramente i dati di admin ecc ecc.

    Cioè mi sembra una cosa semplice, a meno che non vi sia qualche gabula che non capisco, ma non credo...

    Grazie ancora

  15. #15
    Guest

    Predefinito

    Abbandonerò l'idea.
    Peccato, sarebbe se non altro, stato un'aiuto per chi voleva intraprendere questa installazione.
    Ringrazio saitfainder per la pazienza e cortesia, per tutti gli altri...spero che abbiano fatto una buona lettura, viste le visite.

    Grazie ancora.

  16. #16
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Come detto ho provato personalmente e non ho avuto il minimo problema, quindi non vedo perché non dovresti riuscire. Se non vuoi dire cosa inserisci esattamente non è possibile dire altro.


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  17. #17
    Guest

    Predefinito

    Citazione Originalmente inviato da saitfainder Visualizza messaggio
    Se non vuoi dire cosa inserisci esattamente non è possibile dire altro.
    Cos'altro vuoi che ti dica, ti ha postato l'img dell'installazione....

    Come secondo post va meglio?!!!

  18. #18
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Citazione Originalmente inviato da tagcloud Visualizza messaggio
    Cos'altro vuoi che ti dica, ti ha postato l'img dell'installazione....
    Dove?


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  19. #19
    L'avatar di dargoole
    dargoole non è connesso Utente attivo
    Data registrazione
    14-05-2012
    Messaggi
    275

    Predefinito

    al 14° post c'è un img, ma essendo nel suo hosting di altervista chiaramente noi non riusciamo a vederla =/
    Ultima modifica di dargoole : 16-05-2013 alle ore 11.12.26
    Dargoole Video

  20. #20
    L'avatar di saitfainder
    saitfainder non è connesso Sëniör Stäff
    Data registrazione
    06-12-2002
    Residenza
    Torino
    Messaggi
    8,715

    Predefinito

    Il mio favoloso browser non mi mostrava l'immagine mancante. Scusate. Comunque al momento l'immagine proprio non esiste.


    «È una mia peculiarità distorcere la verità e inventarne di nuove.»
    «I tuoi orientamenti hanno su di me un effetto prossimo allo zero.»


  21. #21
    Guest

    Predefinito

    Cmq sia, credo si tratti di un'errore di scrittura delle chiavi troppo lunghe sul db.

    Prova a cambiare i valori in: Classes/User_im_prefs.php da 255 a 100:

    'primary key' => array('user_id', 'transport(100)'),
    'unique keys' => array(
    'transport_screenname_key' => array('transport(100)', 'screenname(100)'),
    ),


    Secondo, cambia il valore al file plugins/OpenID/OpenIDPlugin.php

    Da
    'primary key' => array(array('server_url', 100), 'handle'),

    A
    'primary key' => array(array('server_url', 100), 'handle(100)'),

    Ho provato ad accedere ad ashtag.altervista.org ma credo abbia cancellato tutto, c'è l'immagine standard.

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •