473,799 Members | 2,997 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Any Php5 help for a newb

I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows
but having problems.
I don't want to install those automatic 'all-in-one' packages because I want
to know how to do it myself. I think I installed Apache correctly because
when I type http://localhost in my browser I see my directory, but echo
phpinfo() gets me a blank page. Can someone please point me to a resource
that explains how to get php5 working?

I put the doc root path in my php.ini to point to C:\Program Files\Apache
Group\Apache2\h tdocs and no go..
Also, am I suppose to put my public_html folder inside of htdocs in tact, or
do I empty the contents of my public_html into htdocs?
Thanks
Jul 17 '05 #1
3 1640
mack wrote:
I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows
but having problems.
I don't want to install those automatic 'all-in-one' packages because I
want to know how to do it myself. I think I installed Apache correctly
because when I type http://localhost in my browser I see my directory, but
echo phpinfo() gets me a blank page. Can someone please point me to a
resource that explains how to get php5 working?
I put the doc root path in my php.ini to point to C:\Program Files\Apache
Group\Apache2\h tdocs and no go..
Also, am I suppose to put my public_html folder inside of htdocs in tact,
or do I empty the contents of my public_html into htdocs?
Thanks


First of all, and I mean this very politely and not snidely at all, read the
Apache documentation. It is very good. Get a good conceptual
understanding of what is _supposed_ to be happening. Then you can look to
see if it did.

Look at the logs to make sure that Apache is recognizing the ".php"
extension and that it did, in fact, execute the script and did not produce
an error-message, which might only appear in the log.
Jul 17 '05 #2
In article <7HGod.5782$hJ6 .5203@trndny01> , "mack" <time@.com> wrote:

:I put the doc root path in my php.ini to point to C:\Program Files\Apache
:Group\Apache2\ htdocs and no go..
:Also, am I suppose to put my public_html folder inside of htdocs in tact, or
:do I empty the contents of my public_html into htdocs?
:Thanks

Another poster has said it: you really have to read the documentation.
There are a couple-three things you have to add to httpd.conf to get php
working, and it's a good idea to add your php directory to your path.

There's a run-through here:
http://www.aesthetic-theory.com/learn.php?server2

The binary install of Apache2 (at least the Windows one I used) doesn't
include the idea of public_html (although, you can set that up if you
want, but in general you'll be the only user on your system); you should
put your php_info() script straight into htdocs. Make a file for it,
call it test.php and just put

<?php
php_info();
?>

into it. Then navigate there with your browser. You should use a
straight text-editor, not Word, especially when you start editing the
config files. I think Notepad is straight ascii. Emacs is available ...
--
Looks like more of Texas to me.
.... Arizona, where the nights are warm and the roads are straight.
Jul 17 '05 #3
I have installed PHP 5 on XP several times and each time the only way I
could get it to work properly was by installing it in CGI mode. It tells you
how to do this is the PHP documentation.

"mack" <time@.com> wrote in message news:7HGod.5782 $hJ6.5203@trndn y01...
I'm trying to get MySQL, Apache, and Php5 to play nice together in Windows
but having problems.
I don't want to install those automatic 'all-in-one' packages because I want to know how to do it myself. I think I installed Apache correctly because
when I type http://localhost in my browser I see my directory, but echo
phpinfo() gets me a blank page. Can someone please point me to a resource
that explains how to get php5 working?

I put the doc root path in my php.ini to point to C:\Program Files\Apache
Group\Apache2\h tdocs and no go..
Also, am I suppose to put my public_html folder inside of htdocs in tact, or do I empty the contents of my public_html into htdocs?
Thanks

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2993
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with speed. They had a vague idea that PHP5 has improved handling of objects over PHP4, so it would probably be faster also. In fact it seems slower. We did a few timing loops, in which a a number of objects were created and and members were...
11
10586
by: neur0maniak | last post by:
Hi, I've been eager to try out PHP5, so I've dumped it on my little dev machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the "mappings" page as I'm used to doing with PHP4. I've got my php.ini all set in C:\Windows. I created an index.php containing: <?php phpinfo(); ?> When I try to view the page, I get "HTTP 400 - Bad Request".
4
5838
by: badbetty | last post by:
Dear Googlers I have installed PHP5 to run on WinXP against Apache 2. It works! ie. I have tested a few simple scripts and a basic xml document parse. I now want to try the XSL extension so I can transform xml docs. Having copied the php_xsl.dll to a directory where it can be found and done the uncommenting in php.ini, it still will not work. The script I
4
2031
by: Skeets | last post by:
When the data structure looks like this: <page> <point id="1"> <premise> 1+1=2 </premise> </point> <point id="2"> <premise> round is better than square </premise> </point> <thought id="1">
5
2165
by: Aziz | last post by:
Hi, I've recently contacted technical service of a web hosting company and asked them wheter or not they're gonna upgrade to PHP5 and MySQL5. Here's a quote from their response which confused me a little: "As php5 and mysql5 are still beta versions we don't install beta versions on production servers due to secure reasons, we install only current working versions on production servers"
4
2761
by: Chuck Anderson | last post by:
I am trying to install Php5 on my WindowsXP machine (at home, not on the 'net). I downloaded the Php Windows binary at php.net, unzipped it to c:/Php5, changed my Apache config file to use Php5 with: LoadModule php5_module "c:/Php5/php5apache2.dll" .... and restarted apache (Apache/2.0.55 (Win32) mod_ssl/2.0.55 OpenSSL/0.9.8a) Php5 works fine, but when I execute phpinfo, the registered streams are:
19
2371
by: McKirahan | last post by:
I am working in two environments neither configuration of which I can change; one's my Web host the other a client. My Web host requires the use of the ".php5" extension to use PHP v5.1.4; where ".php" is used for PHP v4.3.11. My client supports PHP v5.2.0 with the ".php" extension. Is there a way to reliably determine if the ".php5" extension must be used on a server? Perhaps via a "phpinfo()" value?
3
3305
by: xhe | last post by:
I have just upgraded my php version form php4 to php5. and I met this problem, and don't know if you know the solution. My site was written in PHP4, and most parts can be running smoothly in PHP5, only that in old version, I can use $row to access the data in database directly, no need to put double quote around fieldname. BUT in PHP5, this is wrong, I got error message "undefined constant". I know this is because PHP5 see the fieldname...
8
2321
by: FFMG | last post by:
Hi, I am slowly moving my code to php5. But I would like to make it backward compatible in case something bad happens, (and to make sure I understand what the changes are). The way the constructors work seem to have changed quite a bit and I am not getting the same behavior across the versions. // Some simple code/
0
10485
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9073
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.