UnixServerAdmin

Server Administration & Management

How to remove/uninstall Fantastico on cPanel

Here are following steps to uninstall Fantastico on cPanel

# rm -rf /var/netenberg/

# rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/

# rm -rf /usr/local/cpanel/3rdparty/fantastico*

# rm -rf /usr/local/cpanel/base/frontend/*/fantastico

# rm -f /usr/local/cpanel/base/frontend/x/cells/fantastico.html

# rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_fantastico.cgi

Advertisements

February 28, 2011 Posted by | cPanel | , , | 3 Comments

How to transfer WordPress blog to new server in cPanel

Normally moving thousands of files from one server to another is a time consuming and tiring job but if you use good and effective technique to move your WordPress blog from one webhost to another then it will only take less than an hour to transfer Gigabytes of data from one server to another.

Fully Automated One click backup of all your cPanel data: cPanel Built-in Remote Backup Feature

This method is the best from all the methods I’ll mention below because Remote Backup requires least of your effort and transfer ALL of the data available to you in your old cPanel to your new host’s cPanel Dashboard. There are some things that needs to be available in order to successfully move your blogs, your New and Old Web Host must have to offer cPanel not any other Hosting Management System, ‘Backups’ feature from both new and old hosts is required to be enabled. If both of your Web Hosts implies to these situations then you are good to go just follow simple steps i am going to mention below.

1. Open the Backups manager in your cPanel and click “Generate/Download a Full Backup”
2. For Backup destination choose “Remote FTP Server (Passive Mode Transfer)”
3. Enter the FTP server, username and password
4. Enter the FTP server port (this is usually “21?)
5. Leave Remote Dir field empty
6. Hit “Generate Backup”

Your backup will now be passively generated and transfer from server to server using the net2ftp protocol. If you don’t see this option in your cPanel then you need to ask your host to enable it. If you are using this method to transfer your files you don’t need to manually backup & restore your databases.

Backing up and Restoring your Files & Databases Partially: Compress, Download & Upload site files via SSH (Secure Shell)

SSH is a network protocol that allows data to be exchanged over a secure channel between two computers. Mostly all Web hosts provide SSH facility to users you may have to get it enabled by contacting to your Web host support team. You will also need the PuTTy client to connect to your server via SSH.

1. Login to your Old server via SSH and open the folder which you want to backup e.g.
# cd /home/somepath/to/yourwebsite/public_html
2. Make a compressed archive out of this folder using the command
# tar -cvf sitepack.tar ./
3. Now login to your New server via SSH and use the command below to fetch the backup from server
# wget yourdomain.com/sitepack.tar
4. Next step is to uncompress the archive using the command
# tar -xvf sitepack.tar

Backup & Restore your MySQL databases

If you are using SSH to transfer your files from one server to another you also need to port your databases from old web host to new one. Here I am going to share the most easiest way of backing up and restoring databases is to do from your cPanel’s ‘Backups’ feature. Follow few simple steps to perform successful DB backups.

a) In your cPanel dashboard locate ‘Backups’ menu.
b) There you’ll see list of all your MySQL databases, Simply click on any of the database name and save compressed DB file to your computer.
c) Now when you backed up all the databases to your computer, log in to your new Web host Panel Dashboard and locate ‘Backups’ menu.
d) Here you’ll see ‘Restore a MySQL Database’ simply choose file and restore your databases one by one.

Add MySQL users to your Databases

Now when you have all your files and databases moved in to your new Web host you need to add MySQL users to your databases for that local ‘MySQL Databases’ icon in your cPanel.

4. Add domains to your New Host

Locate ‘Addon Domains’ in your cPanel and add Domains to your new Web host and make sure while adding domains you choose correct site files path in your /public_html/ directory associated to appropriate domain.

5. Edit wp-config.php if your new cPanel Username is different than old

If your new cPanel username is different then it’s important to edit wp-config.php to make MySQL database login information correct and accurate or your blog will encounter ‘can’t establish a database connection’ error.

This is it.

February 27, 2011 Posted by | cPanel, WordPress | , , | 3 Comments

How to add MIME type through cPanel

1. Login into Cpanel
2. Select MIME type from the main page
3. Enter “application/x-shockwave-flash” in MIME type field (do not enter quote)
4. Enter “swf” in Extensions() field (do not enter quote)
5. Click add.

