One of the best git commands i found so far is the following:
git config credential.helper store
This way git doesn’t ask anymore for user / pass when you try to push / pull from a repository givind us the posibility to automate things. Automate code pushing to servers . Automatic folder sincronisations with a git repo and much more .
Building a custom ( adding a custom plugin ) version of nginx in debian is not a very complicated job:
Create a directory ( ex test2 ) and change directory to it.
After that do:
apt-get source nginx
in debian directory you should modify rules file , then if necessary source/include-binaries , add your module in modules directory and modify README.Modules-versions to reflect your changes .
Change back to test2/nginx-1.4.1 directory and run
If everything works ok and module is configured correctly you should have it ready to be run:
dpkg -i nginx-full_1.4.1-3ubuntu1.3_amd64.deb nginx-common_1.4.1-3ubuntu1.3_all.deb
Yii Framework it’s a php framework that will help developing Web 2.0 applications.
First step in using this framework would be to install it. What you will typically need for developing a decent application: an apache / php / mysql / memcache server.
If you are using TFM server all requirements are already met .
Download the framework itself from: http://www.yiiframework.com/download/ and unpack it in /www/yii directory.
Add an apache vhost to point to /www/yii. A typical vhost would look like this ( modify yii.tfm.ro to reflect your host or domain :
DirectoryIndex index.php index.html
Options -Indexes +FollowSymLinks -Multiviews
Allow from All
CustomLog /var/log/apache2/yii.tfm.ro-access.log combined
Restart your apache.
Next create your application using :
./framework/yiic webapp mytest
Create a Web application under '/www/yii/mytest'? (yes|no) [no]:
Answer yes and it will generate your skeleton application that will be the base of your application.
Navigate to http://yyi.tfm.ro/mytest and you should see something like this:
You should also see this video regarding the installation of yii framework:
I use svn on daily basis. everything was ok until today when a new this kind of error popped up :
root@tfm33: /Space/server/_wks/trunk# svn commit
svn: Commit failed (details follow):
svn: Aborting commit: '/Space/server/_wks/trunk/libmp3lame' remains in conflict
An no matter what i tried it stayed in conflict. doing some google-ing i found out that the fix is quite simple:
svn resolved /Space/server/_wks/trunk/libmp3lame
If you want to connect to an Oracle database with PHP you will need the pecl module named oci8
First in order to compile it you will need Oracle Instant Client ( both basic & sdk ) . You can download them from here:
If you don’t have an Oracle account you will need to create one.
At the time of this post the following files are available: instantclient-basic-linux32-18.104.22.168.zip , instantclient-sdk-linux32-22.214.171.124.zip .
Create a directory in /opt mkdir /opt/oracle/instantclient and copy those files there . Then unzip them . You will need to create a symbolic link ln -s libclntsh.so.11.1 libclntsh.so
Then you will need to install libaio if you don’t have it already . Don’t forget to add /opt/oracle/instantclient/instantclient_11_2 to /etc/ld.so.conf .
At this point you are ready to install the pecl extension to php.Create a temporary directory ( /tmp/1 ) and cd there.
pecl download oci8
tar xf oci8-1.3.5.tar
edit /etc/php.ini and add
And enjoy oracle extension for php. Note: if you have apache running restart it.