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?