February 26, 2011 Posted by | cPanel | , , | Leave a comment

How to create MySQL in cPanel

MySQL databases allow you to store lots of information in an easy to access manner. The databases themselves are not easily read by humans. MySQL databases are required by many web applications including some bulletin boards, content management systems, and others. To use a database, you’ll need to create it. Only MySQL Users (different than mail or other users) that have privileges to access a database can read from or write to that database.

There are two ways to create a MySQL database The easiest way to create a MySQL database is to use the “MySQL Database Wizard” built directly into the cPanel interface. The second way involves a few more steps, but does not require you to go through the wizard. Create a MySQL Database Using The Wizard by following Steps :-

1. When the page loads, enter the name of your new database in the “New Database” text box.
2. Next, click on the Create Database button.
3. You should see the following statement:
* “Added the database YOUR_DATABASE_NAME.”
4. Enter the username and password you want to use for this database in the “Username” and “Password” text boxes, respectively.
5. Next, click on the “Next Step” button.
6. You should see the following statement:
* “Added USERNAME with the password PASSWORD.”
7. When the page loads you will see a two-column table. The top of the table provides a checkbox option “ALL PRIVILEGES” allowing you to create the database with all privileges, otherwise you can check each of the items in the two columns that you want to allow for your new database. The options include:
* SELECT – Allows USERNAME to select data from a table in the database.
* INSERT – Allows USERNAME to insert data into a table in the database.
* UPDATE – Allows USERNAME to update data in a table in the database.
* DELETE – Allows USERNAME to delete data from a table in the database.
* INDEX – Allows USERNAME to create index on table column in the database. This can speed up a database.
* CREATE TEMPORARY TABLES – Allows USERNAME to create temporary tables in the database.
* CREATE – Allows USERNAME to create tables in the database.
* ALTER – Allows USERNAME to alter tables in the database.
* DROP – Allows USERNAME to drop tables in the database.
* LOCK TABLES – Allows USERNAME to lock tables in the database.
* REFERENCES – Allows USERNAME to create references to a table in the database.

NOTE: Typically you may want to check the “All Privileges” option unless you want specific control over the user you are creating for this database.

8. Assuming you have either checked the “All Privileges” option or a combination of the options in the two columns, continue the wizard by clicking on the Next Step button.
9. You should see the following statement:
* “User USERNAME was added to the database DATABASE.”,
10. When the page loads you will have three available options to choose:
* Add another database – Click this link if you want to add another mySQL database to your web hosting account.
* Add another user using the mySQL Database Area – Click this link if you want to add another user to the database you created in the steps above.
* Return to Home – Click this link if you want to return to the cPanel dashboard.

Create a MySQL Database Manually

1. When the page loads, enter the name of your new database in the “New Database” text box.
2. Next, click on the Create Database button.
3. You should see the following statement:
* “Added the database YOUR_DATABASE_NAME.”
4. Click on the Go Back link.
5. When the page loads, you will see a table with your newly created database containing the following information, split into five columns:
* Database – This entry will be the database name you created in Step 1 above.
* Size – This entry will be the size of the database you created in Step 1 above.
* Users – This entry will be the users in the database you created in Step 1 above. When you first create a new database manually, this column entry will be empty. Continue to Step 6 below to learn how to create and add a user to your new database.
* Actions – You have one choice:
o Delete Database – Click on this link to delete a database.
6. In the “New User” section, enter the username and password you want to use for this database in the “Username” and “Password” text boxes, respectively.
7. Next, click on the Create User button.
8. You should see the following statement:
* “Added USERNAME with the password PASSWORD.”
9. Click on the Go Back link.
10. Find the “Add User To Database” section. Select the user you created in Step 6 above from the “User” drop down menu. Then select the database you created in Step 1 above from the “Database” drop down menu.
11. Next, click on the Submit button.
12. When the page loads you will see a two-column table. The top of the table provides a checkbox option “ALL PRIVILEGES” allowing you to create the database with all privileges, otherwise you can check each of the items in the two columns that you want to allow for your new database. The options include:
* SELECT – Allows USERNAME to select data from a table in the database.
* INSERT – Allows USERNAME to insert data into a table in the database.
* UPDATE – Allows USERNAME to update data in a table in the database.
* DELETE – Allows USERNAME to delete data from a table in the database.
* INDEX – Allows USERNAME to create index on table column in the database. This can speed up a database.
* CREATE TEMPORARY TABLES – Allows USERNAME to create temporary tables in the database.
* CREATE – Allows USERNAME to create tables in the database.
* ALTER – Allows USERNAME to alter tables in the database.
* DROP – Allows USERNAME to drop tables in the database.
* LOCK TABLES – Allows USERNAME to lock tables in the database.
* REFERENCES – Allows USERNAME to create references to a table in the database.

