Mar
17
Today, I try to install apache 2.2 and php 5.2.5 in my vista machine for serveral hours. This is my path configuration in case that you may found the same problem like me.
[Installation Step]
- Install Apache MSI package
- Install PHP5 package
- MySQL, you can do in any step.
[Installation Path]
- Use a location which not "C:\Program Files\" because it needs UAC permission and it hard to config your apache configuration file. (For me, E:\Service\Process\Apache)
- My Installation path of PHP5, E:\Service\Process\PHP525
[Configuration]- E:\Service\Process\Apache\conf\httpd.conf, Check a bottom of the configuration file, PHP package already install a location for you.
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "E:/Service/Process/PHP525/"
LoadModule php5_module "E:/Service/Process/PHP525/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL - I found that it is a fault of installer package. You needs to replace '\' instead of '/' as below
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module "E:\Service\Process\PHP525\php5apache2_2.dll"
PHPIniDir "E:\Service\Process\PHP525" # No Backslash at last character
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL - Done
[Testing]
- Verify your temporary session directory is not read-only
- Verify your temporary upload direcotry is not read-only
- Verify your PHP Path (E:\Service\Process\PHP525\) contains php5apache2_2.dll file.
Check the file you needs from httpd.conf which PHP added for you
LoadModule php5_module "E:\Service\Process\PHP525\php5apache2_2.dll" - Verify your httpd.conf has correct syntax
E:\Service\Process\Apache\bin\> httpd -k config <enter>
No error return - Put simple php file to htdocs directory
<?php phpinfo(); ?> - You should see php information page.
For more details, you can follow the reference site [
1] but I have do nothing.
Posted by Warun Kietduriyakul
Last modified on 2008-03-17 14:48
Mar
8
If you are PHP coder, you shouldn't missing this book! I has reviewed this book today with 2 hours and I would recommended all of you to buy this book. There are some teachnical skills which related to Software Engineering. Design Patterns is a one of that. This book introduce from programmer, software developer and software designner.
ถ้าคุณเป็นนักเขียนโปรแกรมภาษา PHP ละก็ คุณไม่ควรจะพลาดหนังสือเล่มนี้นะ วันนี้ผมได้ลองอ่านหนังสือเล่มนี้ใช้เวลาสองชั่วโมงพลิก E-Book จนจบ และมันเพิ่มความรู้ในหัวหลายเรื่องจริงๆ เหมือนได้ทบทวนความรู้ที่ได้เรียนในวิชา Software Design ซึ่งหนังสือเล่มนี้ ได้กล่าวถึงทั้งแต่ระดับเบื้องต้น จนกระทั้ง การเขียน PHP แบบ Object-Oriented จนกระทั้ง การประยุกต์ใช้ Design Patterns และการวางโครงสร้างสถาปัตยกรรมซอฟแวร์ รวมถึง Deployment ด้วย
By the way, if you are very new to programming world, I didn't suggust this book because they will not introduce you about the principle of programming. You should know at lease the way to write a code and a little algorithm skill. This book is text-based. You may sleep with a book pillow (may be). By the way, it is a one of my recommended lists. You can buy at IT Book House with 15% discount at 13xx THB. I believe that you skill will improve over 400%.
แต่ว่าถ้าเป็นมือใหม่ละก็ ผมยังไม่แนะนำหนังสือเล่มนี้นะ เพราะว่า เขาจะไม่ได้เกริ่นเกี่ยวกับเบื้องต้นมากนัก คุณควรมีทักษะเล็กๆในการเขียนโปรแกรมมาก่อนหน้า และก็ส่วนใหญ่หนังสือเล่มนี้ เป็นตัวอักษร ไม่ค่อยมีภาพ ก็ระวังจะได้หมอนหนังสืออีกเล่มนึงไว้ในบ้านก็แล้วกัน แต่ยังไงก็ตาม มันเป็นหนังสือเล่มนึงที่ผมอยากจะแนะนำนะ ถ้ายังไง คุณสามารถซื้อได้ที่ IT Book House ส่วนราคาอยู่ที่ 13xx บาท. ผมรับรองได้เลยว่าถ้าคุณเขียนโปรแกรม PHP มาอย่างเดียว ทักษะคุณจะเพิ่มขึ้น 400%
A bonus I got from a book is a useful link to this site.
สุดท้ายได้ของขวัญเล็กๆจากหนังสือเป็นลิงค์ไปยังเว็บไซต์ที่มีประโยชน์เรื่องการดีไซน์ [ที่นี่]
Posted by Warun Kietduriyakul
Last modified on 2008-03-08 02:43
Mar
6
I found some problems when I try to deploy my ASP.NET website into wwwroot directory of IIS7 service. It isn't work. The characteristic of my website is include 3 projects together. one is a website, one is a business logic layer project and the last is data layer project. Two project wrote with C# and needs to compile to be Dynamic Link Library (DLL) file that needs to use in a website project. However, when I try to deploy, the code get fatal error with message that it cannot find the link reference such as com.swdev package which I import to ASP.NET code. I cannot find the good keywords that should be use to googling the solution for me. This is my step
- Zip website folder on development machine
- extract to folder inside wwwroot
- start IIS7 service, Ms SQL Express
- Open IE7 with http://localhost/deploydirectory/
Continue reading "ASP.NET Website deployment"
Posted by Warun Kietduriyakul
Last modified on 2008-03-08 00:45
Feb
27
I try to install Adobe Dreamweaver CS3 on Microsoft Windows Vista machine but cannot be success. Now, It take time over 1 full day and I will not continue anymore. By the way, there is workaround that might helpful for you.
ผมได้ลองติดตั้ง Adobe Dreamweaver CS3 บนระบบปฏิบัติการ Microsoft Windows Vista มาตั้งแต่เที่ยงคืนวาน จนกระทั้งบัดนี้ก็ยังไม่สำเร็จ แล้วผมก็คิดว่า มันใช้เวลามากเกินไปแล้ว ซึ่งผมจะไม่หาวิธีแก้ไขต่อ อย่างไรก็ตาม มีวิธีทางเลือกอื่นอยู่บ้างที่ทำให้คุณสามารถใช้โปรแกรมได้
The way is install on the clean system. - -' (Not kidding) Because there are no more workaround for that. If you install in the clean system, it will successful. In my case, I install in virtual machine (VMWare, or you can download Microsoft Virtual PC for free via Microsoft website)
วิธีการที่ผมหาได้คือ การติดตั้งบนระบบปฏิบัติการที่ยังไม่ได้ติดตั้งซอฟแวร์อื่นใด (ใช่แล้ว ผมไม่ได้ล้อเล่นหรอก) เพราะว่ามันไม่มีวิธีแก้ไขปัญหาอื่นแล้ว การติดตั้งบน Vista ที่ยังไม่ได้ติดตั้งโปรแกรมอะไรนั้นประสบความสำเร็จเรียบร้อยเป็นอย่างดี. สำหรับในกรณีของผม ผมได้ติดตั้งโปรแกรมบน Virtual Machine เพื่อที่ว่าจะได้ใช้โปรแกรมบนเครื่องที่ผมทำงานอยู่ได้ (ถ้าหากคุณไม่มีละก็ แนะนำให้ดาวโหลดได้ฟรีจากเว็บไซต์ของ Microsoft, โปรแกรมชื่อ Microsoft Vitual PC)
If you interesting in what I am done, follow me
ถ้าคุณสนใจว่าผมได้ทำอะไรไปแล้วบ้างละก็ โปรดติดตามอ่านต่อไป
Continue reading "Adobe Dreamweaver CS3 and Microsoft Windows Vista Issue"
Posted by Warun Kietduriyakul
Not modified
Feb
12
OS: Ubuntu 6.06LTS, 7.04
time is a command available in linux which use to summarize resources that the focused process used. Sometime, it is use like a test tool to see what resource used when the process get things done such as cpu time, memory, context switch, cpu time (user mode), cpu time (system mode)
time เป็นคำสั่งที่มีมาอยู่ใน Linux ทุกตัว (เท่าที่ทราบ) ใช้เพื่อการตรวจสอบการใช้งานทรัพยากรของโปรเซสที่เราสนใจ ซึ่งหลายๆครั้ง เราใช้มันเหมือนเครื่องมือในการทดสอบประสิทธิภาพ ซึ่งให้ค่าออกมาเช่น cpu time หรือค่าจำนวน clock ของ cpu ที่มีการใช้งานจริง หรือ cpu time (user mode), cpu time (system mode)
When use time command, I don't know why my time command cannot specific some parameters. Sometime it's look like cannot use any parameters meanwhile man page show some of parameters. After I looking for information, I found nothing. No any pages descript about this problem. Do I really one person that silly? No, I won't to be like that. I'm thinking for a bitt and I think that sudo command might help in this solution. Yes! it work! well done. All parameter can be use at this time.
ผมพยายามจะใช้คำสั่ง time บนลีนุกซ์มาสักพักแล้ว แต่ไม่รู้ทำไม Ubuntu ที่ผมติดตั้ง กลับกำหนดอาร์กิวเมนต์ให้กับคำสั่ง time ไม่ได้เลย ทั้งๆที่หน้า man page ก็มี parameter ต่างๆตามปกติ หาข้อมูลใน google ก็หาไม่เจอ อาจจะมีหน้าที่กล่าวถึง แต่เนื่องจากคำมันเป็นคำที่ basic มาก เลยหายากมากด้วย สุดท้าย ก็เลยมาลองนั่งคิดเอาเองว่า มันเกิดปัญหาอะไรขึ้นกับเรา หลังจากนั้น ไปสกิดใจนิดนึงว่า เออ เป็นไปได้ว่ามันจะใช้ privillage command ที่จะต้อง su เป็น root ก่อน ก็เลย จัดแจงลองดู แล้วก็พบว่า มันใช้งานได้จริงๆด้วย เย้! หลังจากนั่งลองกับ tcsh, csh อยู่ ซึ่งมันก็ไม่ได้เกี่ยวข้องเลยสักนิด
Command
- Format:
# sudo time <arguments> <command> - Example:
# sudo time --verbose ls
Posted by Warun Kietduriyakul
Last modified on 2008-02-12 10:00
Thu, 28.08.2008 20:28
แวะมาเยี่ยมครับ ท่าทางจะไม่ได ้ไปซะละงานนี้ เนื่องจากเสาร์อา ทิตย์นี้มีทริปกับบริษัทพอดี T_ T