>Your web server will have a DOCROOT or DocumentRoot directory.

This my server is it an **apache2** server?
Because I found this
https://gist.github.com/masudcsesust04/9e6e2b598e5eeab80dd80f2b5f54c1f1
4 steps to change your apache default document root directory
gist.github.com
/okn

> On 11 Mar 2024, at 21:30, James Reynolds <[email protected]> wrote:
> 
> Omar,
> If you are accessing your php file using Safari and http://127.0.0.1:8000/, 
> that means you are running a web server. Your web server will have a DOCROOT 
> or DocumentRoot directory. This directory maps It is probably 
> /Users/okn/phpfolder/. If /Users/okn/phpfolder/ is your DOCROOT, then 
> http://127.0.0.1:8000/ will look for /Users/okn/phpfolder/index.html (or 
> index.php). Because /Users/okn/SitesMacHD isn't in your DOCROOT, your web 
> server wont show it. This is to prevent people from looking at things like 
> your private files. You'd have to put rrue_e.php inside of your DOCROOT.
> 
> James Reynolds
> 
>> On Mar 11, 2024, at 14:24, Omar KN <[email protected]> wrote:
>> 
>> Some success!
>> (from a good tutorial!)
>> 
>> 1.
>> 
>> Safari reads the php file which is in:
>> 
>> /Users/okn/phpfolder/tj.php
>> 
>> http://127.0.0.1:8000/tj.php
>> 
>> 
>> 2.
>> However:
>> 
>> /Users/okn/SitesMacHD/liv/chu/e/rrue_e.php
>> 
>> http://127.0.0.1:8000/
>> 
>> 
>> http://127.0.0.1:8000/Users/okn/SitesMacHD/liv/chu/e/rrue_e.php
>> 
>> 
>> The requested resource /Users/okn/SitesMacHD/liv/chu/e/rrue_e.php was not 
>> found on this server.
>> 
>> 
>> And this is the correct path!
>> 
>> 
>> Any idea what’s going on here?
>> 
>> /okn
>> 
>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> 
>> 
>>> I hope I'm not coming across as rude now.
>> 
>> Not at all :-)
>> 
>>> walk you through the steps
>> 
>> My assumption was that I’ve almost arrived at the goal.
>> 
>>> Make use of the many good tutorials available on youtube.
>> 
>> Yes.
>> 
>> 
>> 
>>> On 11 Mar 2024, at 17:09, James Reynolds <[email protected]> wrote:
>>> 
>>> Omar,
>>> It isn't that your question is difficult to answer. I was a music student 
>>> decades ago and I asked a somewhat famous (in my neck of the woods) 
>>> organist if she could give me organ lessons. I wasn't a pianist. She told 
>>> me to learn piano first and then ask her for lessons. I was pretty put off 
>>> by it because she came off as pretty rude but I understand why she did it. 
>>> I hope I'm not coming across as rude now.
>>> 
>>> Someone on this list might have the time to walk you through the steps but 
>>> I don't. I also didn't want to just leave you hanging so I wanted to say 
>>> something in case nobody responds. I think if you go watch some tutorials 
>>> and read some webpages and you still can't figure it out, I'm pretty sure 
>>> many people, including myself, would be happy to help you out. 
>>> 
>>> Here's a little help. The '>>' in `(echo; echo 'eval 
>>> "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/okn/.zprofile` will create 
>>> /Users/okn/.zprofile. View the file by typing `cat /Users/okn/.zprofile` 
>>> and make sure `eval "$(/opt/homebrew/bin/brew shellenv)"` is at the end of 
>>> the file. Then open a new Terminal window and php should be in your PATH.
>>> 
>>> Again, I'd go watch some videos and read as much as you can until 
>>> everything I just said makes sense to you.
>>> 
>>> James Reynolds
>>> 
>>>> On Mar 11, 2024, at 09:37, Omar KN <[email protected]> wrote:
>>>> 
>>>> Yes, I remember I could not separate for this step to make it 2 commands, 
>>>> if you could do it:
>>>> 
>>>> ==> Next steps:
>>>> - Run these two commands in your terminal to add Homebrew to your PATH:
>>>>   (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> 
>>>> /Users/okn/.zprofile
>>>>   eval "$(/opt/homebrew/bin/brew shellenv)"
>>>> 
>>>> One commad would probably be:
>>>> 
>>>> echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"'
>>>> 
>>>> but the second?
>>>> 
>>>> eval "$(/opt/homebrew/bin/brew shellenv)”
>>>> 
>>>> Should I create /Users/okn/.zprofile first?
>>>> 
>>>> 
>>>> If this is too difficult to answer, there is still YouTube …
>>>> 
>>>> /
>>>> with best regards,
>>>> Omar KN, Stockholm, Sweden
>>>> 
>>>> 
>>>>> On 11 Mar 2024, at 16:27, James Reynolds <[email protected]> 
>>>>> wrote:
>>>>> 
>>>>> You probably don't have brew's install path in your terminal path. If you 
>>>>> have no idea what this means you probably need to learn a bit more about 
>>>>> developing with the Terminal. Just search YouTube for "macos terminal 
>>>>> tutorial" and "getting started with php macos". There's tons of webpages 
>>>>> on this too.
>>>>> 
>>>>> James Reynolds
>>>>> 
>>>>>> On Mar 11, 2024, at 02:15, Omar KN <[email protected]> wrote:
>>>>>> 
>>>>>> The sole purpose for having php is to be able to view the BBEdit preview 
>>>>>> in the browser.
>>>>>> 
>>>>>> Although I installed php, the command is not found, so something is 
>>>>>> missing.
>>>>>> 
>>>>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>>>>> php -S localhost:8080 & ; open -a Safari.app localhost:8080
>>>>>> [1] 19195
>>>>>> zsh: command not found: php
>>>>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>>>>> 
>>>>>> What could be missing here?
>>>>>> 
>>>>>> /
>>>>>> with best regards,
>>>>>> Omar KN, Stockholm, Sweden
>>>>>> On Monday 11 March 2024 at 02:16:33 UTC+1 Darren Duncan wrote:
>>>>>> PHP 8.3 is the latest version and has a lot more features and a longer 
>>>>>> support 
>>>>>> window of 3 years, versus less than 1 year remaining for 8.1; why use 
>>>>>> 8.1? 
>>>>>> 
>>>>>> Also, if you desire to have a web page, do you want vanilla PHP or do 
>>>>>> you want 
>>>>>> an actual application framework? If you use Laravel for example, it 
>>>>>> takes care 
>>>>>> of a lot of stuff for you. 
>>>>>> 
>>>>>> -- Darren Duncan 
>>>>>> 
>>>>>> On 2024-03-10 10:04 a.m., Omar KN wrote: 
>>>>>>> Today I installed and “Successfully started `[email protected]` (label: 
>>>>>>> [email protected])” 
>>>>>>> 
>>>>>>> What is the next step to preview a PHP page in Safari? 
>>>>>>> 
>>>>>>> On Sunday 10 March 2024 at 15:35:41 UTC+1 Omar KN wrote: 
>>>>>>> 
>>>>>>> This topic has been mentioned before, but I was looking for a not too 
>>>>>>> difficult solution. 
>>>>>>> 
>>>>>>> Has the come any news about this issue? 
>>>>>>> 
>>>>>>> / 
>>>>>>> with best regards, 
>>>>>>> Omar KN, Stockholm, Sweden 
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>>>>> request or need technical support, please email "[email protected]" 
>>>>>> rather than posting here. Follow @bbedit on Twitter: 
>>>>>> <https://twitter.com/bbedit>
>>>>>> --- 
>>>>>> You received this message because you are subscribed to the Google 
>>>>>> Groups "BBEdit Talk" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>>> an email to [email protected].
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/bbedit/04292cb9-b1ba-4420-a33a-0ddbc9a287aan%40googlegroups.com.
>>>>> 
>>>>> 
>>>>> -- 
>>>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>>>> request or need technical support, please email "[email protected]" 
>>>>> rather than posting here. Follow @bbedit on Twitter: 
>>>>> <https://twitter.com/bbedit>
>>>>> --- 
>>>>> You received this message because you are subscribed to a topic in the 
>>>>> Google Groups "BBEdit Talk" group.
>>>>> To unsubscribe from this topic, visit 
>>>>> https://groups.google.com/d/topic/bbedit/d2JfkgJcCAY/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>> [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/bbedit/9C097133-54B2-4AF1-AF59-8477D822F025%40gmail.com.
>>>> 
>>>> 
>>>> -- 
>>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>>> request or need technical support, please email "[email protected]" 
>>>> rather than posting here. Follow @bbedit on Twitter: 
>>>> <https://twitter.com/bbedit>
>>>> --- 
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "BBEdit Talk" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>> email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/bbedit/AD6B7FD7-24BB-411A-AF59-A44CEBE16A0E%40gmail.com.
>>> 
>>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a feature 
>>> request or need technical support, please email "[email protected]" 
>>> rather than posting here. Follow @bbedit on Twitter: 
>>> <https://twitter.com/bbedit>
>>> --- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "BBEdit Talk" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/bbedit/d2JfkgJcCAY/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/bbedit/0D939887-13E3-418F-BA7F-5DD4085E612B%40gmail.com.
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "[email protected]" 
>> rather than posting here. Follow @bbedit on Twitter: 
>> <https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/CB0ABE1C-88CF-4B12-BB05-461AC2780F07%40gmail.com.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/bbedit/d2JfkgJcCAY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/9F32008B-F02A-445D-ADD2-59AB9C2528DB%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5490E57B-2021-4FBC-834E-6A52592625C5%40gmail.com.

Reply via email to