NOTE: Typically you may want to check the “All Privileges” option unless you want specific control over the user you are creating for this database.

13. Assuming you have either checked the “All Privileges” option or a combination of the options in the two columns, continue the wizard by clicking on the Make Changes button.
14. You should see the following statement:
* “User USERNAME was added to the database DATABASE.”
15. Click on the Go Back link.
16. You should now see the user you created in Step 6 above in the “Users” column

February 25, 2011 Posted by | cPanel, MySQL | , , | 1 Comment

How to backup & website transfer on cPanel

Steps to backup and move your site is as following :-

1. First login to your cPanel on old server and click “backup” (make sure you are using x skin)

2. Once in backup click “download a home directory backup” This will backup all your email accounts, files, and a few other things. It will not backup your MySQL databases.

3. If you have any MySQL databases you will download them now.

4. If you have any Aliases/Filter Backups download them.

5. Congratulations, you have backed up your entire site, and it’s now time to restore it.

6. Login to your WHM and create a domain with the same name as on old server, the login at the cPanel of this domain on the new server and click “backup”

7. Under “Restore a Home Backup,” click “Browse” and find the home backup you have you have already downloaded, and click upload.

8. Do the same for your MySQL databases.

9. Do the same for your Aliases/Filters.

10. You are done with everything your site has been restored, now repeat this process for any more sites you wish to backup.

Getting your database to work after restoring it

After you have restored your database, you will get an error when trying to view it’s page. Example Error:

Warning: mysql_connect(): Access denied for user: ‘bakerpe_osc1@localhost’ (Using password: YES) in /home/bakerpe/public_html/catalog/includes/functions/database.php on line 19
Unable to connect to database server!

What this means is that your database now exists in cPanel, but it has no username and password assigned to it. To assign a username and password login to your cPanel and click “MySQL Databases” Scroll down till you see the below.

Your username will look something like this yourusername_databasename@localhost The red part would be your username. The username in our example error above is “osc1”

You will need to find out your databases password. To do so look at the error your page gave you and take note of the path.

Path from our example error:

/home/unixserv/public_html/catalog/includes/functions/database.php

You will now login to your sites FTP and go through the folders until you find the file listed in your error path.

You will now download the file to your computer. Once it’s downloaded open it up and browse until you find your database password.

Example of what to look for: DB_SERVER_PASSWORD’, ‘nvGHdCC0dCMz’);

nvGHdCC0dCMz would be our database password. We will now fill that password in for our database password, and and then press “add user”

The user has now been added, but it has not been assigned to a database.

Match up the user with the database it belongs to and then just click “add user to database”

You are done!

February 24, 2011 Posted by | cPanel | , | Leave a comment

Domain not able to resolve to IP in cPanel

sometimes domain is not able to resolve to IP address in cpanel, Here is following steps to resolve this type of problem :-

# mv /etc/named.conf /etc/named.old

# /scripts/rebuildnamedconf > /etc/named.conf

# service named stop

# killall -9 named

# /scripts/fixndc

# /scripts/fixndc

February 23, 2011 Posted by | cPanel, DNS | , | Leave a comment

IP address usage not show in cPanel

Error :- How to show IP address usage not show in cPanel

# vi /var/cpanel/userdata/nobody/main

file :- —
addon_domains: {}

main_domain: p1.unixserveramin.com –> change server hostname
parked_domains: []

sub_domains: []

# /scripts/ipusage
warn [ipusage] YAML in ‘/var/cpanel/userdata/nobody/main’ is not a hash or array reference
not a reference at /usr/local/cpanel/Cpanel/CachedDataStore.pm line 163

#/script/ipusage
#/script/ipcheck

Also check “/etc/ips” and “/etc/domainips” file

February 22, 2011 Posted by | cPanel | | 3 Comments

How to add mime through by Helm

There are 2 MIME types to add. One for .flv extensions and one for .swf extensions.

First add a MIME type for .flv extensions.

