Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Monday, August 31, 2015

How to Protect a Website From Malware (10 Steps)


Change the main website password (also known as the web hosting plan password) once a month. Use a combination of numbers, letters and symbols to form a secure password that is hard to guess or crack through hacking programs. For example, the password 'N3409Fn29aa' is harder to guess than 'sunshine29,'
Log in to each PHP script installed and in use (guestbook, blog, mailing list) and change their administrator passwords. Form difficult administrator password for each script that you're using on the website.
Update all scripts that are in use and are planned to be parts of the website in the future. Upgrade to latest available and stable versions by downloading them from the developers' websites. Update any security patches available through the developer. Outdated PHP scripts have insecure coding and are often hacked and injected with malware code.
Remove any scripts that are outdated and no longer in use. Delete the files off the web server or follow uninstall directions if available through your website's control panel.
Disable global directives and variables (which can be used to gain access to administrator panels and inject malware code) from your web hosting account. Alter the '.htaccess' file to secure the website and protect it from this common malice.
VPS Hosting

Friday, August 28, 2015

How to Install Magento on 1And1 VPS (16 Steps)


Log into your 1and1 control panel according to the instructions you received when you set up your VPS account. Click 'Domains' in the control panel to make sure the domain you want to use with Magento is properly set up on your VPS account. Change the nameservers in your domain registration account to match your VPS nameservers, if necessary, before adding your domain to the list of domains you host on your server.
Click the 'Server administration' icon in the control panel menu. Wait a few seconds for the administration icons to appear. Click the 'Server access data' icon to obtain the log-in information for your Plesk and Virtuozzo server control panels as well as your SSH log-in.
Log in to your Virtuozzo control panel and click the 'System services' icon. Click the 'PSA' and 'mysqlid' icons and start the respective services. Enable auto-start when starting both services.
Set up your domain on your Plesk control panel if you have not done so already. Log in to your Plesk control panel and click the 'Domains' icon followed by the 'Create domain' prompt. Wait a second for the text fields to appear and enter your domain information according to the instructions. Create your FTP account in the specified text field and click 'Next.'
Wait for the next page to appear. Uncheck the 'PHP safe_mode' check box and click 'Finish.'
Download the latest version of Magento from the download page. Choose the Community Edition page for the free version or the Enterprise or Professional Edition page if you have purchased one of the paid Magento packages. Enter your user name and password in the proper fields of the log-in page to access your Enterprise or Professional account.
Uncompress the '.tar' archive containing the Magento files by right-clicking it if you are using a Mac computer or by opening your archiving software and choosing the name and location of your '.tar' file if you are using Windows.
Launch your FTP client. Enter your domain, username and password in the appropriate fields and click the server connection button or prompt. Choose the folder into which you have uncompressed your Magento files as the local folder and the directory into which you want to install Magento as your remote folder.
Drag the files from the local folder into the remote folder and wait about five minutes for the transfer to complete.
Type your domain address, including a slash and the name of the directory into which you installed Magento, if necessary, into your browser text window. Proceed with the on-screen installation procedure if you do not see an error message. Complete the remaining steps if you see an error message stating you have an invalid PHP version.
Connect to your server with SSH through the 1and1 control panel or with an SSH client. Use your root user name and password as provided in Step 2.
Type the following command at the first SSH prompt you see after entering your information. Omit the quotation marks and the period at the end: 'wget -q -O - http://www.atomicorp.com/installers/atomic.sh |sh.'
Type 'yum update' without the quotes as soon as the next prompt appears. Choose 'No' when you are asked whether you want to install the updates.
Type the following commands and select 'Yes' after each subsequent prompt appears:
yum update php
yum update mcrypt
yum update mhash
yum update php-mcrypt
yum update php-mhash
Restart Apache by typing ' /etc/init.d/httpd restart' without the quotation marks as soon as the last 'yum update' is finished.
Type the full domain address for your Magento installation in your browser text window. Follow the on-screen installation prompts. Repeat Steps 11 to 15 if you still see an error message.
VPS Hosting

How to Enable IonCube on a HostGator Account


Log into the HostGator cPanel with your username and password. Go to the following address 'www.yourdomainname.extension/cpanel.' Note that 'yourdomainname.extension' is the domain name that you purchased for your website and the extension is the domain extension like '.com' for example. If your domain name is 'www.example.com,' the control panel address would be 'www.example.com/cpanel.'
Go to the 'Software / Services' option in cPanel and click the 'PHP Config' option.
Select the 'PHP5 (Single php.ini)' and click 'Save Changes.' This directs you to a page titled 'Install Default php.ini' where there is an option to install IonCube.
Tick the 'IonCube' option and click the 'Install' button.
Click the 'Go Back' option. This is located at the bottom of the page.
Click 'File Manager' in the 'Files' section within cPanel. You are directed to a section titled 'File Manager Directory Selection.'
Select the 'Web Root (public_html/www)' option.
Select the 'php.ini.default' option. Click the 'Rename' button and rename the file to 'php.ini' and then click on the 'Rename File' option. IonCube is now enabled.
VPS Hosting

Wednesday, August 26, 2015

How to Reindex a Site in Drupal


Run a manual cron job. Cron is a task that is set up on the server-side to tell your server to refresh its database and other core aspects and functions of your Website. The easiest way of running a cron task through Drupal is by typing in this URL: http://www.yoursite.com/cron.php. Hit enter and let the cron job run manually.
Set up the cron interval. Most cron jobs need to be triggered in intervals. For example, a Website with a lot of user-updated content may need to re-index the content search by running cron jobs once a day. The best way to do this is though the server's crontab function on your hosting control panel.
Type the following into your hosting panel's cron section: 0



wget -O - -q -t 1 http://www.example.com/cron.php0 represents the top of the hour, and the other asterisks refer to the day, month and day of the week. This example runs cron once an hour.
Use the Poormanscron module as an alternate option for re-indexing the website. This module can be found at: http://drupal.org/project/poormanscron. At this time of this writing, Poormanscron is now part of the latest installation of Drupal, which is Drupal 7, and therefore the module does not need to be installed. For Drupal 6 and below, this module must be set up and configured for the desired cron job intervals.
VPS Hosting

Tuesday, August 25, 2015

How to Edit PHP.INI on iPage Web Hosting


Log in into your iPage account. Click on the 'Scripting and Add-Ons' hyperlink in your iPage control panel, and then click on the 'CGI and Scripted Language Support' link.
Click on the 'PHP Scripting' hyperlink in the CGI and Scripted Language Support menu. Set your PHP.INI file's version type. Select either 'PHP4' or 'PHP5' from the menu box in beneath the 'Select Default PHP Version' heading. Click 'Set.'
Edit the values next to each directive you'd like to alter in the PHP.INI file. For example, you'd set your maximum post data and upload size by editing the values next to the 'post_max_size=' and 'upload_max_filesize=' field.
Click on the 'Save' button to store your changes to the PHP.INI file.
VPS Hosting

Monday, August 24, 2015

How to Set Up a Free Proxy (6 Steps)


Sign up for server space. If you already have a web server, you can skip this step. If you do not, you can sign up for either a free hosting account for limited bandwidth or a paid host for higher or unlimited bandwidth. Make sure you have FTP access to your hosting account so you can upload files to the server and that your server can run PHP. Either way, take note of your FTP user name and password before moving on.
Install an FTP program on your computer. Filezilla is the most popular free FTP program. It can be downloaded from Sourceforge.net. Follow the installation instructions for your computer. Make sure to download the right version for a Mac, Windows, or Linux computer.
Download PHProxy for free from Sourceforge. PHProxy is a free proxy server software package based in the PHP programming language. It is easy to install on any web server. Download the free installation package onto your desktop. You can test the software at phproxy.org.
Log in to your hosting account using Filezilla and navigate to your public_html directory. The public_html directory is where web pages are hosted on your server space. Choose one of your hosted domain folders and create a sub directory called '/proxy.' Doing so will install the program to yoursitename.com/proxy (replace yoursitename with your website's name).
Upload the entire PHProxy package into the /proxy folder on your server. Be sure to unzip the package and upload every file. Once the files are uploaded, use Filezilla to set the file permissions to 666, which will allow you to read the file from a web browser.
Go to yoursitename.com/proxy and you can use your proxy from any computer with Internet access. If you are concerned about other people using your proxy, you can change the directory name from /proxy.
VPS Hosting

Sunday, August 23, 2015

How to Build an Online Internet Directory (6 Steps)


Purchase a domain name and monthly web hosting subscription. Domain names can be purchased at the same place where you buy web hosting services such as GoDaddy.com, Register.com or LiquidWeb.com. Make the domain name an easy one to remember as this will help your Internet directory's 'brand' and it also helps repeat visitors recall the site quickly. For Internet directories, the most basic web hosting subscription can be purchased; you can always upgrade your hosting account once your directory is established and has daily traffic.
Choose an Internet directory script. These scripts are typically automatic-type programs that include the essential tools you need for an Internet directory website. Both free and paid Internet directory scripts exist; consider your skills and web design knowledge when choosing one. An example of a paid script includes eSyndiCat; free ones include PHP Link Directory and In-Portal, included in the Resources section. Free scripts may have little support from authors/creators, but you can perform modifications by yourself or pay someone to do them. Paid directory scripts usually have a support team available to help you get set up and may have extra features in the script. Look for the integration of advertisements and featured directory listings if your plan is to own a paid Internet directory; other important characteristics of an Internet directory script include comprehensive administrative panels, the ability to accept directory listings automatically or with pre-approval and plenty of categories and listings included with the script.
Upload the Internet directory script to your website. Follow the instructions in the help guides of the directory script. Get help from your web host's customer service if you need additional assistance. Many Internet directory scripts require the use of a MySQL database which is set up in the administrative control panel of your web hosting management.
Log in to your Internet directory script's administrative panel and make any modifications that are necessary. Upload a logo and/or header image for your website and change any design elements that are able to be changed. You can hire a freelance web developer (iFreelance.com and Guru.com are two sources of freelancers) to make these changes for you if you lack the skills or knowledge.
Add categories to your Internet directory website. The administrative or control panel for your directory contains options for adding, deleting, and changing categories and listings. The categories you add are dependent on the type of online Internet directory you want to create. Add local business information if you're creating a directory for a city or local area. A few possible categories include restaurants, shopping centers, retail and department stores, and Internet forums just to name a few.
Test your online Internet directory website from the user side. Make sure that your categories and listings are in the right places and that all user features included with your script work correctly.
VPS Hosting