Page 1 of 1

Apache Server????????

Posted: Sat Mar 27, 2004 4:33 am
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

Posted: Sat Mar 27, 2004 9:43 pm
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

Posted: Sat Mar 27, 2004 11:21 pm
by Steveo31
On my machine it is the www folder.

Posted: Sun Mar 28, 2004 8:43 pm
by Deemo
yeah, on my debian its /var/www on my RH9 its /var/www/html/

Posted: Sun Mar 28, 2004 10:05 pm
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

Posted: Sun Mar 28, 2004 10:38 pm
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....

Posted: Sun Mar 28, 2004 10:50 pm
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

Posted: Mon Mar 29, 2004 3:44 pm
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 )

Posted: Mon Mar 29, 2004 4:04 pm
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.