[ITA] Configurare Apache/php/mysql + Eclipse + xDebug su Mac Os X con Mamp

osx-php-eclipse-pdt-apache-xdebugA causa delle numerose tribolazioni degli utenti mac Os X nel tentativo di configurare un buon ambiente di sviluppo dedicato al php, ho deciso di scrivere questa semplice guida, utile per Mac Os X che utilizzerà:

  • Mamp
  • Eclipse
  • Xdebug

Continue reading “[ITA] Configurare Apache/php/mysql + Eclipse + xDebug su Mac Os X con Mamp”

Incoming search terms:

  • configurare php su IMAC (18)
(Visited 3,326 times, 1 visits today)

Shineisp Installation Log / mini How to

Shineisp is an italian open source WHM (Web Hosing Management) and we are going to give it a try. I recall i alredy installed it last year, but the machine had a poor hardware and shineisp is a greedy MVC phpmysql program. For this “instalfiguration” we assume we are on Debian Squeeze and we will cover the steps needed to get shineisp up and running in 10 minutes.

Continue reading “Shineisp Installation Log / mini How to”

(Visited 2,294 times, 1 visits today)

Arduino as flight simulator interface for any rc receiver

Important Update

If you are going to use this code, please read on comments, you will find a better written code, shorter and with no conversions. Thanks to Fabien.

You might be interested also in :Quacopter hexcopter, optocopter FMS models

I have left my usb adapter for my RC Radio to flight simulator to my friend Simone.
I have a spare arduino (any arduino is suitable, until it as at least the usb port, obviously 🙂 ) and a spare turnigy receiver with damaged antenna (max range 5 meters, enough for the coach). Continue reading “Arduino as flight simulator interface for any rc receiver”

Incoming search terms:

  • arduino rc simulator (23)
  • arduino rc receiver (18)
  • arduino (17)
  • arduino flight simulator (15)
  • arduino rc receiver interface (15)
  • gy-65 arduino (15)
  • r/c receiver usb (10)
  • pulsein タイムアウト (4)
  • Arduino and receiver wiring quadcopter flight controller (1)
  • forget1xh (1)
(Visited 23,486 times, 1 visits today)

How to configure Wireless Lan Raspberry Headless Server

It could be useful for wlan configuration without a Desktop GUI or just from ssh client, you choose why.


The point is: you can’t do it with iwconfig, unless you have just wep encription enabled, if you use to have wpa/wpa2, instead you want to use wpa_supplicant.
If you type Continue reading “How to configure Wireless Lan Raspberry Headless Server”

Incoming search terms:

  • raspberian (14)
(Visited 4,444 times, 1 visits today)

WordPress and “ALERT – script tried to increase memory_limit to 268435456 bytes” issue

untitledSometimes you can find the following line appearing in your webserver error logs:

[Tue Mar 13 10:48:03 2012] [error] [client 23.19.25.190] ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker '23.xx.25.190', file '/var/www/xxxxx/xxxxxx/xxxxxx/web/wp-admin/admin.php', line 109), referer: http://website.com/wp-admin/edit.php

There is a quick solution and it can be found in a file called:

wp-includes/default-constants.php

[20121223 – UPDATED]: Please, see the Andreas comment below.
It seems to be better to move the “define(‘WP_MAX_MEMORY_LIMIT’, ’64M’);” in wp-config.php rather than default-constants.php. Anyway this stopped after the wordpress update
Thank you Andreas!

you can easily change (around line 96) the var value from 256 megs to the memory size that best suits your server needs.

Do not hesitate to comment for help.

Incoming search terms:

  • late5pf (1)
(Visited 1,900 times, 1 visits today)

WordPress and “ALERT – configured POST variable limit exceeded – dropped variable” issue

ICustom Grunge WordPress Logot may happen in several hosting environments to discover this line in your webserver error log:

ALERT - configured POST variable limit exceeded - dropped variable 'name_of_dropped_variable' (attacker '20.2.26.212', file '/several dirs..../wp-admin/post.php'), referer: http://sitename.tld/wp-admin/post.php?post=181&action=edit

Well i discovered and solved this situation:

Cause: It is caused by PHP suhosin

you can “locate” it on your disk it using the “locate” command as follows

(if it is first time you use locate) type:

# updatedb

then type:

# locate suhosin

for my machine (debian) it is located within /etc/php5/conf.d/suhosin.ini

so you can edit it by typing:

#nano /etc/php5/conf.d/suhosin.ini

Now, look into your suhosin.ini fìle until you see the followings vars:

suhosin.post.max_vars

suhosin.request.max_vars

You want to remove the comment symbol “;” from the very beginning of these two lines and the increase the default value (it should be 200) to at least 500 in order to make complex wordpress themes working properly.

Remember to kick apache2 typing

#/etc/init.d/apache2 restart

Incoming search terms:

  • alert - configured post variable limit exceeded - dropped variable (12)
  • balloonzom (1)
(Visited 2,884 times, 1 visits today)