Freshinstall : ../rest/system/config 404 (Not Found)

Hi, I’m trying to install DSP on a Centos server.
I have a specific DB config and I did create successfully the adm user but, now, I have a blank page when I try to access DSP with URL …/dreamfactory/dist/index.html.

Navigator error :
/rest/system/config 404 (Not Found)

Log error :
[2015-02-25 08:40:46][app][ERROR ] * System error caching admin activated state.

Thanks for your help.

Can you run ls -al in your /platform and /web directories to ensure you have set the proper permissions?

Hi, I tried with 777 rights but still nothing :
drwxrwxrwx 11 root apache 4096 Feb 25 07:52 .
drwxrwxrwx 3 adm_prisme adm_prisme 4096 Mar 3 13:51 …
drwxrwxrwx 5 root apache 4096 Feb 24 12:52 app
-rwxrwxrwx 1 root apache 200 Feb 24 12:52 app.json
-rwxrwxrwx 1 root apache 196 Feb 24 12:52 CHANGELOG.md
-rwxrwxrwx 1 root apache 2580 Feb 24 12:52 composer.json
-rwxrwxrwx 1 root apache 64825 Feb 24 12:52 composer.lock
-rwxrwxrwx 1 root apache 1057768 Feb 24 13:38 composer.phar
drwxrwxrwx 7 root apache 4096 Feb 24 15:23 config
drwxrwxrwx 5 root apache 4096 Feb 24 12:52 docs
-rwxrwxrwx 1 root apache 11358 Feb 24 12:52 LICENSE.txt
drwxrwsrwx 2 root apache 4096 Feb 25 19:51 log
-rwxrwxrwx 1 root apache 568 Feb 24 12:52 phpunit.xml
-rwxrwxrwx 1 root apache 38 Feb 24 12:52 Procfile
-rwxrwxrwx 1 root apache 3642 Feb 24 12:52 README.md
drwxrwxrwx 2 root apache 4096 Feb 24 13:58 scripts
drwxrwsrwx 4 root apache 4096 Feb 24 15:23 storage
drwxrwxrwx 4 root apache 4096 Feb 24 12:52 tests
drwxrwxrwx 19 root apache 4096 Feb 24 14:00 vendor
drwxrwxrwx 14 root apache 4096 Feb 24 14:00 web

But I saw, in apache logs :smile:
[Thu Mar 05 10:53:16 2015] [error] [client 10.69.0.29] File does not exist: /data/dreamfactory/platform/web/rest, referer: http://irlinv-rc8inet2.ifp.fr:82/dreamfactory/dist/index.html

There is no such thing as a rest directory, is it a dynamic URL ? I experienced difficulties with RewriteEngine.
Can I check that ?

Got that solution !

I had to correct Apache configuration because a default directive “AllowOverride None” was blocking rewrite engine.
Now that rewriting URLs is Ok, I can use DSP.

Thanks for you help.

2 Likes

May I ask which version of Apache you are running? The configuration options have changed significantly from 2.0 to 2.2/2.4, and I’d like to update our wiki with more detailed steps for 2.2/2.4.

I tried to install a test/dev version of DSP on a shared server with kind of strict admin rules (packages control management for instance).

Apache was ‘fresh’ and PHP 5.4 too

Name        : httpd
Arch        : x86_64
Version     : 2.2.15
Release     : 39.el6.centos

I had to :

  1. Create & declare a php.ini
# configure the path to php.ini
PHPIniDir "/data/php"

In which I add a specific timezone :

;Defines the default timezone used by the date functions
;http://php.net/date.timezone
date.timezone = "Europe/Paris" 

2.I used a VirtuelHost but had to modify the httpd.conf regarding to DSP directory conf :

Options FollowSymLinks
AllowOverride All

‘AllowOverride None’ inhibited the rewrite engine so the URL ‘/data/dreamfactory/platform/web/rest’ was not found hence my blank page.

3.Modify the install script :

  • Modify PHP path cause it was not in /usr/bin/ (or make an alias)
  • Modify apache user cause it was not ‘www-data’ but ‘apache’
  • Modify apache’s service name cause it was not ‘apache2’ but ‘httpd’
  1. Use a specific DB config thanks to ‘config/database.config.php’
  2. Get ‘composer.phar’ from bitnami package cause it’s not in github anymore

Finally, it worked but, since I’m not a good sys-admin, I’m a little bit concerned about supervision and upgrade in such a restrained/not conventional environment.

These are the correct install steps according to our wiki documentation. The differences you experienced were due to your more recent version of Apache, which is noted on the wiki as not being covered by our install guide yet, and other environmental variables (since you have installed PHP elsewhere, for example). Composer is required and available on GitHub here.

If you are going to be using a restrictive environment like you say, I recommend trying to use a Bitnami LAMP stack since it will already have all or most of these integrations and configurations in place.

And, while we are always working to update our documentation, please submit a pull request on our wiki if you’re willing to assist us by documenting an Apache 2.2/2.4 install/config guide.