Easy way do delete files from cpanel

Sometimes we need to empty all files under a web hosting, how to do then?

 Very simple, just login your cpanel, click “File Manager” and choose “public_html”, del  “public_html” and rebuild a new one. That’s it! Very easy, right!

 Somebody may ask how to del part of the files, also very easy. Go to  “public_html”, and choose the files you want to delete, and del them.  Simple?

Apache HTTP server has stopped working when install Magento

Today I am up to the configuration stage in the Installation of Magento on my own localhost server but when I press continue Iget a message from windows saying ‘apache http server has stopped working, close program’ .

I am install Magento under Xampp 1.7 for windows platform, and I use Vista Home Basic System. Read the rest of this entry »

How do I show hidden files?

To enable file display from the server, create a .ftpaccess file with the line:
ListOptions “-a”

We often want to delete files in dreamhost, if the document contains .htaccess, we can not delete the document. Now we can use this method and delete all very easily.

If the above method does not function, you can try the following to displaying .htaccess with CuteFTP

To view hidden files on your remote host, follow these steps: Read the rest of this entry »

You don’t have permission to access the requested object of xampp

I am using Vista. I can not open:
http://localhost/security/lang.php?en

Access forbidden!
You don’t have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

It took me about 30 minutes and found this way to resolve the issure:

opened the file …\\\xampp\apache\conf\extra\httpd-xampp.conf

useing editplub open it and went to the line


Order deny,allow
Deny from all
Allow from localhost

changed this to

Deny From none
Allow from All

and saved the file , then i restarted xampp through Xampp control panel Application
stop and start function
and it worked and opened the security page very well
I then entered my passwords for all channels and when finished i went to the mentioned file and returned every thing as it was…

lunarpage not support widlcard, how to install wpmu?

my site is on lunarpages,park *.kingphp.com to /wpmu is not work.
but I have already achieve this features by adding these in .htaccess :

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{HTTP_HOST} ^(.*\.)?kingphp.com$

RewriteCond %{REQUEST_URI} !^/blogmu/

RewriteRule ^(.*)$ /blogmu/$1

Ban users from your website using the .htaccess file

User IP Ban

Valid entries:
IP-addresses should have this format:
xxx.xxx.xxx.xxx

where “xxx” is a number between 0 and 255. In the .htaccess files you can specify a certain IP from your site, but you can also block full ranges.
Examples:
42.13.6.32
Block the specific IP address

212.172.49.
Blocks all IP’s from the range:

212.172.49.xxx
69.241.
Blocks all IP’s from the range:

69.241.xxx.xxx
81.143.4
Blocks all IP’s from the range:

81.143.4xx.xxx.xxx
To actually set the User IP Ban, put this code in your .htaccess file of your server (or create one of your own):

## USER IP BANNING

order allow,deny
#deny from 218.3.89.115
# deny from 222.184.47 dis allow ip from 222.184.47.0 to 222.184.47.255
allow from all

Increase the memory-limit in php

When you run wordpress under xamm,
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 334230 bytes) in D:\xampp\htdocs\test.php on line814.

 1. Open \xampp\apache\bin\php.ini .Do not go to the directory of phpt to find php5.ini .
2. Search”memory” and get the following:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 60     ; Maximum execution time of each script, in seconds
max_input_time = 60    ; Maximum amount of time each script may spend parsing request data
memory_limit = 32M      ; Maximum amount of memory a script may consume (16MB)

3. Modify the value of “memory_limit =” ,usuall change it to 64M.

4. Reboot Apache.

How to use htaccess to change site.com/directory/ to site.com/ ?

If you only want http://kingphp.com/money directory become http://kingphp.com, use:RewriteRule ^catalog/$ / [L]

If you want all directories become http://kingphp.com, use:
RewriteEngine On
RewriteBase /

RewriteRule ^([^/]+)$ /catalog/$1 [L]
RewriteRule ^$ /catalog/ [L]

Note:If you have other subfolders in there (in that catalog dir, you’ll need some additional rule for that also. This will rewrite your files from catalog/ subfolder to your main url.

How to use mod rewrite forward to a new domain?

For examples, when we visit www.google.com, we want it redirect to http://kingphp.com, we can use the following code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

The code posted above should be used on the old server.

How to redirect folders (and all the link)

For example, if we want to redirct http://kingphp.com/php/ to http://kingphp.com/wordpress/

We could use mod_rewrite. Put this in your .htaccess file

Options +FollowSymLinks
RewriteEngine On
RewriteRule /php/(\w+).html /wordpress/$1.html [R=301,L]

12»