1) Log into Helm
2) Click on your domain name
3) Click on the MIME Types icon
4) Click Add New
5) For the extension enter “flv”. NOTE: Do not type in the quotes or the MIME type will not work.
6) For the content type enter “video/x-flv”. NOTE: Do not type in the quotes or the MIME type will not work.
7) Click Save

Next add a MIME type for .swf extensions.

1) Log into Helm
2) Click on your domain name
3) Click on the MIME Types icon
4) Click Add New
5) For the extension enter “swf”
6) For the content type enter “application/x-shockwave-flash”
7) Click Save

Through Server :- Adding .flv MIME type in IIS

1) Select the site to configure in IIS, right click and select “Properties”
2) Under HTTP Headers Tab, select “File Types” under the MIME Map section and select “New Type”
3) Type “.flv” as the associated extension and “video/x-flv” as the content type.
4) Select “OK” and you’re ready to fly!

February 21, 2011 Posted by | Helm | , , | Leave a comment

How to Restart Apache/Httpd

If you have made changes to the Apache configuration file httpd.conf or one of the other included configuration files such as the vhosts.d files, you need to reload/restart the Apache service for the changes to take effect. From the command line you do this with the apachectl command. The exact location of this command varies on the Unix or Linux variant you are using (eg Fedora, OSX, FreeBSD, Slackware, Mandrake, SUSE) and the compile time settings, but typically it is accesible at /usr/sbin/apachectl

Gracefully restarting Apache

# /usr/sbin/apachectl graceful “OR”

# /etc/init.d/httpd graceful

If Apache is not already running it will be started. If it is already running then it will reload with the new changes but will not abort active connections, meaning that anyone who is in the middle of downloading something will continue to be able to download it.

Running a configuration test first

Before restarting the Apache service a check will be done on the configuration files to ensure they are valid. If there is an error in them the error will be displayed and the Apache service will continue running using the old settings. You need to correct your settings before attempting to restart again.

You can also just check the settings without restarting Apache like so:

#  /usr/sbin/apachectl configtest “OR”

# /etc/init.d/httpd configtest

This will check the httpd.conf file and report whether the syntax of the file is valid or not. A list of errors will be displayed including the line numbers if there are any. This makes it easy to isolate any problems.

Available options for the apachectl command

The following are all the available options that can be passed to the apachectl command. This text is from the apachectl man page.

apachectl start: Start the Apache daemon. Gives an error if it is already running.

apachectl stop: Stops the Apache daemon.

apachectl restart: Restarts the Apache daemon by sending it a SIGHUP. If the daemon is not running, it is started. This command automatically checks the configuration files via configtest before initiating the restart to make sure Apache doesn’t die.

fullstatus: Displays a full status report from mod_status. For this to work, you need to have mod_status enabled on your server and a text-based browser such as lynx available on your system. The URL used to access the status report can be set by editing the STATUSURL variable in the script.

apachectl status: Displays a brief status report. Similar to the fullstatus option, except that the list of requests currently being served is omitted.

apachectl graceful: Gracefully restarts the Apache daemon by sending it a SIGUSR1. If the daemon is not running, it is started. This differs from a normal restart in that currently open connections are not aborted. A side effect is that old log files will not be closed immediately. This means that if used in a log rotation script, a substantial delay may be necessary to ensure that the old log files are closed before processing them. This command automatically checks the configuration files via configtest before initiating the restart to make sure Apache doesn’t die.

apachectl configtest: Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or detailed information about the particular syntax error.

apachectl help: Displays a short help message.

February 20, 2011 Posted by | Apache, Tips & Tricks | , , | 1 Comment

How to Prevent hostname lookups with OpenSSH

When you connect to an OpenSSH sshd server, it is configured by default to do a hostname lookup on your IP address.
If there are any issues with the DNS configuration on the host machine, or with the DNS server it is using, this can lead to a delay when logging in using ssh for around 30 seconds and making this change may introduce a security risk as full checking is no longer done on the hostname and IP address. It is very easy to switch this host name lookup function off in the sshd_config file.

On most Linux distributions, the sshd_config file will be at /etc/ssh/sshd_config,

UseDNS no

This is correct for recent versions of sshd but older versions might use the following configuration option instead

VerifyReverseMapping yes

After making the above change to the configuration file, it’s simply a matter of reloading the SSH daemon.

