Tag: PHP

Easyapache 4564

by admin on Feb.05, 2012, under News

Enhancements:
Updated sqlite to 3.6.7
Make sure selecting PHP’s GD option implies that the Zlib option is enabled

Leave a Comment :, , , more...

Introduction to Web Hosting

by admin on Jan.30, 2012, under Tutorial

How your site works

Your web site is made up of a group of files and directories, much like your Documents folder on your home computer. Only in this case, everyone in the world can see some of your files. To give you an idea of how the directories and files work, we’ll look at a view of the file manager.

Contents of /usr/home/username/.

Above, you can see an example of the files and directories in your site. There are three main directories to be concerned with:

home /usr/home/username/ – This is your home directory. All of your files are stored within this directory. Files placed directly in this directory will not be visible on the internet. You will start out in your home directory when connecting by FTP, Web Disk or the File Manager.

/usr/home/username/public_ftp/ – This is the directory used for anonymous FTP access. Any files in this directory can be downloaded by anyone if anonymous FTP access is enabled.

public_html /usr/home/username/public_html/ (www) – The public_html directory contains the files for your site. Files in public_html and any subdirectories of public_html will be able to be viewed by anyone on the internet.. (/usr/home/username/www/ is the same directory as /usr/home/username/public_html/).

When someone views a directory in your public_html area, they will see the index page for that directory. When creating your index page, you should use one of the following names (the first one found will be shown if the visitor doesn’t type in a specific page in their URL):

index.php
index.html.var
index.htm
index.html
index.shtml
index.xhtml
index.wml
index.perl
index.pl
index.plx
index.ppl
index.cgi
index.jsp
index.js
index.jp
index.php4
index.php3
index.php
index.phtml
default.htm
default.html
home.htm
index.php5
Default.html
Default.htm
home.html

Warning: When adding files to your site, it is important that you add them in the right place. For example, you will need to place files that you wish to be visible on the internet in public_html or a subdirectory of public_html. If you placed them in / for example, no one will be able to view them.

Leave a Comment :, , , , , , , , more...

How to forward a website to another url

by admin on Jan.06, 2012, under DirectAdmin

There are several ways to accomplish this task, but the simplest to understand is to use php.
To do this, you need to create the page that will do the forwarding. This can be any page, as long as it ends in ".php". If you are trying to redirect a domain, you’d create "index.php" inside the public_html directory.
Once you decide which page you will use, then create the file and enter the following text:

<?php
header("Location: http://whereyouwant.com/to/go.html");
?>

Where http://whereyouwant.com/to/go.html is the location that you want the page to forward to. You can use local values, ie: /page.html, or full urls as in the above example (http://..etc.)

Leave a Comment :, , , , more...

I want apache 2.0, php 5 and mysql 5

by admin on Dec.18, 2011, under DirectAdmin

DirectAdmin essentially will work with any version of the software you want (within reason). You can use these newer versions of the software should you with to have them.
*** For Apache 2.2 and php 5.x, we have a new custombuild script available:
http://files.directadmin.com/services/custombuild/1.1. It will install both apache 2.2 and php 5 automatically for you. It also contains code for installing mysql 5. The custombuild script is consider the more recent way to install apache 2, php 5 and mysql 5. The rest of the guide will still work, but it’s more time consuming.


To convert apache 1.3 to apache 2.0, use this guide:
directadmin.com/features.php?id=441

For php 5, use this guide (after you are running the apache version you want to have):
help.directadmin.com/item.php?id=135

Regarding MySQL 5.0, you must first decide if you are eligible for the version change. If you are running MySQL 4.1.x or higher, then there won’t be any issues. If you are running MySQL 4.0.x or lower, then you have to take note of the following:
There passwords and table format changes between 4.0 and 4.1. Updating tables to the 4.1 format is not too difficult after the update is done:

mysql_fix_privilege_tables –user=da_admin –password=`cat /usr/local/directadmin/conf/mysql.conf | grep passwd |cut -d= -f2`

**However**, the password format cannot be converted to the new password format in 4.1. You have 2 choices:
1) After updating, go through all MySQL accounts and resave their passwords. You will need to know their plaintext password to do this. This is ideal so that you are using the latest formats and do not need to worry about compatibility issues with future releases.
2) Retain the old password formats and tell the new version of mysql to use those old formats by adding:

[mysqld]
old_passwords

