Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-13-2012, 06:16 PM   PM User | #391
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Hello, I have a strange problem. Everything works okay, but some times, the site stop working and when i restart apache and mysql server, it's okay again. I am using ubuntu 12.04. Where can be the problem, and where can I find log files about the problems.

Thanks !
atanas is offline   Reply With Quote
Old 07-13-2012, 06:45 PM   PM User | #392
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
but some times, the site stop working and when i restart apache and mysql server, it's okay again.
Can you elaborate on what "stop working" means?

Check your PHP/Apache error log and FFmpeg log files. But if the unaltered code is working for everyone else, then it's likely an issue with your server.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-14-2012, 10:36 PM   PM User | #393
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
I am thinking that apache server stop work. I have only remote access and I don't know where can find the log files. Ffmpeg works fine, but i think that apache stop works. Where is the log file of apache ?
atanas is offline   Reply With Quote
Old 07-15-2012, 12:16 AM   PM User | #394
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
I am thinking that apache server stop work. I have only remote access and I don't know where can find the log files. Ffmpeg works fine, but i think that apache stop works. Where is the log file of apache ?
In Ubuntu 11.10, the apache log files are as follows:

Code:
/var/log/apache2/error.log
/var/log/apache2/access.log
I would guess that they're located in the same place for Ubuntu 12.04...

With remote access to the server, you should be able to connect to the remote file system using Filezilla via a SSH/SFTP connection, generally on port 2222. Then you can avoid using the command line interface to access the log files.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-15-2012, 03:21 AM   PM User | #395
bbrog
New Coder

 
Join Date: Jun 2012
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
bbrog is an unknown quantity at this point
hey just one question when downloading music why is the quality distorted? you can really hear it when the bass kicks in.
bbrog is offline   Reply With Quote
Old 07-15-2012, 11:11 AM   PM User | #396
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by bbrog View Post
hey just one question when downloading music why is the quality distorted? you can really hear it when the bass kicks in.
I don't have that problem. Maybe there is something wrong with your speakers.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-15-2012, 02:25 PM   PM User | #397
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
I access my ubntu vie putty and i don't have a problem, but when i try to connect vie filezilla with SSH connection on port 2222 i reiceive this message:

Network error: Connection refused

When i connect to server on port 22 i have access on other folders. I try to configure vsftpd but after update on 12.04 it stop work and I can't correct it. Any idea ?
atanas is offline   Reply With Quote
Old 07-15-2012, 05:30 PM   PM User | #398
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
I access my ubntu vie putty and i don't have a problem, but when i try to connect vie filezilla with SSH connection on port 2222 i reiceive this message:

Network error: Connection refused

When i connect to server on port 22 i have access on other folders. I try to configure vsftpd but after update on 12.04 it stop work and I can't correct it. Any idea ?
In Filezilla, try:

Host: server IP address
Port: 2222
Protocol: SFTP-SSH
Login type: normal
User: root user
Password: password of root user

That should work. If it doesn't, contact your hosting provider.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-16-2012, 05:24 PM   PM User | #399
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Hello. I try it again, but Network error: Connection refused. I host the site on my own ubuntu server.
atanas is offline   Reply With Quote
Old 07-16-2012, 06:33 PM   PM User | #400
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
Hello. I try it again, but Network error: Connection refused. I host the site on my own ubuntu server.
If you host the site on your own server, then don't you have direct access to the server file system via Ubuntu GUI?
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-19-2012, 06:03 PM   PM User | #401
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
I try, but without success. I read this http://ubuntuforums.org/showthread.php?t=1471247 and this: http://ubuntuforums.org/showthread.php?t=1084595 , but still i can't access my files.
atanas is offline   Reply With Quote
Old 07-20-2012, 02:51 AM   PM User | #402
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by atanas View Post
I try, but without success. I read this http://ubuntuforums.org/showthread.php?t=1471247 and this: http://ubuntuforums.org/showthread.php?t=1084595 , but still i can't access my files.
For some reason I thought you might have local access to your server. If you have to establish remote access to the server file system, then FileZilla using SFTP/SSH connection is really the easiest way. You could install the Teamviewer service on Linux, but I've never tried that before, and it's really overkill if all you need is access to the remote file system.

If I were you, I would try to figure out why FileZilla isn't working for me. Maybe SSH/SFTP is configured to run on a port other than 2222? Maybe you entered the wrong root username and/or password?

Clearly SSH is working on your server. What port number do you enter into Putty? Try entering that same port number into Filezilla.

If SSH is working via Putty, then it seems like your FileZilla connection is somehow not set up correctly.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 07-20-2012, 04:31 PM   PM User | #403
atanas
New Coder

 
Join Date: Jan 2012
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
atanas is an unknown quantity at this point
Correct. I insert the same username password and port (22) in filezille and all is okay. Now I am downloading the log files to see from where come the problems. Thanks !
atanas is offline   Reply With Quote
Old 07-21-2012, 08:50 AM   PM User | #404
Nikey646
New Coder

 
Join Date: May 2012
Posts: 31
Thanks: 0
Thanked 7 Times in 7 Posts
Nikey646 is an unknown quantity at this point
the files are no longer downloading for me on the free version posted here: http://www.codingforums.com/showpost...&postcount=153 with the ffmpeg posted their

Logs:
Code:
FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jan 18 2011 04:07:05 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --enable-w32threads --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 1 /  0.16. 1
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.93. 0 / 52.93. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.74. 0 /  1.74. 0
  libswscale     0.12. 0 /  0.12. 0
videos/1342856867_500a5ea3425531.60843462.flv: Invalid data found when processing input

Last edited by Nikey646; 07-21-2012 at 08:53 AM..
Nikey646 is offline   Reply With Quote
Old 07-21-2012, 12:46 PM   PM User | #405
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Nikey646 View Post
the files are no longer downloading for me on the free version posted here: http://www.codingforums.com/showpost...&postcount=153 with the ffmpeg posted their
I'm not having that problem.

Are you using the ffmpeg.exe file that I provided? Are you using a Windows OS? XAMPP?

Can you post the URLs of any videos that are not converting for you?

Are you able to play the video at "videos/1342856867_500a5ea3425531.60843462.flv"? If you can't play the video, then either the file is corrupt or cURL is not downloading the video correctly.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)

Last edited by chump2877; 07-21-2012 at 12:52 PM..
chump2877 is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, class, conversion, dailymotion, ffmpeg, mp3, php, script, video, youtube

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:57 PM.


Advertisement
Log in to turn off these ads.