Page 1 of 1

open project / object not found

PostPosted: 13. November 2021 12:16
by mostafa-hashem
i installed xampp-linux-x64-8.0.12-0 , and it installed corectly
when i tried to open my project using this link
www.localhost//home/mostafa_hashem/development/linkedin/Php/learning-php/Ex_Files_Learning_PHP/Exercise Files/01_02_printing/indext.php
it gives me the error [object not found , error 404 ]
i want to open my project in any directory in home not just the " htdoc "
.
.

if there is no other way to open another directory except " htdoc " how to add my project to it

Re: open project / object not found

PostPosted: 13. November 2021 21:32
by Nobbie
mostafa-hashem wrote:i want to open my project in any directory in home not just the " htdoc "
.
.

if there is no other way to open another directory except " htdoc " how to add my project to it


Of course you can, simply change the value of "DocumentRoot" in your Apache configuration. In Xampp default installation, it points to c:/xampp/htdocs, but you can change that to your needs. And please, read the Apache Documentation about DocumentRoot at least.

P.S.: Do not use "www.localhost", instead simply use "localhost".