no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | tech:others:making_demo_work_on_sourceforge [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Do the following to make php sessions and file write work in Sourceforge hosting ====== | ||
| + | |||
| + | ===== sftp first ===== | ||
| + | |||
| + | sftp someuser, | ||
| + | |||
| + | where\\ | ||
| + | - someuser is the username and\\ | ||
| + | - onlinepasswords is the project name | ||
| + | |||
| + | when you log in you will be at this directory / | ||
| + | in the persistent directory within this directory is where you can write files\\ | ||
| + | This folder is used to write file based php sessions and other flat files\\ | ||
| + | |||
| + | ===== PHP sessions ===== | ||
| + | |||
| + | Create a directory sessions under persistent\\ | ||
| + | Make sure you give 777 to this directory\\ | ||
| + | |||
| + | Create a .htaccess file on the demo directory and add the below directive\\ | ||
| + | | ||
| + | |||
| + | You php file based sessions will get saved here\\ | ||
| + | |||
| + | ===== Write files ===== | ||
| + | |||
| + | Follow the same procedure as above for the most part\\ | ||
| + | |||
| + | Create a directory " | ||
| + | |||
| + | chmod 777 files\\ | ||
| + | |||
| + | Use the full path\\ | ||
| + | |||
| + | / | ||
| + | |||
| + | Now although you can use the below path it is not recommended: | ||
| + | / | ||