Jump to content

Aphiso

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Aphiso

  1. I run Plesk Onyx for my hosting business. I was wondering if the current Plesk module on Blesta 4.0.1 supports Onyx as it only shows support up to version 11.5? I'm really wanting to use Blesta as I find it to be the best billing platform out there. However, this is the only thing that is currently holding me back from doing so unfortunately.

    So, if someone can provide me some information on if this module still functions correctly with Onyx or if there is a fix or downloadable module to get it to do so that would be awesome.

     

    Thanks in advance,

    Nolan

  2. Just now, Paul said:

    You would just change your cron job and edit the path to PHP. The standard path on most systems is /usr/bin/php. When a server has multi-PHP, the paths can vary. I'd suggest opening a ticket with Plesk or your server provider if you aren't sure what the path to PHP 7 or PHP 5.6 is. If you're web server is running PHP 7, then you'll want to use the CLI version of PHP 7 also so that it matches your ioncube files.

    Okay, I'm running 5.6.31 on my sites right now. Is there a command I can use in the CLI that would show the paths to my PHP versions?

  3. Just now, Paul said:

    Do you have multi-PHP? If you have multiple versions of PHP, perhaps a newer PHP version is accessible at a different path? Then you can update your cron to use the path to the right version of PHP.

    Yes, I actually have 5.3 disabled in multi-php. But I have 5.6.31 and 7.0 and 7.1 enabled.

    Not sure how to get the cron to run a different PHP version though. Nor, do I know how to find the path. I'm brand new to Plesk and just started running it about a week ago. Guess I'll do some Googling on this.

  4. 10 minutes ago, Aphiso said:

    Just ran php -i and it's showing version 5.3.3. How do I update this?


    I have a general idea on how to do it. But, I really don't want to break anything. Can you help point me in the right direction of properly upgrading the php version?

    Quote

    yum install yum-plugin-replace

    yum replace --enablerepo=webtatic-testing php-common --replace-with=php56w-common

    Thats the method I'm thinking of. Not sure how safe it is though. I'm running CentOS 6.

     

  5. I'm having a problem when trying to run the cron. I'm using Plesk Onyx. Here is the command I'm running:

    Quote

    php /var/www/vhosts/aphiso.io/httpdocs/abase/index.php cron

    I've tried this as well with the same results.

    /usr/bin/php /var/www/vhosts/aphiso.io/httpdocs/abase/index.php cron

    Here is the full error it's kicking back when trying to run the cron:

    Quote

    Task "/usr/bin/php /var/www/vhosts/aphiso.io/httpdocs/abase/index.php cron" completed with error in 0 seconds, output:

    PHP Parse error: syntax error, unexpected '[' in /var/www/vhosts/aphiso.io/httpdocs/abase/config/services.php on line 3

    And here is the content of the config/service.php file:

    <?php
    
    return [
        'Blesta\\Core\\ServiceProviders\\MinphpBridge',
        'Blesta\\Core\\ServiceProviders\\Pricing'
    ];

    No idea what the problem is here. If someone can point me in the right direction I'd really really appreciate it. When I run the cron manually through the Blesta interface it seems to be running perfectly fine.

  6. 1 hour ago, Blesta Addons said:

    Yes, you can , in coupon add, select type Amount instead of percent, and select " Apply when service is added only " .

     

    So then I would need to create separate coupons for each plan correct? Because the 'Amount' setting just specifies how much to subtract from an orders total.

    If I wanted it to charge the user $2 for the first month regardless of what plan they selected, is it possible to do with a single coupon code? Or would I just have to make different coupons for each plan?

  7. I'm having some redirection issues.

    I'm using the default .htaccess file that comes with Blesta. When I'm logged in as admin, the 'Home' button that links to (http://portal.aphiso.com/index.php/admin/) keeps kicking me back to the client section (http://portal.aphiso.com/).

    Anyone have an idea what could be causing this? Below is a copy of my htaccess just for reference.

    ########################################################
    # package:    minPHP
    # filename:   .htaccess
    ########################################################
    
    <Files ~ "\.(pdt)$">
       order deny,allow
       deny from all
    </Files>
    
    # Protect against Clickjacking
    #Header append X-Frame-Options "SAMEORIGIN"
    
    RewriteEngine on
    
    # Force HTTPS
    #RewriteCond %{HTTPS} !=on
    #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]
    
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php
    
    RewriteCond %{REQUEST_URI} ^(.*)/install.php$
    RewriteRule install.php %1/install/ [R=301,L]

     

  8. Hello, I was just wondering if it is possible to configure the coupons to charge a flat price? Say for instance I was running a shared hosting promo and wanted to charge $2 for the first month no matter what shared package is selected. Is it possible to configure it this way?

×
×
  • Create New...