Jump to content
Sign in to follow this  
mus3na

Setup Php For Windows

Recommended Posts

kita mulakan ngan PHP sak, hokhokhohko.....

OK cita cam ni, aku nak try install PHP and link ngan MySQL aku. MySQL aku pakai Version 4.1.11 and fully working.

mula2 aku install PHP 4.3.11, tapi bila nak read MySQL aku dapat error ni "mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in"

aku try macam2 trick yg ade kat internet termasuk edit php.ini and include line apo aku tak ingat tapi ade la pasal "old password" pun tak solve. than aku uninstall PHP 4.3.11 and aku install PHP 5.0.4. dapat masalah lain lak "Call to undefined function mysql_connect() ".

serabut dah kepala aku, dah dekat 11 jam aku mengadap benda ni. so adekah PHP ni lepas install nak kena configure, sak tul....

cara aku install;

1) aku download PHP 5.0.4.exe for Windows x86 from www.myphp.net

2) aku double click and run la dia

3) pilih location (aku install kat D:\) (wwwroot aku kat E:\)

4) aku masukkan smtp info (Serber = smtp.streamyx.com)

5) Finish, IIS5.1 dia auto edit aku rasa sebab aku tengok PHP dah di registerkan dalam CGI IIS5.1 so aku tak de buat apo2 lai. aku terus execute code PHP yg aku download tu.

PHP application yg aku gunakan ialah Invision Power Board 2.0.3 and phpBB. 999 Help Call

Share this post


Link to post
Share on other sites

aku try trick dalam web tu. first uncoment extension=php_mysql.dll

;extension=php_mssql.dll
;extension=php_msql.dll
extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll

lepastu add path ke libmysql.dll dalam system PATH aku and restart computer. still tak lepas, IPS bagi error ni.

address http://mus3na/forum/install/index.php

Fatal error: Call to undefined function mysql_connect() in E:\Inetpub\wwwroot\forum\ips_kernel\class_db_mysql.php on line 117

PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0

sebelum ni aku try install MySQL 4.0.x tapi bila nak link dia kata password for user root@localhost invalid. sedangkan dalam My.ini memang username = root

Share this post


Link to post
Share on other sites

ok aku try uninstall all MySQL ngan PHP. than aku install MySQL 4.0.24. lepas tu create user = root, password = pass_aku. lepastu aku install PHP 4.3.11-installer. kedua2 beruk ni aku install using default option/recommendation, so dia duduk kat C:\ (C:\mysql & C:\php).

than aku copy upload content dari IPS 2.0.3 ke dalam folder forum IIS 5.1 aku. set permission all file = read + write + execute (aku kasi semua permission sebab dah pening dah).

than aku call install page dari IE6.1. masukkan semua required data, eg database name = test (aku tengok dalam MySQL ni ade ni je, kalau MySQL 4.1.x dia pakai ibdata1 tah la). than lepas fill all info aku dapat error ni.

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) in E:\Inetpub\wwwroot\forum\ips_kernel\class_db_mysql.php on line 120

Share this post


Link to post
Share on other sites

langkah paling senang aa.. rerasa aku .. install bundle (cadangan aku : apachefriends.xammp ) dulu . pah tu tgk cara dia org setting cam mana.... owk ... tgk cara dia org setting httpd.conf ngan php.ini ...

ok .. bro.. ?

Share this post


Link to post
Share on other sites

ni content my.ini aku as shown by MuSQL tools.

******************************************************

#This File was made using the WinMySQLAdmin 1.4 Tool

#12/04/2005 03:44:19

#Uncomment or Add only the keys that you know how works.

#Read the MySQL Manual for instructions

[mysqld]

basedir=C:/mysql

#bind-address=192.168.1.3

datadir=C:/mysql/data

#language=C:/mysql/share/your language directory

#slow query log#=

#tmpdir#=

#port=3306

#set-variable=key_buffer=16M

[WinMySQLadmin]

Server=C:/mysql/bin/mysqld-nt.exe

user=root

password=*******

Share this post


Link to post
Share on other sites

Apache aku kena elakkan seboleh2nye sebab takkan nak run IIS ngan Apache. aku still running ASP ngan ASPX dari IIS ni.

Share this post


Link to post
Share on other sites

bosan....bosan....bosan..... kenapa la open source product tak leh match ngan style aku.... oleh itu aku telah perun semua buku asp aku and marilah kita pakai asp utk buat board. lagi sempoi.

Share this post


Link to post
Share on other sites

Aku guna 2 jenis webserver dalam satu PC.

IIS dan Apache.

Masa nak run IIS kena Off Apache. Dan begitulah sebaliknya.

Mungkin mereka guna port yang sama kut?

Share this post


Link to post
Share on other sites

bosan tul la, aku baru abis up kan windows 2003 enterprise server. ingat nak runkan asp code aku dalam ni, sekali tak lepas! huh, kena setting lagi, pesal la default setting semua sak...... away, mata pun dah pedih, sehari mengadap server.

Share this post


Link to post
Share on other sites

yup, and aku dah dapat solution dia. IIS6 kau kena on kan je ASP.net, tapi aku ade error dalam script dia. ruponye IIS6 default dia turn off parent path apo tah, aku on kan setting tu, terus jalan. ni dah online dah, utk di pandu uji...... jangan wat bandwidth test or security test dah la, aku pakai default setting lagi tu, aku balik dari kelantang minggu depan aku sambung.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...