I'm a newbie to Apache. This week I installed my first Apache 2.0 server,
and it's working fine. I then installed PHP. When I ran the PHP test file
("test.php") , the actual text contents of the file came up in the
browser:
----------------
<?php
phpinfo();
?>
----------------
I confirmed that my Apache installation includes the "mod_so.c" module. I
made sure that the file "test.php" was in the default htdocs folder. I
confirmed that my "httpd.conf " file contained the lines :
----------------
LoadModule php4_module /Library/Apache2/modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
----------------
I made sure that the directory /Library/PHP4 was installed, and that the
"libphp4.so " file was located in /Library/Apache2/modules.
I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make
sure that Apache restarted.
What am I missing? How can I get PHP working? Thanks in advance to all
for any info.
-Vik 3 5500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vik Rubenfeld wrote: I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make sure that Apache restarted.
Now I known nothing about OSX, but I'm told it's not unlike
a unix underneath all the eye-candy. If that is the case, I
would think you need to do more then a logout to have Apache
restarted. Did you try a reboot?
Bob
- --
| B. Johannessen <bo*@db.org> +47 97 15 20 09 - http://db.org/
| Mail & Spam - News, Drafts & Standards - http://db.org/blog/
| On The Origin Of Spam; Spam Statistics - http://db.org/spam/
- --
-----BEGIN PGP SIGNATURE-----
iD8DBQFAOBKfooi sUyMOFlgRAjN9AJ 98mgNHYmmq/UdQtLYQjNAxtYOR jgCggLiN
DG2ezDdRa6VMML0 PpLGB218=
=FS6F
-----END PGP SIGNATURE-----
"B. Johannessen" <bo*@db.org> wrote: Did you try a reboot?
I just read your post and tried a reboot, but it hasn't gotten PHP
working yet.
-Vik
"Vik Rubenfeld" <vi**@mindsprin g.com.invalid> wrote in message
news:vi******** *************** *@news2.west.ea rthlink.net... I'm a newbie to Apache. This week I installed my first Apache 2.0 server, and it's working fine. I then installed PHP. When I ran the PHP test file ("test.php") , the actual text contents of the file came up in the browser:
---------------- <?php phpinfo(); ?> ----------------
I confirmed that my Apache installation includes the "mod_so.c" module. I made sure that the file "test.php" was in the default htdocs folder. I confirmed that my "httpd.conf " file contained the lines :
---------------- LoadModule php4_module /Library/Apache2/modules/libphp4.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps ----------------
I made sure that the directory /Library/PHP4 was installed, and that the "libphp4.so " file was located in /Library/Apache2/modules.
I logged out of my system (Mac OS-X 10.3.2) and logged back in, to make sure that Apache restarted.
What am I missing? How can I get PHP working? Thanks in advance to all for any info.
-Vik
Try to type this as address in your browser: http://127.0.0.1/test.php
or http://localhost/test.php
This should work if your test.php is in apache htdocs folder. I had similar
problem when I was first time installing PHP, and this was the solution. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Leythos |
last post by:
I've searched a few sites and read a dozen things about installing PHP
on IIS6, but I'm still having problems getting my PHPBB message board
working. It works fine on my IIS5 server, but I want to move everything
to the new 2003 server.
Anyone got a tested, easy to follow, link on installing PHP on IIS 6?
Thanks
--
|
by: Paul Schmidinger |
last post by:
Hello,
I have a windows-IIS-Webserver running PHP 4.3.0. However, there is no
GD-Lib, so I tried to install it.
What I did is this:
- copy the file php_gd2.dll (which I have from another win-webserver with
working GD-Lib) to C:\PHP\extensions
- set the extensions-folder in php.ini to C:\PHP\extensions
- remove the ";" before the php_gd2.dll-inclusion in the php.ini-file
|
by: Grant Nosbush |
last post by:
I have searched the newsgroups and the web trying to solve this problem
and just can't get it. Maybe someone will be able to help. I am
getting the following error when I try to view a test page in my
browser. This test page just reads a table in mysql and outputs the
results.
Fatal error: Call to undefined function: mysql_connect() in
/var/web/public/test.php on line 2
I'm using:
|
by: Jeff B |
last post by:
Hello,
Im learning PHP along with MySql. I installed MySql with no problem and
have completed several tutorials to learn it. Now when trying to use PHP
code within an html page it dosn't display anything,even with a simple
display command.
I installed the newest version of PHP(windows installer) and MySql on my
home PC to do these tutorials and connect seem to get PHP working. Im sure
its just a setting that im not properly...
|
by: y_oda2002 |
last post by:
Hi everyone,
I was wondering if anyone could help me. I am trying to install php
so that i can learn the code. So far i havent had any problems
installing apache. However when i try to get mysql to run with
apache and php the windows services gives an error upon starting
apache. Something like
error module not found. php_mysql.dll does not exist.
| |
by: universalbitmapper |
last post by:
Hi,
I'm trying a simple form.html that call a .html script that begins
with:
<?php
header("This is a test");
?>
When I click on the link, I get blank page.
|
by: Fensic |
last post by:
Hello everyone.
I am having a problem installing and configuring PHP 5.1.6. Initially I had it installed and working with Apache 2.2.3 and MySQL 5.0.24 but decided to abort and redo the installation when I had problems getting phpMyAdmin to work.
So far I seem to have gotten Apache up as I get the "It Works!" when I enter "http//localhost" into my browser.
I am trying to reinstall PHP now but when I enter...
|
by: hansBKK |
last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning
about PHP, mostly by researching, installing and playing with different
scripts. I am looking for a host that will provide the right environment
for this - running a wide variety of PHP applications. I realise that
security is also important, but for now flexibility is more important to
me.
Note that I'm **not** looking for people to recommend hosting companies,
I...
|
by: Mr Fuzzi |
last post by:
Hi All,
This morning I have installed and configured Apache, MySQL and PHP on a
Windows Server 2003 machine. Everything appears to be working fine, except
that I keep getting an error message each time PHP starts up:
PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysqli.dll'
Invalid Access to memory location.
I have checked the PHP and MySQL websites and it seems this is a known issue
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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,...
|
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...
|
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...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |