apache - Restler setup not working -


on webserver running apache/2.2.26 (unix) dav/2 php/5.4.24 mod_ssl/2.2.26 openssl/0.9.8y trying setup restler can't seem handle index.php properly. webapp setup httpd.conf looks so:

alias "/dts2" "/usr/local/webapps/dts/root"  <directory "/usr/local/webapps/dts/root">   allowoverride   options -indexes followsymlinks </directory> 

so went 'root' directory , ran command install restler:

composer create-project restler/application=dev-basic api --prefer-dist

after that, in 'api' directory created .htaccess file looks so:

directoryindex index.php <ifmodule mod_rewrite.c>    rewriteengine on    rewriterule ^$ public/index.php [qsa,l]    rewritecond %{request_filename} !-f    rewritecond %{request_filename} !-d    rewriterule ^(.*)$ public/index.php [qsa,l] </ifmodule> <ifmodule mod_php5.c>     php_flag display_errors on </ifmodule> 

and, when try access "https://..../dts2/api/home/" success message restler provides, 404 error.

what have done wrong?

ok, got working. there 2 issues.

one restler itself. supplied index.php said $r->addapiclass('home', '');. had remove second empty parameter.

the other apache. instead of saying public/index.php on rewriterule had /dts2/api/public/index.php.

once made 2 changes worked expected.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -