• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Recent content by vitorcosta@puzzledeci

  1. V

    Resolved CronJobs - Error on mysqli_connect

    Solved! Don't know how or why, but the cron did not like to start with the config file! So, I added the connection to the cron script, and it works fine now! thanks for the help!
  2. V

    Resolved CronJobs - Error on mysqli_connect

    it does not return anything... Still only this: "Task "/var/www/vhosts/lojaweb.pt/dev.lojaweb.pt/lojapd/system/crons/getpayments.php" completed with error in 0 seconds." you can try yourself! https://lojaweb.pt/crons/getpayments The PHP is Working, it make a connection with database to...
  3. V

    Resolved CronJobs - Error on mysqli_connect

    I commented all code, and tried line by line, it crashed on "mysqli_connect()"
  4. V

    Resolved CronJobs - Error on mysqli_connect

    No message, just this info: "Task "/var/www/vhosts/lojaweb.pt/dev.lojaweb.pt/lojapd/system/crons/getpayments.php" completed with error in 0 seconds." there is any log that I can check what error came up?
  5. V

    Resolved CronJobs - Error on mysqli_connect

    Thats the thing... when I run the code by URL, it works, but by cron job it fails! define('DB_SERVER', 'localhost'); define('DB_USERNAME', '********'); define('DB_PASSWORD', '**********'); define('DB_DATABASE', 'lojaweb_astra'); $db = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD...
  6. V

    Resolved CronJobs - Error on mysqli_connect

    thanks for the reply Yes! it is.. in fact the website is working perfectly!
  7. V

    Resolved CronJobs - Error on mysqli_connect

    Hi there, I'm having a big trouble trying to run a php script with the command mysqli_connect(), it always return error (doesn't say what error), i debugged and the mysqli_connect does not work. What should I do to make this work? thanks
Back
Top