add php gd (graphics directly) support in ubuntu
#sudo apt-get install php5-gd
then, restart web service
#sudo service lighttpd restart //or #sudo service apache2 restart
add php gd (graphics directly) support in ubuntu
#sudo apt-get install php5-gd
then, restart web service
#sudo service lighttpd restart //or #sudo service apache2 restart
/usr/bin/mysqladmin -u root password ‘new-password’
/usr/bin/mysqladmin -u root -h myhost password ‘new-password’
mysql -p -u root
install samba in arch linux:
$pacman -S samba
$cp /etc/samba/smb.conf.default /etc/samba/smb.conf
$adduser -d /home/<user dir> -m <user name>
$passwd <user name>
$smbpasswd -a <user name>
add two lines in to /etc/samba/smb.conf
netbios name = archsmb
encrypt passwords = yes
[homes]
browseable = yes
writable = yes
then:
$/etc/rc.d/samba start
$smbclient -L localhost -U <user name>
install lighttpd php fcgi and mysql.
pacman -Ss search
pacman -S lighttpd php fcgi mysql samba perl-cgi
tutorial for using Google App Engine connect mysql server.
method of communication between flash and php(asp, jsp, pysp,ruby):
1. a little bit data: using loadVariables(flash 4 up), getURL(Flash 4 up), loadvars(flash 6 up), send request to http server example of getURL(“http://some?some=some”)
2. much more data example of array and object, using xml. php can product a xml file, using actionscript read xml file.
using Loader and Label, insert external picture and text.
the picture url and text can from xml producted by php or any other server side script.
flash actionscript2 can load server site xml file. include xml producted by php.
I found flash only can load local xml file, try to load a xml file from web server.
web.py and lighttpd is full work currently.
quixote and lighttpd is fully work currendly.
try web.py with lighttpd.
I have enabled mysql service in vps server. but I hate it. this service use more than 64MB memory!!!
try to enable python quixote with scgi on lighttpd.
get python-quixote
get python-scgi
fails to connect remote mysql server, I think mysql server port 3306 has been blocked by DIT firewall.
clean ubuntu package cache:
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
clean isolated package
sudo apt-get install deborphan -y
quick start lighttpd with php in ubuntu(summary):
1. apt-get install lighttpd
2. apt-get install php5
3. apt-get install php5-cgi
4. apt-get install ligfcgi-dev
5. lighty-enable-mod fastcgi
6. /etc/init.d/lighttpd restart
ok create a php file in /var/www and open in you browser to test it.
php5-common is allready
php5-gd ok
php5-gmp ok
php5-mysql ok
php5-pgsql ok
php5-pspell ok
php5-mhash ok
php5-xmlrpc ok
php5-xsl ok
try to enable some module of php5:
php5-common
php5-gd
php5-gmp
php5-mysql
php5-pgsql
php5-pspell
php5-mhash
php5-xmlrpc
php5-xsl
lighttpd with php configuration has been finished. It speed a lots of time. but, currently, they are fully working. php with fastcgi model is better than mod_php of apache server.
I found command “lighty-enable-mod fastcgi” is very useful in this task.
tow useful tutorial about lighttpd + php configuration. 1. Lighttpd PHP fastcgi configuration
2. Setting up PHP with Lighttpd
two more new feature have been add to my vps, they are PHP5, php-cgi and fastcgi. I still setup for lighttpd + php for web server.
nginx, a lightweight http server proxy, it also support email proxy. it is developed by Russian programmer. by the way, nginx using BSD-like license.
lighttpd also is a lightweight http proxy, but lighttpd doesn’t support email proxy.