Categories
Sysadmin

Moodle initial installation no image and css slashargument issue

Fix on the moodle DB

select * from `mdl_config` where name like "%slashargument%"
update `mdl_config` set value=0 where name like "%slashargument%"

 

Categories
Sysadmin

Sudden blank magento page

do this in magento installation directory on server

find ./var/cache -type f -delete

php -f shell/compiler.php -- state

php -f shell/compiler.php -- disable

php -f shell/compiler.php -- clear

php -f shell/compiler.php -- state

 

Categories
Sysadmin

Php5-fpm on ubuntu 14.04 stop: Unknown instance:

Error: stop: Unknown instance:

It is know bug add

first kill all php5-fpm instances than

Workaround (untested): add the line “reload signal USR2 to /etc/init/php5-fpm.conf.

https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242376

Categories
Sysadmin

Stopping registration spams from website

A very nice tool to stop spams and bots , specially from registration on your website.

BotScout helps prevent automated web scripts, known as “bots”, from registering on forums, polluting databases, spreading spam, and abusing forms on web sites. We do this by tracking the names, IPs, and email addresses that bots use and logging them for future comparison. We also provide a simple API that you can use to test forms when they’re submitted on your site.

see detail here