Installing CakePHP: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 10: Line 10:
change to:
change to:


<code>
[StartUniServer]
[StartUniServer]
Action: run; FileName: "%USRoot%\Server_Start.bat"; ShowCmd: hidden; Flags: waituntilterminated
Action: run; FileName: "%USRoot%\Server_Start.bat"; ShowCmd: hidden; Flags: waituntilterminated
</code>


Since the unifrom server doesn't perform a fancy install, we can manually add the directory that the php.exe executable is located in to the windows PATH environment variable so that we can run command-line php scripts easier. this is optional but good. to do it, you go to the system control panel, "advanced" tab, "environment variables" button, then highlight "PATH" in the "system variables" then "edit" and then to the end of whatever is already there append this: ";w:\usr\local\php". "W:"? you ask? well once you actually fire up the uniform server it launches a virtual drive called w: so it doesn't really matter where you run it from. if you decide not to edit the path setting, you will have to call php with a complete path (do you remember how to use the command line?).
Since the unifrom server doesn't perform a fancy install, we can manually add the directory that the php.exe executable is located in to the windows PATH environment variable so that we can run command-line php scripts easier. this is optional but good. to do it, you go to the system control panel, "advanced" tab, "environment variables" button, then highlight "PATH" in the "system variables" then "edit" and then to the end of whatever is already there append this: ";w:\usr\local\php". "W:"? you ask? well once you actually fire up the uniform server it launches a virtual drive called w: so it doesn't really matter where you run it from. if you decide not to edit the path setting, you will have to call php with a complete path (do you remember how to use the command line?).
Line 17: Line 19:
We have to edit the php.ini located in w:\usr\local\php (or just go to the unitray and hit "advanced" and "edit php configuration") and search for the line that says "max_execution_time" and increase it from 30 to maybe 300 or something. otherwise command line scripts keep timing out.
We have to edit the php.ini located in w:\usr\local\php (or just go to the unitray and hit "advanced" and "edit php configuration") and search for the line that says "max_execution_time" and increase it from 30 to maybe 300 or something. otherwise command line scripts keep timing out.


<code>
;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
; Resource Limits ;
Line 23: Line 26:
max_execution_time = 300
max_execution_time = 300
; Maximum execution time of each script, in seconds
; Maximum execution time of each script, in seconds
</code>


One final thing we have to do is change the httpd.conf to allow us to use the awesome powers of apache's rewrite module. Again you can use the unitray to open the httpd.conf quickly in "advanced" then "edit apache configuration". All you have to do is add the option "SymLinksIfOwnerMatch". Without that apache 2.0 assumes that the rewrite rules essential to cake's operation are forbidden.
One final thing we have to do is change the httpd.conf to allow us to use the awesome powers of apache's rewrite module. Again you can use the unitray to open the httpd.conf quickly in "advanced" then "edit apache configuration". All you have to do is add the option "SymLinksIfOwnerMatch". Without that apache 2.0 assumes that the rewrite rules essential to cake's operation are forbidden.


<code>
# The Options directive is both complicated and important.  Please see
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# http://httpd.apache.org/docs-2.0/mod/core.html#options
Line 31: Line 36:


   Options Indexes Includes SymLinksIfOwnerMatch
   Options Indexes Includes SymLinksIfOwnerMatch
</code>


Finally we can launch the server. to do so use the uniserver/server_start.bat file or use the unitray's "start uniserver" option. this will open up an admin panel that will show you uniserver's various features, the only one you need to care about now is the "start mysql", but we don’t need to use it yet since we will still be restarting the server once first.
Finally we can launch the server. to do so use the uniserver/server_start.bat file or use the unitray's "start uniserver" option. this will open up an admin panel that will show you uniserver's various features, the only one you need to care about now is the "start mysql", but we don’t need to use it yet since we will still be restarting the server once first.