HelpDeskZ Community
Install not working - Printable Version

+- HelpDeskZ Community (http://community.helpdeskz.com)
+-- Forum: HelpDeskZ 2 (http://community.helpdeskz.com/forum-3.html)
+--- Forum: Support (http://community.helpdeskz.com/forum-5.html)
+--- Thread: Install not working (/thread-2427.html)



Install not working - hotstryker - 01-13-2023

Hello,

I am trying to test out helpdeskz.  However, I am unable to install it.  I'm running into an issue that seems several here have had, but posted solutions are not working for me.   I am working on a Dreamhost VPS.

Here's all I've done so far...

First, I double verified that all required dependencies were loaded by checking my phpinfo.php file.

Using the .htaccess that came with the downloaded zip,  when I point my browser to https://www.mysite.com/support/install, I get the message "No input file specified."

If I point my browser to https://www.mysite.com/support/index.php/install like others have tried, I do get the start of the install script.

OK, so steps taken to troubleshoot.

1)  used .htaccess from github that had been posted.  Looked the same as what came in my zip, but tried it any ways. 
results: same as with original file.

2) someone had posted to use:


Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]



so I created a new .htaccess with only those 4 lines in it.

result: same as above again.

3) finally just to make sure my mod_rewrite was in fact working (Dreamhost claimed it was on), I created a new .htaccess with only:


Code:
RewriteEngine On
RewriteRule (.*) https://www.duckduckgo.com/


result:  successfully redirected to duckduckgo.com  so I know the mod_rewrite is working on my server.

So, now I don't know where else to look or what to do.

Suggestions?


RE: Install not working - cord.schneider - 01-15-2023

It definitely sounds like there's something amiss with the redirection as far as HDZ is concerned. Can you confirm that you have tried the following .htaccess?

PHP Code:
# Disable directory browsing
#Options All -Indexes

# ----------------------------------------------------------------------
# Rewrite engine
# ----------------------------------------------------------------------

# Turning on the rewrite engine is necessary for the following rules and features.
# FollowSymLinks must be enabled for this to work.
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

# If you installed CodeIgniter in a subfolder, you will need to
# change the following line to match the subfolder you need.
# http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
# RewriteBase /

# Redirect Trailing Slashes...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule 
^(.*)/$ /$[L,R=301]

# Rewrite "www.example.com -> example.com"
RewriteCond %{HTTPS} !=on
RewriteCond 
%{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule http://%1%{REQUEST_URI} [R=301,L]

# Checks to see if the user is attempting to access a valid file,
    # such as an image or css document, if this isn't true it sends the
    # request to the front controller, index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteRule 
^([\s\S]*)$ index.php/$[L]

# Ensure Authorization header is passed along
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</
IfModule>

<
IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    ErrorDocument 404 index.php
</IfModule>

# Disable server signature start
    ServerSignature Off
# Disable server signature end 



RE: Install not working - hotstryker - 01-16-2023

The one you just posted caused me to get an Internal Server Error 500 where as before I was just getting the message "No input file specified."

I should mention that when I get the message "No input file specified", the only error I get in my server logs is

Code:
[15/Jan/2023:21:38:51 -0800] "GET /support/install HTTP/2.0" 404 135 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0"


I copied all the files over to XAMPP on my laptop and everything worked perfectly, so I'm now suspecting there is in fact something going on with Dreamhost.

I'm working with their tech support on it, but it's a slow battle because they are focused on trying to modify the .htaccess file.

When I get an actionable update from them, I'll report back here, hopefully with a solution.


RE: Install not working - cord.schneider - 01-16-2023

(01-16-2023, 05:44 AM)hotstryker Wrote: I copied all the files over to XAMPP on my laptop and everything worked perfectly, so I'm now suspecting there is in fact something going on with Dreamhost.

I'm working with their tech support on it, but it's a slow battle because they are focused on trying to modify the .htaccess file.

When I get an actionable update from them, I'll report back here, hopefully with a solution.

Thanks for the feedback, and it will be great to hear what Dreamhost have to say about the issue. Keep us posted!


RE: Install not working - hotstryker - 01-24-2023

OK, finally getting some forward movement with the Dreamhost team.  And it seems we're running into an issue with the rewrite rules and AllowOverride settings.

They did have a few questions related to how helpdeskz works with the rewrites.  To sum them up...

1) What exactly does Allow Override need to be set at for helpdeskz to work (other than All)?
2) is it needed only for the install of helpdeskz or for the on going usage of it?

and then my own question...

3) Dreamhost is configured to "AllowOverride AuthConfig FileInfo" (and cannot be changed on the shared hosting or VPS)  Can the .htaccess file be rewritten for helpdeskz to work with that setting?


RE: Install not working - cord.schneider - 02-01-2023

(01-24-2023, 11:20 AM)hotstryker Wrote: OK, finally getting some forward movement with the Dreamhost team.  And it seems we're running into an issue with the rewrite rules and AllowOverride settings.

They did have a few questions related to how helpdeskz works with the rewrites.  To sum them up...

1) What exactly does Allow Override need to be set at for helpdeskz to work (other than All)?
2) is it needed only for the install of helpdeskz or for the on going usage of it?

and then my own question...

3) Dreamhost is configured to "AllowOverride AuthConfig FileInfo" (and cannot be changed on the shared hosting or VPS)  Can the .htaccess file be rewritten for helpdeskz to work with that setting?

1) I don't really know the full requirements for AllowOverride wrt HelpDeskZ and my Linux background is limited. My understanding of AllowOverride is that it grants .htaccess 'permission' to make changes to configuration settings based on certain directives. Based on reading here, it would appear that AuthConfig and FileInfo should be sufficient given the directives being used in HelpDeskZ's .htaccess file. The only thing that causes me concern is that .htaccess does have an Options directive that wouldn't be covered by AuthConfig and FileInfo. I suspect that FollowSymlinks is necessary.

2) As far as I know, the rewrites will be needed for both installation and regular use.

3) I can't see anything in the .htaccess file requiring a rewrite as the directives in the .htaccess all fall into either AuthConfig or FileInfo.. except for the Options directive (which may or may not be important).

On a separate note, I don't suppose you have other hosting options other than Dreamhost? Have you considered using Oracle Cloud's free tier? If you choose a VM.Standard.A1.Flex instance, you can have up to 4 vCPUs and 32GB RAM - for free, forever. Might be an option if Dreamhost can sort you out.

https://www.oracle.com/uk/cloud/free/