Packages to install to run PHP: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo service apache2 restart Some optional / useful php libraries to install:
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:
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:
Ever since upgrading my PC to Windows 7, I’m always asked to enter my login to a network drive connected to a Linux server via samba everytime PC is restarted, even though the option Remember my credentials is checked. Why does window provides an option that doesn’t work?
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…