Skip to main content

Posts

Showing posts from March, 2016

How to move your web folder in the account on freeshells.org!

Run ssh and login with your own account (ex. fs-youraccount)

check the path where is located your web area by going up for 2 folders and changing to the web directory

In my case my home folder is:
/var/www/clients/client456/web303/home/fs-guida/
 and my web folder is
/var/www/clients/client456/web303/web

Just create a symbolic mlink
ln -s /var/www/clients/client456/web303/web /var/www/clients/client456/web303/home/fs-guida/

And now you can see your "web" subfolder via ftp.

That's all :)

If you need a basic (italian) guide to have a new shell and website for free follow this link:
http://guida.freeshells.org/
La guida per avere una shell gratis e farci girare un bnc o psybot o altro.

Get the version of opencart from the index file using an external script.

If you are writing standalone scripts that are using the informations from opencart this small function can be useful. It will return the current version of opencart.



function getcurrentversion($indexfile='index.php'){
    if(file_exists($indexfile)) {
        $fd = fopen($indexfile,'r');
        if(empty($fd)){return false;}
        while (!feof($fd)) {
            $buffer = fgets($fd);
            if(preg_match("#define\('VERSION', '(.*?)'\);#",$buffer,$matches)){
                fclose($fd);
                return $matches[1];
            }
        }
        fclose($fd);
    } else {
        return false;
    }
}

I add also a switch with different opencart versions. Not very useful but there are also older and not (not anymore) documented versions.



switch($version){
    case '2.2.0.0':
    break;
    case '2.1.0.2':
    break;
    case '2.1.0.1':
    break;
    case '2.0.3.1':
    break;
    case '2.0.2.0':
    …

Portable ASP Web Server for Windows! Definitive Solution to not waste time!

If you don't want to install a lot of useless stuff on your computer I highly recommend to use

Baby Web Server
http://www.pablosoftwaresolutions.com/html/baby_web_server.html

This is the fastest, simple, best, portable solution to have a webserver that supports Microsoft ASP (Active Server Pages).

It's simplicity is a miracle if confronted with all the stuff that you need to do with an iis installation and configuration.

It just Works!

how to refresh Wordfence Falcon Cache - wordpress plugin

The fastest way to *refresh* Wordfence Falcon Cache is to Disable and Reenable it from the "Performance Setup"!


OTHERWISE

delete all the files from within

That easy? well, yes ...

Remember to manually backup not only the .htaccess but also your wordpress.




Forbidden tiki-install.php - [SOLUTION]

403  Forbidden tiki-install.php

When this error happens during the installation
403 Forbidden You don't have permission to access /tiki-install.php on this server.

In most cases it's not an error related to the files permissions.

Check your error logs before anything so that you can solve the specific problem as fast as possible.

In my case I got this error:
[rewrite:error] [pid 1964:tid 2044] [client ::1:11439] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : tiki-install.php, referer: http://localhost/tikiwiki/tiki-install.php

And solved by configuring the htaccess with:

Options +FollowSymLinks If you have installed tikiwiki in a subfolder also remember to change the rewritebase (ex. with tikiwiki):

RewriteBase   /tikiwiki/