This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Moving project to host - "frontend_dev.php5 not found"
Moving project to host - "frontend_dev.php5 not found" [message #9135] Thu, 20 July 2006 20:34 Go to next message
z01d  is currently offline z01d
Messages: 160
Registered: December 2005
Senior Member
Hello,
I finally got to a stage where I am ready to move my first take with Symfony to a remote host.

I've moved symfony folders to /data and /lib directories in the project, and the setup works locally.

As instructed, here is what I have in the .htaccess in the /web directory:
Options +FollowSymLinks +ExecCGI

RewriteEngine On

# we skip all files with .something
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ frontend_dev.php5 [QSA,L]

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>SymFony application failed to start properly"


I am using test environment by default and I had to change the file extension to php5 because my host (Pair Netowrks) supports PHP5.1.1 as a CGI.

When I uploaded the project on the remote server, I get a 404 error:
The requested URL /usr/home/MyAccount/public_html/MyProject/web/frontend_dev.php5 was not found on this server.


Any ideas as to why this might happen? Works beautifully on the local machine...
Re: Moving project to host - "frontend_dev.php5 not found" [message #9192 is a reply to message #9135 ] Fri, 21 July 2006 16:04 Go to previous message
z01d  is currently offline z01d
Messages: 160
Registered: December 2005
Senior Member
Ahh... obviously the issue was with Apache not redirecting correctly. Got that fixed with the hosting support.
Previous Topic:a2hosting.com
Next Topic:php php5 file extensions problem [SOLVED]
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software