# /etc/init.d/sshd restart

UseDNS – Specifies whether sshd should look up the remote host name and check that the resolved host name
for the remote IP address maps back to the very same IP address. The default is “yes”.

February 19, 2011 Posted by | Security, SSH | , , | 1 Comment

How to find all symbolic links with the “find” command

Find all symbolic links

Substitute [path] in the example below with the root level path you want to find symlinks from, and note that the final letter after -type is a lower case L (i.e. l for link):

# find [path] -type l

To find symlinks in all subdirectories from the current directory :-

# find . -type l

February 18, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | 1 Comment

How to disable PHP in a directory with Apache .htaccess file

If you have a directory which users can upload files into it’s a good idea for security reasons to disable server-side parsing of scripts such as PHP.

RemoveHandler and RemoveType

The handlers for PHP are added using AddType in the Apache configuration, and should be able to be removed in a .htaccess file like so (adding whatever additional extensions you need):

RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3

However this doesn’t seem to work for me. If anyone has any ideas please leave your thoughts in the comments section below.

php_flag engine off

Another way to disable PHP in a .htaccess file is by adding a line like this:

php_flag engine off

This method did work for me when I tested it.

I assume this will still invoke the PHP handler which will then not parse the script when it knows what various PHP settings are enabled and disabled. Note that when PHP is disabled then the end user will get the source code of the PHP script in their browser.

To be on the safe side

Just to be certain that PHP isn’t parsed in the selected directory, and given RemoveHandler and RemoveType didn’t seem to work for me, it may be best to add all three lines like so:

RemoveHandler .php .phtml .php3
RemoveType .php .phtml .php3
php_flag engine off

February 17, 2011 Posted by | Apache, htaccess, PHP | , , , | 1 Comment

How to enable remote access to a MySQL Server

MySQL is often configured to be accessible from the local host only. The MySQL configuration file is at /etc/mysql/my.cnf on Debian and similar distros and /etc/my.cnf on CentOS, Red Hat Enterprise Linux and Fedora. It contains a bind-address setting which is often set as follows by default:

bind-address = 127.0.0.1

This binds the MySQL deamon to 127.0.0.1 which is the local machine and means it will not be able to be accessed from other machines, whether or not the firewall and/or privilege grant options allow it.

To allow it to be accessible from any host, comment the line out as shown in the following example and then restart MySQL:

#bind-address = 127.0.0.1

Note that you could set the IP address to that of the server but it will mean all connections to the MySQL server must be via that IP address as it is not currently possible to bind MySQL to more than one IP address. It’s simply easier to comment the line out.

# /etc/init.d/mysql restart

You’ll still need to enable access to the MySQL server through the firewall from the remote server(s) and add/modify the appropriate permissions to the privileges tables.

February 16, 2011 Posted by | MySQL | , | 1 Comment

Stopping Non-Essential Services on Linux OS

In Linux OS, many services are running that are non-essential for a LAMP stack to run effectively. Running the following  will remove these services from the boot.

#Shut down non essential services:

1. sendmail –> Purpose: sending mail, most use another
# /etc/init.d/sendmail stop
# chkconfig sendmail off

2. nfs –> Purpose: mount a disk from another machine
# /etc/init.d/portmap stop
# /etc/init.d/nfs stop
# chkconfig portmap off
# chkconfig nfs off

3. chargen –> Purpose: testing char generation
# /etc/init.d/chargen stop
# chkconfig chargen off

4. ypbind –> Purpose: stores info on NIS domains
# /etc/init.d/ypbind stop
# chkconfig ypbind off

5. anacron –> Purpose: cron for systems that shut down a lot
# /etc/init.d/anacron stop
# chkconfig anacron off

6. atd –> Purpose: at cmd daemon
# /etc/init.d/atd stop
# chkconfig atd off

7. routed –>Purpose: Route packets, log tables
# /etc/init.d/routed stop
# chkconfig routed off

8. snmpd –> Purpose: network monitoring
# /etc/init.d/snmpd stop
# chkconfig snmpd off

9. gpm –> Purpose: mouse
# /etc/init.d/gpm stop
# chkconfig gpm off

10. smartd –> Purpose: disk health monitor
# /etc/init.d/smartd stop
# chkconfig smartd stop

11. hidd –> Purpose: bluetooth
# /etc/init.d/hidd stop
# chkconfig hidd off

