Sorry if the problem is silly, but I'm new at this. I installed webserv and apache seems working. I configured httpd.conf to parse php files. However when I try to test it by opening phpinfo.php which is
The requested URL /phpinfo.html was not found on this server.
Does the file phpinfo.php need to be stored in some particular location? I suppose no, since the httpd.conf file should parse files with that extension. Could you please give me any advice?
Many thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. I thought that phpinfo.php should be in htdocs subdirectory of Apache but there was not such directory. However, I made it, I put the file in there and I tried with http://localhost:8080/phpinfo.php but I got the same error. Any other suggestion?
Many thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry if the problem is silly, but I'm new at this. I installed webserv and apache seems working. I configured httpd.conf to parse php files. However when I try to test it by opening phpinfo.php which is
<?
php_info();
?>
typing: http://localhost:8080/phpinfo.html
I get
Not Found
The requested URL /phpinfo.html was not found on this server.
Does the file phpinfo.php need to be stored in some particular location? I suppose no, since the httpd.conf file should parse files with that extension. Could you please give me any advice?
Many thanks.
Your url should be http://localhost:8080/phpinfo.php
and phpinfo.php should be in your htdocs subdirectory of Apache.
Thanks. I thought that phpinfo.php should be in htdocs subdirectory of Apache but there was not such directory. However, I made it, I put the file in there and I tried with http://localhost:8080/phpinfo.php but I got the same error. Any other suggestion?
Many thanks.
I found the directory htdocs and I placed the file there. The browser shows now a blank page. Any help would be appreciated.
Many thanks.
<?php
phpinfo();
?>
<?php
is what your opening tags need to be