LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   "The requested URL /test1.php was not found on this server." Error (https://www.linuxquestions.org/questions/linux-desktop-74/the-requested-url-test1-php-was-not-found-on-this-server-error-927746/)

alihonarmand 02-05-2012 09:27 AM

"The requested URL /test1.php was not found on this server." Error
 
Hi everyone,

I'm using Ubuntu for some time right now. I have installed Apache, PHP, and MySQL recently and try to test my server. everything works fine unless the apache reports that "test1.php" file including "<?php phpinfo() ?>" is not in the /var/www folder, while I'm sure it is there.
can anyone help?

thanks priorly.

bathory 02-05-2012 10:01 AM

Hi,

Check the apache error_log to see where it looks for the requested file.
BTW you have an error in your php syntax. Miss a ";" after the phpinfo() function:
Code:

<?php phpinfo(); ?>
Regards


All times are GMT -5. The time now is 03:32 PM.