Score:0

Find the absolute path for the root of the codebase

in flag

I need to find the absolute path for the root of the codebase.... is that a way to get it out easily??

I have a website that runs on on EC2 AWS/Ubuntu written at 95% in PHP and is linked with plesk. I use plesk because it keeps the management easy for me. Really losing my mind to get it. Based on this info can someone help?

Thanks for any support!

Score:0
pk flag

First, I think this question might get better answers on StackOverflow.com as it sounds related to software development and programming, not specifically Ubuntu or Debian systems.

To find the absolute path of the code base really depends on what the deployment mechanism is for the application. For example, a simple deployment mechanism might do a git clone operation or unzipping of a tar.gz file to a specific directory. If that is done, you have your absolute path just by looking at the destination.

I'll also say, as a common practice with PHP apps, the root codebase is often either the directory where index.php is located, or the parent directory of that. Not always, but I'd say 95% of use cases (depends on what framework).

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.