Welcome to UltratechHost Forum, Guest. Please take the time to register if you haven't, or click

Tags
Author: UltratechHost - Replies: 0 - Views: 4519
How To Install cURL in Linux Server Or in PHP
HOWTO Install cURL in Linux

Well, now most of the Hosting Companies provide cURL installed on their Servers. But unfortunately, if your server/vps doesn't have cURL installed, then you'll have to do it manually.

There are basically two methods to get cURL working on your Server.

First, you can enable cURL using EasyApache Script from cPanel/WHM

If this is not possible, then you must install cURL manually.

cURL Installation:

Login as root to your SSH Terminal.
Now, type the fol
Author: UltratechHost - Replies: 0 - Views: 3777
How can I secure PHP through WHM
There is a global confiuration editor for php on WHM. Please follow these procedures to secure PHP on your server.

Code: Select all
1. Log on to your WHM as root.
2. Go to "Service Configuration" section.
3. Click on "PHP Configuration Editor".
4. You can configure various php security and performance tweaks there.



Most of the tweak options are explained in your WHM itself. The performance related tweaks should be done depending upon the server type. If you have many users running
Author: UltratechHost - Replies: 0 - Views: 3261
How to send Email using PHP script
PHP Script to send an Email:
One can use the following PHP script for sending an E-mail.


PHP Code:
<?php
$to 
"recipient@example.com";
$subject "Hi!";
$body "Hi,\n\nHow are you?";
if (
mail($to$subject$body)) {
echo(
"<p>Message successfully sent!</p>");
} else {
echo(
"<p>Message delivery failed...</p>");
}
?>
Author: UltratechHost - Replies: 0 - Views: 4588
How To Install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
Hello,

Following are the steps to install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog on a Linux server or VPS Hosting Manually. There are many automated scripts available which install these but its better to do it manually as in case of an error occuring during the installation process, we can stop the installation and fix them. These steps also include the common fixes for such errors.

[code]cd /usr/local/src/

DOWNLOAD MODULES

wget www3.mplayerhq
Author: UltratechHost - Replies: 0 - Views: 9261
How to Install and configure FFmpeg and FFpeg-Php
[Image: http://servertune.com/images/ffmpeg.png] is a complete solution to record, convert and stream audio and video segments. It includes libavcodec, the leading audio/video codec library.

NOTES:

* This guide had been used effectively on several Web production servers with CentOS v5.x and Red Hat v4/5, however there are some which might not be compatible. Moreover, this guide will install an OLD version of FFmpeg and FFmpeg-Php. To install the most recent and up-to-date versions o
Author: UltratechHost - Replies: 0 - Views: 4157
HowTo: Tweak php for maximum execution time for scripts
Php by default places resource limits on all php scripts using 3 directives:

* max_execution_time : Maximum execution time of each script, in seconds (default 30 sec)
* max_input_time : Maximum amount of time each script may spend parsing request data (60 )
* memory_limit : Maximum amount of memory a script may consume (default 8MB)

A php script might timed out because of resource limits. All you need to do is setup a new resource limits so that script will get executed.
Edi
Author: UltratechHost - Replies: 0 - Views: 4291
Php scripts returning errors when using: php_flag and php_value
Symptom

You have added php_flag and/or php_value directives in your .htaccess file and your Php scripts used to work just fine. Now, your scripts do not work, what's the problem? Looking into your log /usr/local/apache/error_log file, you see the following errors:

Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration
OR
Invalid command 'php_value, perhaps mis-spelled or defined by a module not included in the server co
Author: UltratechHost - Replies: 0 - Views: 6608
Invalid command 'php_admin_flag' error upon Apache start
If you are getting the following error when you are trying to start Apache:

Code:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

Then you most likely have a misconfiguraiton in the php configuration file and the options.conf file.

To fix this, run the following as root:

Code:
./build all d
./build rewrite_confs

That should fix your issue.
Author: UltratechHost - Replies: 0 - Views: 5664
How To Install FFmpeg, Mplayer, Mencoder, FFmpeg-PHP on CentOS 5.x
In this how to i will describe how to install ffmpeg, mplayer, mencoder, flvtool2, ffmpeg-php with all supported codecs to convert / manipulate videos easily on CentOS 5.x. If you want to run sites like youtube e.g http://www.indianpad.in, http://www.danceindiadance.in this howto will help you to install the base for your software. There are many other way to perform this but this works for me, so i want to share.1 Setting Up RPMForge Respository.

RPMForge repository (http://dag.wieers.com) is the biggest
Author: UltratechHost - Replies: 0 - Views: 6833
How To Install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder
Following are the steps to install FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog on a Linux server or VPS Hosting Manually. There are many automated scripts available which install these but its better to do it manually as in case of an error occuring during the installation process, we can stop the installation and fix them. These steps also include the common fixes for such errors.

1. Change the directory to
Code:
cd /usr/local/src/

[b]2. D