Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by brucegust
at 2024-07-17 03:03:26
Point:500 Replies:6 POST_ID:829005USER_ID:11902
Topic:
Unix Operating Systems;;
Towards the end of the first tutorial (http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine), I’m asked to change the configuration of my server so it’s looking in my “bruce†folder (home/ sfprojects/jobeet/web/index.php). Here’s what I did:
# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080
# This is the configuration for your project
Listen 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
DocumentRoot "/home/sfprojects/jobeet/web"
DirectoryIndex index.php
<Directory "/home/sfprojects/jobeet/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
<Directory "/home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
I’m changing the port and the root directories. Simple enough. Thing is, †home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf†doesn’t exist. That may not make a difference, but when I went to see the page that’s supposedly at http://~localhost~:8080/, I get a “page not found†error. What am I doing wrong?
# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080
# This is the configuration for your project
Listen 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
DocumentRoot "/home/sfprojects/jobeet/web"
DirectoryIndex index.php
<Directory "/home/sfprojects/jobeet/web">
AllowOverride All
Allow from All
</Directory>
Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
<Directory "/home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
I’m changing the port and the root directories. Simple enough. Thing is, †home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf†doesn’t exist. That may not make a difference, but when I went to see the page that’s supposedly at http://~localhost~:8080/, I get a “page not found†error. What am I doing wrong?
Author: brucegust replied at 2024-07-17 07:10:48
I'm just going by the tutorial at http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine
Regardless of which service I use, shouldn't my Symfony project be located within my MAMP application? How can a php page work unless it's hosted within the app? It boggles my mind to think that I'm pointing my web server to a page that's in my user folder as opposed to a file that's "hosted" with my web server.
Regardless of which service I use, shouldn't my Symfony project be located within my MAMP application? How can a php page work unless it's hosted within the app? It boggles my mind to think that I'm pointing my web server to a page that's in my user folder as opposed to a file that's "hosted" with my web server.
Accepted Solution
Expert: duncanb7 replied at 2024-07-17 06:59:02
500 points EXCELLENT
Now you are using MAMP ? why not switch to XAMPP that is better
for apache setup ,
https://www.apachefriends.org/download.html
Duncan
for apache setup ,
https://www.apachefriends.org/download.html
Duncan
Author: brucegust replied at 2024-07-17 06:53:21
OK, I changed the port to 9090 and when I open up MAMP after restarting it, I get this URL: http://localhost:9090/MAMP/?language=English and I get the MAMP start page.
If I try this: http://localhost:9090/home/sfprojects/jobeet/web, I get a page not found.
Things is, that doesn't surprise me because I'm assuming that MAMP is not looking for a file outside the MAMP application itself, correct? So if I don't have a "home" directory in my MAMP application, should I expect it to open up a page that's sitting in my user/bruce directory?
If I try this: http://localhost:9090/home/sfprojects/jobeet/web, I get a page not found.
Things is, that doesn't surprise me because I'm assuming that MAMP is not looking for a file outside the MAMP application itself, correct? So if I don't have a "home" directory in my MAMP application, should I expect it to open up a page that's sitting in my user/bruce directory?
Expert: duncanb7 replied at 2024-07-17 05:02:07
Please answer my question ?
Try other port such as 9090 instead of 8080 since your system might be using 8080
for other application and check whether the file of index.php
is at that directory first or not
Duncan
Try other port such as 9090 instead of 8080 since your system might be using 8080
for other application and check whether the file of index.php
is at that directory first or not
Duncan
Author: brucegust replied at 2024-07-17 04:45:17
Duncan! I'm glad you're up, my friend!
When I go the shell command route, first off, I'm using this: ls home/sfprojects/jobeedt/web/index.php. I'm omitting the first "/" and I wanted you to see that, being that I'm not sure that's a deal breaker or not.
The screen print I have attached shows you, both the outcome of the command (which was successful), as well as the way I have things set up as seen in my Finder.
I have re-started Apache. I have not tried any other ports other than the ones specified in the tutorial I'm attempting to make my way through (http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine).
What do you think?
When I go the shell command route, first off, I'm using this: ls home/sfprojects/jobeedt/web/index.php. I'm omitting the first "/" and I wanted you to see that, being that I'm not sure that's a deal breaker or not.
The screen print I have attached shows you, both the outcome of the command (which was successful), as well as the way I have things set up as seen in my Finder.
I have re-started Apache. I have not tried any other ports other than the ones specified in the tutorial I'm attempting to make my way through (http://symfony.com/legacy/doc/jobeet/1_4/en/01?orm=Doctrine).
What do you think?
Expert: duncanb7 replied at 2024-07-17 03:13:44
Did you try the port besides 8080 such as 9090 ?
Did you stop and start apache again ?
Did you find the index.php at that directory on shell command, for example, ls /home/sfprojects/jobeet/web/index.php ?
Duncan
Did you stop and start apache again ?
Did you find the index.php at that directory on shell command, for example, ls /home/sfprojects/jobeet/web/index.php ?
Duncan