LOW COST JAVA PHP MYSQL CGI PERL
HOSTING SERVICE
LINUX WINDOWS CPANEL WHM PLESK
HOSTING PACKAGES
ECOMMERCE HOSTING ASP JSP MSSQL
FRONTPAGE HOSTING
CPANEL WHM RESELLER DEDICATED
SERVER WEB HOSTING

Archive for PHP Web Hosting

What is eAccelerator

eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic content cache. It increases the performance of PHP scripts by caching them in their compiled state, so that the overhead of compiling is almost completely eliminated. It also optimizes scripts to speed up their execution. eAccelerator typically reduces server load and increases the speed of your PHP code by 1-10 times.

Comments (2) Bookmark on del.icio.us

SQL syntax error in phpMyAdmin while create table ?

If you are getting errors when you try to create a table like:

CREATE TABLE `foo` (
`bar` VARCHAR NOT NULL
)

And get a MySQL error:

MySQL said:
You have an error in your SQL syntax near ‘NOT NULL)’ at line 1

Then this probably means that you have forgotten to specify a length for the Varchar type
in the “Length/Values” column,which is a required field.

So, this is wrong:

CREATE TABLE bla (bla VARCHAR NOT NULL);

And this is correct:

CREATE TABLE bla (bla VARCHAR (25) NOT NULL);

Comments Bookmark on del.icio.us

For CGI/PERL script issues

1. Upload all CGI/Perl files in the ‘cgi-bin’ directory, which is in the ‘public_html’ directory.2. Check Permissions for “cgi-bin” directory. (It should be 755)

3. Check Permissions for all the cgi/perl files. (It should be 755)

4. Make sure that files are uploaded in ASCII format. If uploaded through
File Manager then there is no such issue of upload file format.

5. Check the PERL interpreter path. It should be !#/usr/bin/perl

6. Check the path of sendmail (if used). It should be /usr/sbin/sendmail

For PHP issue :

1. If page is not getting loaded, make sure that the include path is correct in clients code or may be he is using fsockopen() function, which can cause problems.

2. If the issue is with PHP-MySQL, then you can confirm the database name, username and password that client is using in his configuration file. You can confirm that info with the SQL database section in Control Panel.

Comments Bookmark on del.icio.us

Fast CGI

FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs. This standard was developed to address some shortcomings of the CGI protocol. The main improvement is that a single spawned process can process more than one request. There is an Apache module that implements the Fast CGI protocol and libraries for Tcl, Perl etc.

Comments Bookmark on del.icio.us

suPHP

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

It provides security, because the PHP scripts are not run with the rights of the webserver’s user. In addition to that you probably won’t have to use PHP’s “safe mode”, which applies many restrictions on the scripts.

suPHP can be used with Apache 1.3 & 2.0 module.

Comments Bookmark on del.icio.us

PHP file without .php extension

Add the following code in .htaccess file to run php files without .php extension.

AddHandler server-parsed .php

SetHandler application/x-httpd-php

AddHandler application/x-httpd-php .php

OR

RewriteEngine On
RewriteRule ^[^.]+$ - [T=application/x-httpd-php,L]

Comments Bookmark on del.icio.us

« Previous entries · Next entries »