into your /etc/my.cnf file, then restart mysqld. You will need to create this file.
This 2nd option is good to save time, but if you ever need to transfer the accounts to a new server already running MySQL 4.1 or higher, you will need to resave all mysqld password for that transferred account. The MySQL server should have all passwords in the same format.. either the new one, or the old one. If there are already account in the new format, you need to resave the passwords to it.
Related guide: directadmin.com/features.php?id=466
Once you’ve decided if the update is for you, use these guides to do it:
FreeBSD/Debian:
help.directadmin.com/item.php?id=106
You will need to get the binaries for your particular OS version. If you cannot file them on files.directadmin.com/services, then go to dev.mysql.com and download the binaries for your system. We do not have any special compile options, and we use all stock binaries from dev.mysql.com whenever possible. **Note** that the guide there contains freebsd binaries. Debian binaries would have to be downloaded if you use Debian. The same instructions apply.
Redhat/Fedora/CentOS (anything with rpms):
Conversion with rpms is quite easy (note the above notices about moving from 4.0 to 4.1 or higher still apply).
Download the 4 MySQL rpms that you want to use, either from files.directadmin.com or from dev.mysql.com. You’ll need the server, client, shared and devel rpms. You must not have any mismatched versions. We recommend generic i386 rpms. If you have 64-bit system, then you’ll need binaries specific to your system (dev.mysql.com has everything you’ll need)
Use wget to download all 4 rpms, then use "rpm -Uvh file.rpm" to update/install them, for example:

mkdir mysql
cd mysql
wget http://files.directadmin.com/services/all/mysql/MySQL-client-5.0.37-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-devel-5.0.37-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-server-5.0.37-0.i386.rpm
wget http://files.directadmin.com/services/all/mysql/MySQL-shared-5.0.37-0.i386.rpm
rpm -Uvh MySQL-*-5.0.37-0.i386.rpm
/sbin/service mysqld restart

Again, keep in mind any changes you may need to do to your database to make this version work.
If you have a clean DirectAdmin install without any databases on it yet and you wish to install the new version, it would likely be easier to use this guide to move cleanly to the version you want: help.directadmin.com/item.php?id=96. It will install all data and passwords after deleting the previous data (hence, youll need a new install first because any databases are going to be lost). For the guide, you’d replace the 4.0 rpms used in the example and simply download the 5.0.x version mentioned above.
It’s also recommended you do a full php recompile to load in MySQL’s current version of the client libraries. Hence, if you are going to be updating php anyway, do MySQL first.

Incoming search terms:

apache after directadmin
Leave a Comment :, , , more...

cPanel Tutorial

by admin on Dec.17, 2011, under News

cPanel is a web based control panel tool, which will help you manage your hosting account through a web interface instead of a console. With cPanel you are able to accomplish your tasks faster and even non-professionals can easily and painlessly operate their website via cPanel.

The cPanel tutorial is part of the rich collection of web hosting tutorials, which IGN/IndoVPS experts have prepared for everyone. Find out how to start your website, how to promote it, how to deal with cPanel, webmail and FTP.

cPanel offers a rich set of features, ranging from adding an email address to managing sub-domain names. This tutorial will focus on the tasks involved with putting together and maintaining a web site.

CPanel Tutorial includes detailed instructions about:

  • How to set the Preferences in your cPanel;
  • How to manage Mail accounts and services with cPanel;
  • How to use the tools in the Files section: File manager and FTP manager;
  • How to use the tools in the Security section: Pass protected directories, IP Deny manager, and HotLink protection;
  • How to manage Domains via cPanel: Parked domains and Addon domains;
  • How to use the Logs tools for checking statistical data;
  • How to manage Databases via cPanel: there is a special MySQL tutorial, for managing MySQL databases;
  • How to manage Databases via cPanel: there is a special PostgreSQL tutorial, for managing PostgreSQL databases;
  • How to use the tools in the Software/Services section;
  • How to use the Advanced tools, such as Cron Jobs;
  • How to make Website backup via CPanel;
  • How to check the cPanel ports.

IGN/IndoVPS has long experience in providing web space for CPanel managed sites. Our web hosting service is an excellent choice for any website since it offers the richest set of features, cPanel-expertized support team and lots of FREE PHP tools like blogs, galleries, CMS, shopping carts, etc.

Leave a Comment :, , , , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kontak

Budhi Indah A 31
Cimindi Cimahi 40514
West Java
Indonesia

Phone/SMS :
Info/Bantuan : 62-8158-6270622
Billing/konfirmasi : 62-8888-763551

Self Advertise


My site is worth $7548.2.
How much is yours worth?