Results 1 to 3 of 3

Thread: Accessing Wowza Log Files Via PHP

  1. #1

    Default Accessing Wowza Log Files Via PHP

    I'm trying to access the logs stored in "/usr/local/WowzaMediaServer-3.1.2/logs" using a PHP script so I can insert the info into a MySQL database and make things easier to sort through. I originally tried the method from this article, but that was causing Wowza to shut down and is apparently unreliable. Now using a PHP script, I'm receiving a "Permission denied" error when trying to access the log files using the file_get_contents() function since the files are owned by the wowza user. So, how can I change the user to apache or chmod the file so they can be read by PHP?

  2. #2

    Default

    Quote Originally Posted by vBadvanced View Post
    I'm trying to access the logs stored in "/usr/local/WowzaMediaServer-3.1.2/logs" using a PHP script so I can insert the info into a MySQL database and make things easier to sort through. I originally tried the method from this article, but that was causing Wowza to shut down and is apparently unreliable. Now using a PHP script, I'm receiving a "Permission denied" error when trying to access the log files using the file_get_contents() function since the files are owned by the wowza user. So, how can I change the user to apache or chmod the file so they can be read by PHP?

    I run the script as ROOT via cronjob once a day

  3. #3

    Default

    Hmmm... That might work if that's the only way and if running the cron job as root will let it access the logs. I was really hoping to be able to change the logs owner or permissions though so that the logs could be accessed at anytime to give real time stats.

Similar Threads

  1. Replies: 1
    Last Post: 02-18-2013, 01:57 PM
  2. Authentication for accessing private S3 files not working
    By amagee in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 14
    Last Post: 05-29-2012, 01:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •