Ana içeriğe atla

Kayıtlar

php etiketine sahip yayınlar gösteriliyor

Eclipse 3.7 PDT on Kubuntu

I have installed Eclipse 3.7 by using repos (universe maybe) and then installed PDT from within Eclipse. I used the instructions on web page http://wiki.eclipse.org/PDT/Installation#Install_a_JVM by adding Indigo update site. It works.Now its time to grab info about Aptana.

Php 5.3 problems

I have stucked with Php 5.3 and Mysql 5.5 packages installed from Remi repo to Centos 5.7 server. So I removed them and decided to use distro's old packages. Now it seems to work fine. I tr to satisfy Yii's requirements. Although the requirement checker says it is installable to my system, I try to provide more requirements for Yii namely, APC,Dom,pdo_mysql etc. As you guess when installing packages (pdo_mysql,APC etc)  with pecl some problems happen. One of them happens when installing APC, the error "make: *** [apc.lo] Error 1". The solution is to install pcre-devel package. I dont think APC is a good optimize, lets use it for the Yii's sake.

Yii journey continues

Since a couple of days I have been geting along with Yii. I follow the instructions from Larry Ullman's page. At first I try nginx as web server, but when url rewriting and session handling I got some problems. I thought it is because of nginx,ie I mean I dont know the right way to fix nginx. Then I started httpd and now trying it.As a requirement of Yii installation, I saw pdo_mysql needs to be installed. Now I try to install it.

Yii Nginx Php FastCgi Url Rewrite Configuration

When you use yii url rewrite feature, actually it is configured for the apache web server. For people like me who uses nginx for web serving purposes one needs to do additional configuration to Yii. Here   is a good blog post which suggests a solution for our problem. After doing this one can get better written urls. Thanks for the info William. Edit: Here is a snippet from Yii CookBook and here is a complete config for Yii,PHPFM and Nginx from Yii's wiki.

Php 5.3 Fastcgi contd

I found a way of starting php fastcgi processes thanks to howtoforge,.com article Actually I have tried php-fpm with no success and didnt try any further. But it was really simple. One needs to set cgi.fix_pathinfo=0 at php.ini. And with proper user and group account names on /etc/php-fpm.d/www.conf file, php-fpm just works.  

Centos Remi Php 5.3 Fastcgi etc

Recently looking for centos 5.6 server's php update. Some 3rd party repos over there to choose from beside the centos testing repo. Tried Remi,Ius repos. Generally there are dependency problems about packages and problems with fast cgi on php. Dependency problems are crazy and discouraging. When you upgrade to php 5.2 or 5.3 previously working fast-cgi programs could become not working. Possible maybe-working cgi programs are spawn-fcgi and php-fpm. Here are some working commands  yum --enablerepo=remi install php-common php php-suhosin php-cli php-mysql mysql spawn-fcgi -a 127.0.0.1 -p 9000 -f /usr/bin/php-cgi -C 5 -U php