Another take on installing Magento on CentOS 5.4Monday, May 3. 2010There are other installation guides: CentOS 5.2/64bit, CentOS5.4 and one from Magento forum. This is another take on the matter.
* [Zend] name=Zend Server baseurl=http://repos.zend.com/zend-server/rpm/$basearch enabled=1 gpgcheck=0
[Zend_noarch] name=Zend Server - noarch baseurl=http://repos.zend.com/zend-server/rpm/noarch enabled=1 gpgcheck=0
End of the road?Sunday, April 25. 2010It seems that it has become impossible to run web-services on Debian 64bit platform. The segfaults are now too frequent and repeatable on the same web page. There is something completely broken on Lenny. I even tried using Zend Server instead of regular php and the results are still: [Sun Apr 25 11:57:37 2010] [notice] child pid 5240 exit signal Segmentation fault (11) [Sun Apr 25 11:57:38 2010] [notice] child pid 5241 exit signal Segmentation fault (11) [Sun Apr 25 11:57:38 2010] [notice] child pid 5242 exit signal Segmentation fault (11) [Sun Apr 25 11:57:39 2010] [notice] child pid 5214 exit signal Segmentation fault (11) [Sun Apr 25 11:57:40 2010] [notice] child pid 5218 exit signal Segmentation fault (11) [Sun Apr 25 11:57:40 2010] [notice] child pid 5235 exit signal Segmentation fault (11) [Sun Apr 25 11:57:41 2010] [notice] child pid 5216 exit signal Segmentation fault (11) I guess I've also found this happy camper: Also the second "happy happy joy joy"- moment was that with newer Zend-Framework. The old code stops working completely with "Fatal error: Unsupported operand types in /usr/local/zend/share/ZendFramework/library/Zend/Translate/Adapter.php on line 212". No trace but I guess it was caused by the very first line in the code. Downgrading and manually removing all cache-files helped with this but the segfault remains. The segfault also happens on CentOS as well and it is not actually related to fore mentioned Debian bug at all, even though I have that bug as well. Somehow I had managed not to commit a change I had made and a regression bug popped up. This segfault was caused by by a method calling itself in an unending recursion. When the stack runs out, it segfaults the php which I'm actually very happy about.
The Nokia Windows experienceSaturday, January 2. 2010The only one thing I keep the original Asus EEEPC windows installation hanging around is the PC Suite. The only thing I do with it is to back the phone up. This means that when I do boot to the Windows the vicious cycle of rebooting starts. What makes this experience even more gratifying (for the masochists) is the Norton Security and the stability and correctness of the PC Suite, the phone and the updater software. I started yesterday and I am still trying to succeed.
I have been thinking of buying the N900 phone to replace my current phone but if it requires use of PC Suite for anything my next phone will not be a Nokia. While writing this the eight reboot has finished and the windows is still updating. And it has now finished and requires the ninth reboot! Nyt kyrsii jo satasellaMonday, December 7. 2009Dec 7 19:12:38 vcust362 kernel: [465884.894733] php[22592]: segfault at 7fca2b160ac0 ip 7fca2b160ac0 sp 7fff2b6c4b68 error 14 in libtasn1.so.3.0.15[7fca3009d000+f000] Yksinkertainen tosiasia taitaa olla, että 64bittisien Lennyn php ei toimi. Enkä tiedä korjaisiko asian se, että kääntäisin itse uuden version. Tämä on kertakaikkisesti liian työläs siirtyminen toimivasta CentOS ympäristöstä. Olen nyt hukannut 8 tuntia siihen, että olen yrittänyt saada edes toimivan ajoympäristön php+java kilkkeille. Mikään ei mene tappelutta, kaikki kaatuu ja segfaulttaa. Kaikki oletukset on väännetty ja käännetty varoiksi vielä niin, että suurin osa yleisistä web-ohjeista on väärässä, kun se debianin tapa vaan tehdä se juttu on niin oikein ja kaikki muut ovat väärässä.
Will I ever learnSunday, December 6. 2009Debian always fails when you need it most:
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "make: "..., 6make: ) = 6 write(2, "*** [yritykset.imp] Segmentation "..., 38*** [yritykset.imp] Segmentation fault) = 38 write(2, "\n"..., 1 It is nice that installed new operating system, installed by the professionals of the virtual machine provider is broken from the very first meters. I haven't yet met Debian installation that works as specified and Debian is still the only linux distribution I am really afraid to upgrade. Especially if the upgrade contains core pieces and require a boot. Debian has actually wasted more of my time than windows ever has! To be honest, the reason for that is that I am more capable of tracing errors and fixing things with Debian than with windows. I am not so sure anymore that this is a good thing. I am usually smart enough to give up with windows in time but Debian being kind of linux is just begging it. And of course I can always bitch and moan afterwards...
Installing wink on 64bit Fedora 12Monday, November 30. 2009
In case installer complains something that is still missing apply pattern:
Resulting installation may or may not work, I give no guarantees. * Section commented out:
How to fail with security?Tuesday, November 24. 2009Easy. Allow users to install packages without root-password. That means that you can install trojans with root-privileges. Meanwhile add very well tested (NOT!) selinux-rules that make life terribly hard. And update the management commands so that they are not backward compatible with previous syntax. For example let's say that you try to install Komodo-edit to do some php-work? It will not work. Let's say that you have donwloaded ZendFramework and installed it to your own-directory. It will not work and even after the instructions given by the selinux to fix the problem you will finally run into a situation where selinux is preventing you to use the fix command given by selinux. What is the result? You have a system that will have selinux disabled and root access for package installation without password. FAILURE!
Subsonic wma flac ogg playbackThursday, October 22. 2009I have CentOS 5.3 server with additional repositories, see extended entry for versions of ffmpeg and mplayer. I have written two scripts for playbacks. First one is:
which I call swiss.sh. This is from Activeobjects-forum. And the second one called wma.ssh is:
Sorry, I've lost the original source. First one is used with just one step: "swiss.sh %s %b" and the second one requires two steps. First step: "wma.sh %s" and second "lame -r -b %b - -", the "-r" is essential! Continue reading "Subsonic wma flac ogg playback" Jasperreports and PHP a success - kind ofSunday, September 6. 2009
Here is an example that can produce pdf-report with subreports and parameters from Postgresql-database.
Matkapuhelin modeemina, Fedora 10Sunday, May 31. 2009Ubuntuporukoilla on oikein hyvät ohjeet. KPPP:tä en löytänyt ja NetworkManglerilla/graafisella kilkkeellä ei tullut suoraa voittoa, joten loin ohjeen kolme tiedostoa: elisa, elisa-connect-chat ja elisa-disconnect-chat tiedostot. Otin suoraan Elisan mallitiedostot ja vaihdoin bluetoothista kaapeliin. Fedorassa pon- ja poff-skriptat ovat saatavilla, mutta eivät ole polussa joten tein pari apuskriptaa:
ja
resolv.conf.elisaan kävin lätkimässä skriptan testiajon palauttamat nimipalvelimet:
Tuntuu toimivan. Java, php and Jasper ReportsSaturday, May 9. 2009There is a thing called java-bridge that allows you, if I understood it correctly, to talk to either java runtime or mono runtime from php. And it also provides methods of doing that the otherway around. And if I understood it correctly there are two ways the php application can access the jvm, either by socket or by using application server. The access method is configured in /etc/php.d/java.ini. Of course to get to configure anything you have to have java-bridge installed. In my case it meant downloading the latest source, yum installing tomcat and rpmbuilding the java-bridge package from the tarball with php-java-bridge-5.4.4.2-1.i386.rpm I have so far installed php-java-bridge and php-java-bridge-mono. I have also run the java-bridge examples from tomcat and found out... Update: 02-September-2009, this entry was interrupted by something probably related to leaking dishwasher which stopped this work for whole two months.
Java applets and programs dying after last updateWednesday, March 25. 2009I was about to play a quick game of Ticket to Ride but alas after last evening's update the applet did not work. What was even more evil was to find out that nothing related to java functioned reliable. After stracing I found that java hung on futex() and on read(). That was very warming and cozy but got me nowhere expect to Red Hat's bugzilla. And there the salvation was on comment 7. Now I just kill the applet before gaming and wait for next update which fixes imsettings applet. After couple of updates this issue has gone away... Mounting xen-volumes without XenMonday, March 2. 2009The short answer is "fdisk -l -u" and "losetup" are your friends.
For example. This morning I noticed that one of the virtuals was down and attempt to start it always resulted a hang on "Detecting new hardware". I don't know what causes it but I knew that if disable Kudzu the machine will probably boot. Looking through /etc/xen/web I found that the disk was phy:/dev/host/web with xvda. fdisk -l -u gave Levy /dev/host/web: 10.7 Gt, 10737418240 tavua From that three things are apparent: 1) Partition 1 is boot and partition 2 has root inside it. 2) The beginning offset for partition 2 is 208845 * 512 = 106928640 3) the root file system is inside lvm Next step is to see which loop-device is free with "sudo losetup -f". This gives loop0. Then I set it up with: "sudo losetup /dev/loop0 -o 106928640 /dev/host/web". As it is lvm-volume I don't try to mount it directly but instead do "sudo lvm" to get into lvm. Inside lvm I run two commands "vgscan" to see that LogVolGroup00 is what contains the logical volumes I'm after and "vgchange -a y LogVolGroup00" to activate that volgroup. After that /dev/LogVolGroup00/ has mountable devices for the volumes. Reverse steps are after unmounting devices: "vgchange -a n LogVolGroup00" and sudo losetup -d /dev/loop0.
Is this so hard to figure out?Thursday, February 26. 2009This is not by means the best way to do this and if you have a better solution I am very happy to hear about it. I have had no training in the use of this application and I purchased a copy two months ago, so I am probably doing things more complicated way than it is necessary. Anyway, I printed this out and left it as quiz for two days to our break room with question: "What is this/what it does?". After two days of silence I got an alternative solution without "multiply" but with one more "subract" after I explained what this is. Can you answer the question?
Continue reading "Is this so hard to figure out?" Zend Framework is really getting under my hairThursday, February 19. 2009No Microsoft SQL Server support on LinuxI have spent three hours trying to get Microsoft SQL server connection working. That included recompiling php-extensions and lot's of googling before it was obvious that it is not possible because the framework is actually broken. There is no way you can access Microsoft SQL server from linux-server with Zend Frameworks 1.7.4 without fixing the framework itself! There is no dblib-adapter and you can not have mssql-adapter with linux-server*. File-element probably does not work correctly with Zend_Dojo_FormI have spent at least three hours trying to get file uploads to function with Zend_Dojo_Form and now I am quite sure that it is not possible because Zend_Dojo_Form is broken and kills the form element and validation of the form**. Probably bad placement of call for view helper kills server
Disabling Form elements on creation does not work with plain Zend_Form_ElementsWith "Zend_Dojo_Form_Elements" you can use "disabled" to disable the elements and with "Zend_Form_Elements you can not". The latter creates code 'disabled=""' which is wrong. *** There are a lot good things in Zend Frameworks but now I am seriously starting to doubt if it is worth of it. The learning curve (requires reading the framework code to find out if it is your bug or theirs that kills the day) is very steep. Fixing something that other people constantly fix and polish is also a very bad idea. * I use PDO-directly with dblib. ** I gave up and do not use form's validator and use standard php mechanisms for moving uploaded files *** I added function F($string) which replaces html-tags with other html-tags and also deletes 'disabled=""' from the form-element output.
(Page 1 of 8, totaling 106 entries)
» next page
Competition entry by David Cummins powered by Serendipity v1.0 |
Calendar
QuicksearchKategoriatKanavoi tästä blogista!Blog AdministrationSää ja määLoading the PEAR Services/Weather module failed. Please insure that the module is installed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||
