Problems uploading to the server!!!Watch out for Syntax Errors !!

Had a little problem uploading the site to the server

When uploading a PHP Framework there seems to be 3 things that are the problem :

HT Access file

777 Write access permissions

Database Connections

The HT Access file allows you to prevent access etc to your files a common error I was getting with this was that when i clicked on my project it would say that it could not find my files this was because I did not have the Syntax correct!! You also have to have 3 htaccess files one in the APP Directory, The Root of the Cake and the WebRoot folder

The problem i had seemed to be a couple of missing forward slashes here is the proper way it should look to work on this server :

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~sss27/blogproject/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

Tutorial was from http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/

The next problem was Write Permissions I have used Apache servers before with Codeigniter projects so knew I would have to make the TMP folder writable this is achieved by right clicking on the folder and setting the permissions

Database connection is then set in the Config folder where you specify what the name of the database is and username and password I had errors with this because of Syntax where a 1 looked like the letter L!!

Leave a comment