Apache Server????????

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Apache Server????????

Post by softsolvers »

Hello friends
i am first time going to use apache server.
i am using iis server with win nt initially.Where i need to put my web files so that i can run the files.Plz suggest soon .
Thanks
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

if this is on a windows machine, it is in your Program Files/Apache/htdocs linux is /var/www/ . on some machines its /var/www/html
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

On my machine it is the www folder.
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

yeah, on my debian its /var/www on my RH9 its /var/www/html/
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Post by softsolvers »

And what path should i write in browser to run that file.
is it like:
http://localhost/test.php
Thanks for your previous posts
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

do you even have Apache installed on your machine?? Because if you did and you just opened a broswer and type localhost. It would come up with Apache's default page and it'll tell you exactly where to put your documents....
User avatar
softsolvers
Forum Commoner
Posts: 75
Joined: Fri Feb 13, 2004 4:26 am
Location: India

Post by softsolvers »

I got the solution .
Before running the php file it require to configure the httpd.conf file .
and require to add some script.
Then the php files will execute.
Any way thanks
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

install mysql and all other which u need.

freetds>? freetype?

unpack apache1.3.+

> ./configure --prefix=/usr/local/apache -enable-module=so

unpack php4.3.4

> ./configure --prefix=/usr/local --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs

> cp php.ini-dist /usr/local/lib/php.ini

than add the following to the httpd.conf
> vi /usr/local/apache/conf/httpd.conf


LoadModule php4_module libexec/libphp4.so

AddModule mod_php4.c

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

/usr/local/apache/bin/apachectl start

and off you go.

make this in php

Code: Select all

<?
phpinfo();
?>
save it as test.php or info.php ....

http://localhost/info.php

and done ;-)

if i missed something excuse me .. ( php manual ;-) will tell you about the same )
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

softsolvers wrote:I got the solution .
Before running the php file it require to configure the httpd.conf file .
and require to add some script.
Then the php files will execute.
Any way thanks
Yes, as described in the manual. Which everyone should read carefully when installing.
Post Reply