12. pcscf –> Purpose: smart card reader
# /etc/init.d/pcscd stop
# chkconfig pcscf off

13. isdn –> Purpose: digital network
# /etc/init.d/isdn stop
# chkconfig isdn off

14. kudzu –> Purpose: watches for new hardware
# /etc/init.d/kudzu stop
# chkconfig kudzu off

15. cups –> Purpose: printing
# /etc/init.d/cups stop
# chkconfig cups off

16. xfs –> Purpose: serves x# 1# 1 fonts
# /etc/init.d/xfs stop
# chkconfig xfs off

17. nfslock –> Purpose: file sys lock
# /etc/init.d/nfslock stop
# chkconfig nfslock off

18. canna –> Purpose: Chinese chars
# /etc/init.d/canna stop
# chkconfig canna off

19. freeWnn –> Purpose: Japanese chars
# /etc/init.d/FreeWnn stop
# chkconfig FreeWnn off

20. cups-config-daemon –> Purpose: print config
# /etc/init.d/cups-config-daemon stop
# chkconfig cups-config-daemon off

21. iiim –> Purpose: internet language input
# /etc/init.d/iiim stop
# chkconfig iiim off

22. mDNSResponder –> Purpose: dns service discovery
# /etc/init.d/mDNSResponder stop
# chkconfig mDNSResponder off

23. nifd –> Purpose: monitors net interfaces
# /etc/init.d/nifd stop
# chkconfig nifd off

24. rpcimpad –> Purpose: used for nfs server
# /etc/init.d/rpcimpad stop
# chkconfig rpcimpad off

25. bluetooth –> Purpose: bluetooth devices
# /etc/init.d/bluetooth stop
# chkconfig bluetooth off

26. saslauthd –> Purpose: handles plaintext authentication requests [Notes: some systems use this for email auth!]
# /etc/init.d/saslauthd stop
# chkconfig saslauthd off

27. avahi-daemon –> Purpose: instant network recognition
# /etc/init.d/avahi-daemon stop
# chkconfig avahi-daemon off

28. avahi-dnsconfd –> Purpose: instant network recognition
# /etc/init.d/avahi-dnsconfd stop
# chkconfig avahi-dnsconfd off

29. sbadm –> Purpose: rapid reboot
# /etc/init.d/sbadm stop
# chkconfig sbadm off

30. haldaemon –> Purpose: monitors for hardware changes
# /etc/init.d/haldaemon stop
# chkconfig haldaemon off

31. acpi –> Purpose: sleep/hibernate control
# /etc/init.d/acpi stop
# chkconfig acpi off

32. gamin –> Purpose: monitors file/dir changes
# /etc/init.d/gamin stop
# yum -y remove gamin

February 15, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | 4 Comments

Softaculous v/s Fantastico

Softaculous is best as compare to Fantastico but its little confusing for new clients who just registered hosting account. I think Softaculous need some time to undterstand.

Softaculous having large number of script as compare to Fantastico. Softaculous is good for WHMCS and Magento users as well as hosting provider becasue both scripts are present in Softaculous and easy to install as compare to manual installation. Softaculous is more updated and has tons of script’s like 144 compared to fantastico having 50… I mean theres a huge difference.

A complete list of changes:

1. Softaculous now has a Admin Side Fantastico Importer which will import installations of Scripts that are common in Softaculous and Fantastico. There are 36 scripts that are common in Softaculous and Fantastico. The admin can now import installations for ALL users by the click of a button.

2. Users can now specify an additional email address to email the installation details.

3. Installation details emailed will now consist the Admin Username and Password of the script installation.

4. In the Admin Settings page, there will be a text “suPHP Detected” if suPHP is found and detected by Softaculous. This is to help admins set the correct CHMOD permissions for installations.

5. The Synchronize button and the Control Panel button in the enduser panel can be turned off by the admin. Users were asking for this feature and we have included it in this version of Softaculous.

6. There will be an Overwrite option for overwriting the files that exist.

7. The cPanel FreeBSD bug which led to an empty domains list is fixed in this version of Softaculous.

8. If security tokens were enabled in cPanel, a user returning from Softaculous to cPanel had to relogin. This is now fixed.

Prices comparison of Softaculous & Fantastico

Features Softaculous Softaculous Free Fantastico Installatron cPanel
Number of Scripts 175 60 50 58 19
Ratings
User Reviews
Demos
One Step Install
3 steps

