Ana içeriğe atla

Kayıtlar

Ocak, 2011 tarihine ait yayınlar gösteriliyor

Windows Server Anomalities

Lately I have been struggling on port forwarding to a windows 2003 server from different modems. There were 4 modems pointing to same windows server port. I couldnt have succeeded in forwarding all these same ports from 4 modems to this server. Some were pointing some wasnt. I finally realised that this is a stupid mistake about windows routing configuration. I have had enabled the auto metric configuration for the gateways. But that was the wrong thing I did. There were different metrics for each gateway and this was causing the trouble. I changed them to same number and voila. All ports are forwarding coreectly.  

Centos Nginx PHP APC FastCGI 2 (Dealing with problems)

My journey to nginx continues with problems that follow up. I have had 3-4 problems to get nginx work. But after resolving them voila. It works now :) The problems were: directory index of "/usr/share/nginx/html/vhosts/domain.com/subdomains/data/" is forbidden -> Solved by writing the correct domain name to nginx.conf or any of virtual host files. No input file specified -> Solved by writing the full path of php scripts to one of my virtual host conf. FastCGI sent in stderr: "PHP Fatal error:  Uncaught exception 'Zend_Session_Exception' with message  'Zend_Session::start() - /usr/share/nginx/html/vhosts/lib/Zend/Session.php(Line:438): Error #2 session_start() -> which is solved by giving correct ownership to folders /var/lib/php and /var/lib/php/session. Before those folders owned by root.apache and I changed them to root.php where php is the correct user. Now lets benchmark the sites!  

Centos Nginx PHP APC FastCGI

These days I am working on centos vps installation. I try nginx for the first time and heard that it will be delicious when it is served with php,apc and fastcgi. I began by enabling EPEL repos to centos. Installed php and its required modules. Then nginx and applied its fast-cgi patch according to nginx's wiki site. Alternatively one can use spawn-fcgi program, I installed but not using right now. Then it comes apc. For that install php-pear and then "pecl install apc". If you get an error like "ERROR: make failed" as in my case, try installing pcre-devel and after that pecl install apc works. And lets try if all is working.  

"ssh_exchange_identification connection closed" error

I have getting these messages from a windows install of bash and ssh when I try connecting to this host. The problem was about reverse dns resolution.Ssh cant resolve reverse dns's of clients and because of "ALL:PARANOID:DENY" directive on /etc/hosts.allow file on this host, it was refusing the connections. To resolve it I commented out this directive and restarted the service and ohh.