This object is in archive! 

No subdirectories after install

Archived Bubba 12 years ago

I am trying the free version, and have sucessfully installed on CentOS 6.3.


I can get to the main overview screen. But cannot get to any other screens.

For example, if I click on Problems on the right side, I get:


The requested URL /ur/responses/problems/status/all was not found on this server.


And there are no subdirectories responses (or others that look like there should be: users, responses). When are these supposed to be created during install?

I did not see any install errors.

I cannot log in, or do anything other than see this overview screen.

Best Answer
photo

After installation, go to .htaccess and on line 12 where "RewriteBase /" instead of / put your installation folder of UseResponse like /folder

Instructions will be revised for all packages

Replies (22)

photo
2

Stas, I haven't missed that hint during installation. It didn't work. I'm guessing it's something in Apache config. This is my .htaccess:

  1. # environment
  2. #SetEnv APPLICATION_ENV development
  3. SetEnv APPLICATION_ENV production
  4. #detect mod_rewrite
  5. SetEnv HTTP_MOD_REWRITE Off
  6. # charset
  7. AddDefaultCharset UTF-8
  8. # front
  9. <IfModule mod_rewrite.c>
  10. SetEnv HTTP_MOD_REWRITE On
  11. RewriteEngine on
  12. # RewriteBase /
  13. RewriteCond %{REQUEST_FILENAME} -s [OR]
  14. RewriteCond %{REQUEST_FILENAME} -l [OR]
  15. RewriteCond %{REQUEST_FILENAME} -d
  16. RewriteRule ^.*$ - [NC,L]
  17. RewriteRule ^api api.php [NC,L]
  18. RewriteRule ^.*$ index.php [NC,L]
  19. </IfModule>
  20. <ifmodule mod_deflate.c>
  21. AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  22. </ifmodule>
  23. Options -Indexes
  24. IndexIgnore *

photo
1

After installation, go to .htaccess and on line 12 where "RewriteBase /" instead of / put your installation folder of UseResponse like /folder

Instructions will be revised for all packages

photo
2

@ttt, Please see updated official answer for the solution. It should work now.

photo
2

Hi Stas, this does not work for me either.


As you can see, during install, I have set:

RewriteBase /ur/

(and commented out after installation).


All of the UseResponse files are under: /var/www/html/ur

And the DocumentRoot is : /var/www/html

Permissions are set to 755 for /var/www/html/ur


I am still not getting any of the subdirectories created on install.


  1. # environment
  2. #SetEnv APPLICATION_ENV development
  3. SetEnv APPLICATION_ENV production
  4. #detect mod_rewrite
  5. SetEnv HTTP_MOD_REWRITE Off
  6. # charset
  7. AddDefaultCharset UTF-8
  8. # front
  9. <IfModule mod_rewrite.c>
  10. SetEnv HTTP_MOD_REWRITE On
  11. RewriteEngine on
  12. RewriteBase /ur/
  13. RewriteCond %{REQUEST_FILENAME} -s [OR]
  14. RewriteCond %{REQUEST_FILENAME} -l [OR]
  15. RewriteCond %{REQUEST_FILENAME} -d
  16. RewriteRule ^.*$ - [NC,L]
  17. RewriteRule ^api api.php [NC,L]
  18. RewriteRule ^.*$ index.php [NC,L]
  19. </IfModule>
  20. <ifmodule mod_deflate.c>
  21. AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  22. </ifmodule>
  23. Options -Indexes
  24. IndexIgnore *

photo
1

Richard,

You don't need to do anything with htaccess before installation. Just use instructions, after UR is installed from official answer. Do you get any error while installation and can you get to the home page after installation?

photo
1

Hi Stas,


Thanks, understand. However, I'm still having problem. Found an error log on install:

[Fri Aug 24 02:37:03 2012] [error] [client 192.168.1.13] PHP Warning: require_once(/var/www/html/ur/application/modules/files/Module.php): failed to open stream: No such file or directory in /var/www/html/ur/installation/index.php on line 1185, referer: http://192.168.1.14/ur/[Fri Aug 24 02:37:03 2012] [error] [client 192.168.1.13] PHP Fatal error: require_once(): Failed opening required '/var/www/html/ur/application/modules/files/Module.php' (include_path='/var/www/html/ur/library') in /var/www/html/ur/installation/index.php on line 1185, referer: http://192.168.1.14/ur/


I dont see any "files" directory under modules in the zip file I downloaded.

Under modules:

  1. [root@opensips ur]# ll ~/useresponse_free_2/application/modules/
  2. total 28
  3. drwxr-xr-x 4 root root 4096 Aug 22 21:57 ideas
  4. drwxr-xr-x 6 root root 4096 Aug 22 21:57 loginplus
  5. drwxr-xr-x 4 root root 4096 Aug 22 21:57 problems
  6. drwxr-xr-x 4 root root 4096 Aug 22 21:57 questions
  7. drwxr-xr-x 8 root root 4096 Aug 22 21:57 resources
  8. drwxr-xr-x 10 root root 4096 Aug 22 21:57 system
  9. drwxr-xr-x 4 root root 4096 Aug 22 21:57 thanks


Am I missing something?


Thanks.

photo
1

Bubba,

Could you please try to extract attached file to /installation folder, clean db, remove application.inc from application/configs if any and make installation one more time?

Let me know if it worked.

photo
1

Stas,


That has gotten rid of the install error. Now there are no installation errors.