12+ steps

2 steps
GZip Compression
Addition of Scripts
Common Features
Price/year $24 Free $90 $50 N/A
VPS Price/year $12 Free $24 $25 N/A

February 14, 2011 Posted by | cPanel | , | 3 Comments

How to Install ImageMagick on cPanel

ImageMagick is a free software suite for the creation, modification and display of bitmap images. ImageMagick can read, convert and write images in a large variety of formats. Images can be cropped, colors can be changed, various effects can be applied, images can be rotated and combined, and text, lines, polygons, ellipses and Bézier curves can be added to images and stretched and rotated.

The features are used from programs written in the programming languages Perl, C, C++, Python, PHP, Ruby or Java, for which ready-made ImageMagick interfaces (PerlMagick,Magick++, PythonMagick, MagickWand for PHP, RubyMagick, and JMagick) are available.This makes it possible to modify or create images automatically and dynamically. ImageMagick supports many image formats (over 90 major formats) including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and GIF.

Here are some features of Imagemagick :

· Convert an image from one format to another (e.g. TIFF to JPEG)
· Resize, rotate, sharpen, color reduce, or ali special effects to an image
· Create a montage of image thumbnails
· Create a transparent image suitable for use on the Web
· Turn a group of image into a GIF animation sequence
· Create a composite image by combining several separate image
· Draw shapes or text on an image
· Decorate an image with a border or frame
· Describe the format and characteristics of an image

Installation of ImageMagick

Method-1

If you are running cPanel, you can use the next command to check if ImageMagick is running :-

# /scripts/checkimagemagick

If you want to install ImageMagick on cPanel you can use following script :-

# /scripts/installimagemagick

Method-2

1. Log into your server as root

2. Create a new directory as below

# mkdir /home/cpimins

# cd /home/cpimins

# wget http://layer1.cpanel.net/magick.tar.gz

# tar zxvf magick.tar.gz

# cd magick

# /scripts/installrpm ImageMagick

# /scripts/installrpm ImageMagick-devel

# sh ./install

February 13, 2011 Posted by | cPanel | , , | 3 Comments

Joomla – JAuthentication _construct: Could not load authentication libraries

Error accessing Joomla Administrators area:

JAuthentication::__construct: Could not load authentication libraries

Fix:

Open PhpMyAdmin –> select database –> select table jos_plugins –> under it select pencil box for Authentication – Joomla –> for published fileld change value to 1 from 0 –> save the settings by selecting go.

Now try to login administraror section it should work. [superemotions file=”icon_razz.gif” title=”Razzberry”]

February 12, 2011 Posted by | Joomla | | 4 Comments

WordPress Permalink not Working

WordPress Permalink not working enenn through you enabled it from wordpress admin section >> Settings >> Permalinks.

On investigating for a long time I found that wordpress requires a rewrite  rules to be enabled in .htaccess file for Permalinks to work correctly.

Create .htaccess file in the installation directory of wordpress and add following rewrite rules.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Save exit file and now Permalinks should work fine.

?

February 11, 2011 Posted by | WordPress | | 31 Comments

PHPMyAdmin – Existing configuration file (./config.inc.php) is not readable

Accessing PhpMyAdmin from cpanel I get error

PHPMyAdmin :: Existing configuration file (./config.inc.php) is not readable

1) SSH to server as root

2) check permission for file

# ls -ld /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

It should be

-rw-r—– 1 root cpanelphpmyadmin 1749 Oct 11 23:06 /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

3)If not then change ownership and file permission to above.

# chown root:cpanelphpmyadmin  /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

# chmod 640 /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

4) Thats it, you are all done.

February 10, 2011 Posted by | PHP | , | Leave a comment

How to enable InnoDB engine in MySQL

1) Check whether InnoDB is enabled on the server. To check login to shell as root and go to mysql prompt.

i) #mysql

ii) mysql> show engines;

Search for InnoDB and check whether it is Enabled or Disabled.

iii) mysql> quit

2) Now if it is disabled and to make it enabled on the server edit /etc/my.cnf file and comment skip-innodb line as bellow.

i) nano /etc/my.cnf
#skip-innodb

ii) Restart mysql service.

# /etc/init.d/mysql restart

February 9, 2011 Posted by | MySQL | , | 2 Comments