Infotx

Hosting with Advanced Scripting.

Advanced Scripting

 

I cannot make an outbound connection from my script.

 

Many shared ip addresses only allow outbound connection on ports 80(http), 443(https), 25/26(smtp), and 110(pop3). If you need to use a port other than these, you would need a dedicated ip.

 

 

Can I compile my code programmed in C?

 

You can usually use the 'gcc' compiler to do this.

 

 

How do I change file permissions?

 

Setting file permissions is very important in getting CGI scripts to work on your web site. Follow the below step to understand file permissions.

To begin:

Pages should be readable/writable by the owner and readable by the web visitor.

Scripts should be readable/writable/executable by the owner and readable/executable by the web visitor.

The following are abbreviations for permissions:

--- (or 0) = no permission
r-- (or 4) = read-only permission
rw- (or 6) = read/write permission
r-x (or 5) = read/execute permission
rwx (or 7) = read/write/execute permission


Sometimes you'll see these numbers referenced for a script. For instance, "chmod your script to "755" or "777". That means "set file permissions to "Read-Write-Execute/Read-Execute/Read-Execute". "755" is in fact the most common setting for CGI/Perl scripts - if your script does not work or you get an "Internal Server Error" when you run it try this first.

To change file permissions using your FTP software:

Log into your account and go to the directory where the files are located. Highlight the file that you want to change permission. Locate the "file permission" or "chmod" command on your FTP software software (if you are using ws_ftp, highlight the file, right click and choose "chmod"). There should be three groups. Each group should have either checkboxes or a selection for the permission type.

Set pages to rw- for the owner, no permission for the group, and r--for other.

Set scripts to rwx for the owner, r-x group, and r-x for other

 

 

Do many hosting companies support FFMPEG?

 

Most Hosting companies do not support the FFMPEG module as it is too processor intensive.

 

 

What is the absolute path to my site?

 

The path to your site on the server would be:

/home/username/

Where "username" would be your username assigned when you signed up with.

 

 

How to enable pdo_mysql?

 

First see whether pdo_mysql.so is already installed on your server...

$ ls /usr/lib/php/extensions/no-debug-non-zts-*
pdo.so pdo_mysql.so

If you don't see the above, submit a ticket and we'll install it on your server. If you do see the above, continue below.

In your php.ini file, add the following two lines...

extension = pdo.so
extension = pdo_mysql.so

...and you need to edit the extension_dir to include its location...

extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613/"

You can confirm successful installation via a phpinfo page. If you don't have one, create a file called phpinfo.php and put the following in it...

<? phpinfo(); ?>

Browse to the file online and check for pdo_mysql.

 

If you require PDO_MYSQL on the server.

 

If you require PDO_MYSQL chances are its already install on your server. All you need to do to get it running is make sure that the following is setup in your php.ini file.

First you should try under the PHP CONFIG icon to install the MASTER PHP.ini file into your public_html folder. You will have to rename the master file that gets copied into your public_html folder to php.ini.

To add to your exisiting php.ini file these are the lines that are required:

You should add "extension=pdo.so" to php.ini
You should add "extension=pdo_mysql.so" to php.ini

If adding your own line does not work try using the master file.