bOmBeLq / Ponzi

Ponzi script for cryptocurrencies (eg. Bitcoin)
MIT License
20 stars 23 forks source link

Install problem #1

Closed odessky closed 8 years ago

odessky commented 9 years ago

Hi!

I was try install your script and got undexcepted problem: Writing lock file Generating autoload files Creating the "app/config/parameters.yml" file Some parameters are missing. Please provide them. database_driver (pdo_mysql): pdo_mysql database_host (127.0.0.1): localhost database_port (null): database_name (symfony): admin_po database_user (root): admin_po database_password (null): mailer_transport (smtp): mailer_host (127.0.0.1): mailer_user (null): mailer_password (null): locale (en): secret (ThisTokenIsNotSoSecretChangeIt): currency_short (btc): currency (bitcoin): rpc_user (null): bitcoinrpc rpc_password (null): rpc_host (null): localhost rpc_port (null): 8333 blockchain_tx_link (null): wallet_account_prefix (ponzi): admin_user (admin): admin_password (null): admin_ip (null): PHP Parse error: syntax error, unexpected '[' in /root/Ponzi/vendor/bml/coin-bundle/src/Bml/CoinBundle/DependencyInjection/BmlCoinExtension.php on line 31 Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception

[RuntimeException]
An error occurred when executing the "'cache:clear --no-warmup'" command.

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]

bOmBeLq commented 9 years ago

Hello, this is most likely too old PHP version. You need at least PHP 5.4 for the short arrays notation to work.

odessky commented 9 years ago

Hi I was upgrade php to 5.4, but get another error: malta1439:~/Ponzi# /usr/local/php5514/bin/php -dmemory_limit=1G app/console doctrine:database:create Could not create database for connection named admin_po An exception occurred while executing 'CREATE DATABASE admin_po':

SQLSTATE[HY000]: General error: 1007 Can't create database 'admin_po'; database exists malta1439:~/Ponzi#

My database and user with pass yet exists. Does I will skip this step?

bOmBeLq commented 9 years ago

You can skip it.

odessky commented 9 years ago

Ok, I will finished install it, but /admin is not accept password. Also If I open /, then got: Oops! An Error Occurred

The server returned a "404 Not Found".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

bOmBeLq commented 9 years ago

Make sure Your server is configured to meet symfon 2 needs. It has to point to web/app.php You may try to rename app.php to index.php and point the serwer to web/index.php. Also check nginx/apache logs. What server ur using? http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html

odessky commented 9 years ago

My server is configured for symfon2:


\ ATTENTION **

\ Mandatory requirements **

OK PHP version must be at least 5.3.3 (5.5.14 installed) OK PHP version must not be 5.3.16 as Symfony won't work properly with it OK Vendor libraries must be installed OK app/cache/ directory must be writable OK app/logs/ directory must be writable OK date.timezone setting must be set OK Configured default timezone "UTC" must be supported by your installation of PHP OK json_encode() must be available OK session_start() must be available OK ctype_alpha() must be available OK token_get_all() must be available OK simplexml_import_dom() must be available OK detect_unicode must be disabled in php.ini OK PCRE extension must be available

\ Optional recommendations **

OK Requirements file should be up-to-date OK You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions OK When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156 OK You should not use PHP 5.4.0 due to the PHP bug #61453 OK When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration) OK You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909 OK PCRE extension should be at least version 8.0 (8.34 installed) OK PHP-DOM and PHP-XML modules should be installed OK mb_strlen() should be available OK iconv() should be available OK utf8_decode() should be available OK posix_isatty() should be available OK intl extension should be available OK intl extension should be correctly configured OK intl ICU version should be at least 4+ WARNING a PHP accelerator should be installed Install and enable a PHP accelerator like APC (highly recommended).

OK short_open_tag should be disabled in php.ini OK magic_quotes_gpc should be disabled in php.ini OK register_globals should be disabled in php.ini OK session.auto_start should be disabled in php.ini OK PDO should be installed OK PDO should have some drivers installed (currently available: mysql, sqlite)

I don't need rename app.php to index.php, becouse rules in .htaccess do it correct.

There is no errors in apache logs, becouse this is not server related problem. There us logs from app/logs:

Prod: http://pastebin.com/WnU3eQqs Dev: http://pastebin.com/NrLKMx1w

Also when I can try open app_dev.php, I get: No access I was remove IP restrictions and open app_dev.php again. And I get this:

[1] Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No round started. at n/a in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 218

at Symfony\Bundle\FrameworkBundle\Controller\Controller->createNotFoundException('No round started.')
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/src/Bml/AppBundle/Controller/DefaultController.php line 176

at Bml\AppBundle\Controller\DefaultController->common(array('page' => 'index', 'round' => null))
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/src/Bml/AppBundle/Controller/DefaultController.php line 76

at Bml\AppBundle\Controller\DefaultController->indexAction(object(Request), null)
    in  line 

at call_user_func_array(array(object(DefaultController), 'indexAction'), array(object(Request), null))
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/app/bootstrap.php.cache line 3020

at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1')
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/app/bootstrap.php.cache line 2982

at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true)
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/app/bootstrap.php.cache line 3131

at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true)
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/app/bootstrap.php.cache line 2376

at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
    in /var/www/vhosts/bitcoinpresents.com/httpdocs/Ponzi/web/app_dev.php line 28