However, I still have no subdirectories. So when I get the the Main Overview screen and click on Problems, I get this error log:


  1. [Fri Aug 24 03:01:33 2012] [error] [client 192.168.1.13] File does not exist: /var/www/html/ur/responses, referer: http://192.168.1.14/ur/

and see this on screen:

The requested URL /ur/responses/problems/status/all was not found on this server.


There is no /var/www/html/ur/responses created.


BTW, I am using PCRE 7.8 (as that is what comes with the stock CentOS).

I am modifying index.php to let this go, as shown in:

https://help.useresponse.com/responses/pcre-79-problem-for-installation-

I didn't think this should be a problem.

photo
1

I don't think PCRE is a problem, though you need to upgrade to have WYSIWYG work correctly.

Do you have in .htaccess RewriteBase /ur instead of RewriteBase / ?

photo
1

Yes, I did again from clean environment, same results.


Here are my steps:

  1. Create new database
  2. Copy UseResponse files to /var/www/html/ur
  3. Change ownership of everything under to apache:apache
  4. chmod 755 for /var/www/html/ur
  5. Copy the above attached (index.php) into installation directory
  6. Modify installation/index.php to allow PCRE 7
  7. Go to http://192.168.1.14/ur
  8. Do install -- no errors
  9. Modify .htaccess: "RewriteBase /" changed to "RewriteBase/ur"
  10. Go to http://192.168.1.14/ur -- I can see Main Overview page.
  11. Click on "Problems" -- get the error message:The requested URL /ur/responses/problems/status/all was not found on this server.

photo
1

Everything is correct, on step 9 you just don't have space between RewriteBase and /ur that is the only incorrect thing I see, so it should be:

  1. RewriteBase /url

photo
1

Sorry, that was a typo -- there is a space in my .htaccess -- but its still not working???


  1. # environment
  2. #SetEnv APPLICATION_ENV development
  3. SetEnv APPLICATION_ENV production
  4. #detect mod_rewrite
  5. SetEnv HTTP_MOD_REWRITE Off
  6. # charset
  7. AddDefaultCharset UTF-8
  8. # front
  9. <IfModule mod_rewrite.c>
  10. SetEnv HTTP_MOD_REWRITE On
  11. RewriteEngine on
  12. RewriteBase /ur
  13. RewriteCond %{REQUEST_FILENAME} -s [OR]
  14. RewriteCond %{REQUEST_FILENAME} -l [OR]
  15. RewriteCond %{REQUEST_FILENAME} -d
  16. RewriteRule ^.*$ - [NC,L]
  17. RewriteRule ^api api.php [NC,L]
  18. RewriteRule ^.*$ index.php [NC,L]
  19. </IfModule>
  20. <ifmodule mod_deflate.c>
  21. AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
  22. </ifmodule>
  23. Options -Indexes
  24. IndexIgnore *


Any ideas?

What environment is known to work? I am open to trying a known good environment, if CentOS is not well tested.

photo
1

It should either work on Centos or Debian or Windows, except FreeBSD where you won't have Zend Guard Loader to be installed.. possible issue is with mod_rewrite in apache.

Though we are limited in providing you support, as support is not included in free package. We could help you if you had commercial package. Sorry.

Try another environment on another server. it should work - just download new package from Pricing page.

photo
1

Hi Stas,

I've now installed a clean Debian 6.0.5 system with UseResponse 2.0.1, and have the SAME problem -- no subdirectories created.


I am able to install with no errors, (and now PCRE is on the right version).


Something is either wrong in the free package, or the instructions, so I don't think you should mark this as "solved".

photo
1

Bubba, if it's not working for you, please don't use folders. Install useresponse on just domain or sub domain like domain.com

photo
1

Hi Stas,


I have tried without any subdirectories (i.e on the main DocumentRoot).

So, I am now using the unmodified installation instructions.


I get the exact same results (no support directories created) on both CentOS and Debian. It appears to install correctly (get all green checks, and no error logs). But then I can only get to the main Overview screen, and nothing else works.


Thanks!

photo
1

Bubba,


I couldn't get it working either - the RewriteBase parameter didn't work by itself. After some playing with Apache config I finally got it working. Here is my (very simple) config:

  1. <VirtualHost your_ip_here:80>
  2. DocumentRoot /srv
  3. Alias /useresponse/ /srv/useresponse/
  4. CustomLog /var/log/apache2/useresponse/access_log common
  5. ErrorLog /var/log/apache2/useresponse/error_log
  6. </VirtualHost>

As you can see my useresponse directory is /srv/useresponse. RewriteBase points to /useresponse.


Hope this helps

photo
1

Hi tttt and Stas,


Thanks for your tips and helps!

After coming back to this, I was able to get it to work.


My problem is that I am not that experienced with setting up web servers.

I found in httpd.conf, I needed to change:

  1. AllowOverride None

to

  1. AllowOverride All

Not sure if this is something that would be good to have in the install docs, in case other inexperienced persons like myself may get caught.


Anyway, at least I get to try this product out and see how it works.


Hope this helps someone else.


Cheers.

photo
1

I have the same problem with rewrite rules.


I installed useresponse_free_2.0.1 to the root of my apache. /var/www/<here are files of useresponse>. Installation was ok, all marks were green, zend loader is installed.


But all requests except main page return 404.

I've tried to replace index.php in installation folder on index.php attached here, it didn't help. Also I replaced AllowOverride to All, but it didn't help too.


What information can I provide to you?

photo
1

same problem

photo
1

What type of server you are using? Apache, nginx or IIS?

photo
1

I have a problem solved switching module rewrite in Apache2

Replies have been locked on this page!