Prettyscripts

Ubuntu: Install and Setup vsftpd

To install vsftpd: sudo apt-get install vsftpd By default it’s anonoymous only. to change and allow local user to ftp files to and from server: sudo vi /etc/vsftpd.conf change / uncomment the following accordingly:

Command line PHP

Note: this post applies running PHP scripts on Unix environment. Modifications may be required to from windows environment. Running from command line Run the script with PHP command: php your_file.php For PHP command options:

Linux and Php: Timezone Setting

Recently a server was upgraded to FC14 with PHP V538 and when running PHP based website, the following warning is displayed: PHP Warning:  date(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and…

Continue Reading »