I'm use classic LAMP.

bOmBeLq commented 9 years ago

Try going to /app_dev.php/admin

odessky commented 9 years ago

Same thing: right password is not accepted. There is some logs: [2015-01-28 03:24:17] request.INFO: Matched route "admin" (parameters: "_controller": "bml.admin.controller:adminAction", "_route": "admin") [] [] [2015-01-28 03:24:17] security.INFO: Authentication exception occurred; redirecting to authentication entry point (A Token was not found in the SecurityContext.) [] [] [2015-01-28 03:24:17] security.DEBUG: Calling Authentication entry point [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.exception" to listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException". [] [] [2015-01-28 03:24:17] event.DEBUG: Listener "Symfony\Component\Security\Http\Firewall\ExceptionListener::onKernelException" stopped propagation of the event "kernel.exception". [] [] [2015-01-28 03:24:17] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelException" was not called for event "kernel.exception". [] [] [2015-01-28 03:24:17] event.DEBUG: Listener "Symfony\Component\HttpKernel\EventListener\ExceptionListener::onKernelException" was not called for event "kernel.exception". [] [] [2015-01-28 03:24:17] security.DEBUG: Write SecurityContext in the session [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\Security\Http\Firewall\ContextListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ResponseListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\Security\Http\RememberMe\ResponseListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\SaveSessionListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.response" to listener "Symfony\Component\HttpKernel\EventListener\StreamedResponseListener::onKernelResponse". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelFinishRequest". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelFinishRequest". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelFinishRequest". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.finish_request" to listener "Symfony\Component\Security\Http\Firewall::onKernelFinishRequest". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.terminate" to listener "Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onTerminate". [] [] [2015-01-28 03:24:17] event.DEBUG: Notified event "kernel.terminate" to listener "Symfony\Component\HttpKernel\EventListener\ProfilerListener::onKernelTerminate". [] []

odessky commented 9 years ago

Any updates?

bOmBeLq commented 9 years ago

I will try to look into the problem on weekend. Many other things on my head right now.

bOmBeLq commented 9 years ago

Sorry, didn't make it in weekend. I will look into the case until the end of this week.

odessky commented 9 years ago

Ok, I will wait for.

bOmBeLq commented 9 years ago

I've just tested it and it all works. Make sure You are using right password. Check app/config/parameters.yml What interests You right now is admin_user: admin admin_password: password admin_ip: null

also make sure You have set up right IP address (Your ip address - go to whatismyip.com to check) or set it to "null" to allow any address.

odessky commented 9 years ago

I was test it again I set this params in app/config/parameters.yml for test purpose: admin_user: admin admin_password: password admin_ip: null

When I try open http://bitcoinpresents.com/Ponzi/web/admin/ - password is not accepted. You may test it - try enter by my URL.

So, problem is not a config file. There is some bug in the code.

bOmBeLq commented 9 years ago

Try running app/console cache:clear and restarting php-fpm if ur using fpm.

bOmBeLq commented 9 years ago

app/console cache:clear -e prod app/console cache:clear -e dev

odessky commented 9 years ago

I did it:

bitcoinpr69@malta1439:~/httpdocs/Ponzi$ /usr/local/php5514/bin/php app/console cache:clear -e prod Clearing the cache for the prod environment with debug false bitcoinpr69@malta1439:~/httpdocs/Ponzi$ /usr/local/php5514/bin/php app/console cache:clear -e dev Clearing the cache for the dev environment with debug true bitcoinpr69@malta1439:~/httpdocs/Ponzi$

I have no php-fpm, it works under apache+php-cgi

Still can't logged in

bOmBeLq commented 9 years ago

Then I have no idea. It works for me and some other people reported it working.

odessky commented 9 years ago

May be you may help me disable auth for get admin page without enter password? I can protect it using .htaccess

bOmBeLq commented 9 years ago

In that case try editing app/config/security.yml

and removing lines

secured_area:
        pattern:    ^/admin/
        http_basic:
          realm: "SAdmin panel"

access_control:
  - { path: ^/admin/, roles: ROLE_ADMIN }`
robinpoker commented 9 years ago

if you can install an utnuk me this script? I have cpanel and hosting

odessky commented 9 years ago

Yes, I can. You may order me here: https://www.freelancer.com/u/odessky.html

robinpoker commented 9 years ago

I want you to install your ponzi script and fully functional .. so how do I get started?

 On Wednesday, 20 May 2015, 14:41, odessky <notifications@github.com> wrote:

Yes, I can. You may order me here: https://www.freelancer.com/u/odessky.html— Reply to this email directly or view it on GitHub.

bOmBeLq commented 9 years ago

@robinpoker https://github.com/bOmBeLq/Ponzi/blob/master/README.md

robinpoker commented 9 years ago

where I could send data hosting my username and password. help you install the script for me

 On Wednesday, 20 May 2015, 16:48, bOmBeLq <notifications@github.com> wrote:

@robinpoker https://github.com/bOmBeLq/Ponzi/blob/master/README.md— Reply to this email directly or view it on GitHub.

dauryfernando commented 8 years ago

I have no idea how to make this work , you could make a video installing the script for your help donare

bOmBeLq commented 8 years ago

Sorry buty as I said: You need some php (symfony 2) skills to set this up.If you can't run this by yourself perhaps search for some freelancer. I am very busy and can't spare any more time for this project.