NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Hosting Discussion
Reload this Page local server installations, urgent help needed.

Web Hosting Discussion Hosting topics including DNS, control panels, servers, choosing a host, support.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 06-22-2005, 12:40 AM THREAD STARTER               #1 (permalink)
Senior Member
 
Porte's Avatar
Join Date: May 2005
Location: I'm right here
Posts: 3,526
Porte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud ofPorte has much to be proud of
 



Caution local server installations, urgent help needed.


Hello guys,

I decided to run a private basic local server to test php, scripts, etc. on my PC. heres what I got:

Abyss Web Server - which is pretty basic for beginners, and can do the job.
Here's what I did:

I installed the server, and its running and I can view http://localhost successfully. No problems with this,

Moving to the problems: I need to install php and mysql.

For PHP

I got this zip file from php.net php-5.0.4-Win32.zip which should contain all required files and extensions.

I unzipped this folder to a directory called php which contains a few folders, few dlls, some stuff I don't know.

The Abyss comes already with documentation to install php: go to the directory where you have installed PHP and click on php.exe if you have installed PHP 4 or php-cgi.exe if you have installed PHP 5.

I did this, and I saw D:\server\php\php-cgi.exe php
All Done with my local server.

I can go to http://localhost and I can see my php executed <? echo "Test"; ?> .. So this means php is working, but I didn't do anything with php.ini yet, or where can I find php.ini or where to place it... I only got 2 php.ini one php.ini-dist and another php.ini-recommended.

That's for php, please help with this part about the ini even its working fine.
----------------------------------------

For MysQL - this is the main problem

I unzipped "mysql-4.1.12a-win32" and I found a Setup, i run it..
I installed it complete to D:/server/mysql, remember php is installed D:/server/php and abyss D:/server/Abyss Web Server
????: NamePros.com http://www.namepros.com/web-hosting-discussion/100727-local-server-installations-urgent-help-needed.html

Back to mysql setup-- I did all in the setup, then configured it and now mysql runs as a windows start service. I also choosed root password, port, max conn, all done. So I should have php and mysql installed and running.

The problem related to mysql is that whenever I use a mysql function in my php code and when I try to open up phpMyadmin it gives me error

Cannot load mysql extension
check php configuration


-------
nutshell,

I have listed 2 problems in this thread, one related to php.ini I don't know which one is the main php.ini and should i rename it? or place it in windows?

also I don't know how load all mysql extensions to work with database driven scripts in php as for now it gives me an error: cannot load mysql extensions

Any helpful ideas, please assist!

Thank you,
Ahmed

Oh after some research figured it.. I had to rename the php.ini-recommended to php.ini and change the extensions directory inside it where extensions reside. Then i had to start a sql dll file as a startup windows service, and last thing i had to remove the ; beisde the extension in php.ini to load it automatically.

It works now guys, so thanks anyway.

Please close this..
Porte is offline  
Old 06-23-2005, 04:05 PM   #2 (permalink)
Account Closed
 
abdulmueid's Avatar
Join Date: Jun 2005
Location: Mozambique
Posts: 607
abdulmueid has a spectacular aura aboutabdulmueid has a spectacular aura about
 



Regarding php.ini:
Copy the php.ini-dist file to your C:\Windows\System32 directory and rename it php.ini

Regarding MySQL:
Look into your mysql directory and there you will find a file named my-small.cnf. Rename this file into my.cnf and copy it into D drive, so that it becomes D:\my.cnf

EDIT: All the extension-specific variables related to the MySQL extension should be in the [MySQL] section of the php.ini file. Edit them according to your MySQL configuration.

Hope this helps.
Last edited by abdulmueid; 06-23-2005 at 04:12 PM.
abdulmueid is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent :: Dedicated Server Needed webster3 For Sale / Advertising Board 0 03-31-2005 06:53 AM
URGENT -- Tsunami Warning -- Evacuation Required -- Prayers Needed Kevin123 Warnings & Alerts 7 03-28-2005 12:53 PM
Dedicated Server Needed!! Nicko Web Hosting Offers 12 03-04-2005 06:32 AM
Moving vBulletin to a new server. [Tutorial] CreativeLogic Webmaster Tutorials 6 02-24-2005 02:07 PM
Whois search that grabs all data :) (php/linux needed) axilant CODE 1 09-08-2004 09:31 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:35 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger