Operating System - HP-UX
1832283 Members
2033 Online
110041 Solutions
New Discussion

Re: how can i launch on a research on apache&php?

 
robbiechen
Occasional Advisor

how can i launch on a research on apache&php?

Admins:
My machine is HP w/s C3600, system is 11i. i have install apache2.0.46;php4.2.3;gcc3.2.
now,how can i test these? (i never play these before)
tks!
5 REPLIES 5
robbiechen
Occasional Advisor

Re: how can i launch on a research on apache&php?

The purpose that i install these softwares is: when users invoke DB, all files can be present by PHP.

Or anyone have a demo can let me know?
benoit Bruckert
Honored Contributor

Re: how can i launch on a research on apache&php?

Hi,
To start with php, the best is to read the documentation :
http://www.php.net/download-docs.php

But before all, check your php install if all is working :
create a file call info.php with :
phpinfo();
?>
save this file in your apache directory tree,
browse this page through your favorite browser,
you should see the config of php + variables .....
If it doesn't work, you have a trouble in your install/config (probably the apache config file : httpd.conf).

Concerning gcc, it's absolutly not the same.
a simple helloworld.c program is enough to check if gcc can compile !

post here all the details/errors if you have some, and read the INSTALL file for PHP and Apache.

hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
robbiechen
Occasional Advisor

Re: how can i launch on a research on apache&php?

tks,i will try
robbiechen
Occasional Advisor

Re: how can i launch on a research on apache&php?

in your words,u said "browse this page through your favorite browser",
i donot this page is which???can u tell me definitely?
benoit Bruckert
Honored Contributor

Re: how can i launch on a research on apache&php?

the url to connect to your apache pages is :
http://yourserver
check on your server that apache is running :
#ps -ef | grep http
If it's ok, check that it's listening on http port :
#netstat -an | grep 80
If you have on your browser a page about apache, then it means your apache is working properly.
remember : to start apache:
#./apachectl start
In case of trouble in starting, check logs.

If apache is ok,you can create the file info.php in the same dir as this apache page (check in httpd.conf where is this page).
You should also uncomment some lines about php (read the doc) in httpd.conf.

Then at this level you should be able to run this script :
http://yourserver/info.php

in case of trouble, check messages in log files....
if you have on your browser :
phpinfo();
?>
then it means that php is not interpreted through apache ! check installation and httpd.conf...

It's very short, and I have no idea about your config, post a message + logs if you have some troubles.

hth
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)