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
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
Feb
11
In a server which implement Squid as Web proxy with the same machine to ChilliSpot. It has possiblity to bypass ChilliSpot authentication by set web browser proxy to Squid port and then can start surfing Internet.
สำหรับเครื่องเซิร์ฟเวอร์ที่มีการเปิด Service ในการ Authentication ของ ChilliSpot รวมกับภายในเครื่องมีการทำ Web Proxy ไว้ด้วย อาจจะทำให้สามารถเล่นเว็บไซต์ได้ง่ายๆ โดยการ Bypass Authentication ของ ChilliSpot ไปใช้ Proxy Service ที่ให้บริการอยู่ภายในเครื่องแทนได้
Ref: 212cafe.com
Posted by Warun Kietduriyakul
Last modified on 2008-02-11 17:49
Thu, 28.08.2008 20:28
แวะมาเยี่ยมครับ ท่าทางจะไม่ได ้ไปซะละงานนี้ เนื่องจากเสาร์อา ทิตย์นี้มีทริปกับบริษัทพอดี T_ T