snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Initial Config for httpd.conf

Open jasonbyatt opened this issue 10 years ago • 10 comments

Expected Behavior (or desired behavior if a feature request)

Trying to get to the initial setup screen

Actual Behavior

The 172.26.0.25 page isn’t working

172.26.0.25 is currently unable to handle this request.

Please confirm you have done the following before posting your bug report:


I thought I would post here because I am currently doing this solo, this being my first ever linux experience I feel like I've done so well and I am so close so please help! I feel like I have done something wrong in the httpd.conf file everything has installed so far this is the last part.

jasonbyatt avatar Sep 29 '16 12:09 jasonbyatt

Here is my config please help me to understand where I'm going wrong

httpd.txt

jasonbyatt avatar Sep 29 '16 12:09 jasonbyatt

If this is your whole httpd.conf than its corrupt If you are using centos you can try this: httpd.txt than you have to put in /etc/httpd/conf.d this: snipeit.txt

rename it to snipeit.conf and restart your webserver afterwards

Regards

langweiler2003 avatar Sep 29 '16 12:09 langweiler2003

Still same error It's redirecting me to http://172.26.0.25/setup I no longer even receive the apache page

To confirm I am using CentOS

jasonbyatt avatar Sep 29 '16 14:09 jasonbyatt

Okay I have the apache screen back, is there somewhere in particular I need to add the snipeit.txt content to on the script?

jasonbyatt avatar Sep 29 '16 14:09 jasonbyatt

httpd-copy.txt I have done some further troubleshooting, the webserver is working so the issue must lie with some of the documents in the set up?

I've changed the document root and its taking me to a localhost/setup folder that it says it can't find? I've uploaded my current httpd.conf

jasonbyatt avatar Sep 30 '16 09:09 jasonbyatt

Okay updated troubleshoot, I've compiled things I have tried

  1. Confirmed access on all folders isnt root, even applied 777 permissions throughout (to confirm this isn't a permissions issue)
  2. Added some garbage into .htaccess and it has chucked up an error so mod_rewrite is working
  3. Changed document root and created dummy index.php to confirm web server is working as it should

jasonbyatt avatar Oct 04 '16 08:10 jasonbyatt

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

should probably be

<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>

Otherwise nothing looks particularly wrong. When you ls -al /var/www/html/snipeit/public what do you see?

snipe avatar Oct 13 '16 00:10 snipe

Hi,

got the same error - trying to access in browser got the redirection to url/setup and the 500 error. Here is the public:

[root@snipeit public]# ls -lah total 84K drwxr-xr-x. 6 apache apache 4.0K Nov 2 11:25 . drwxr-xr-x. 14 root root 4.0K Nov 2 11:44 .. drwxr-xr-x. 7 apache apache 4.0K Nov 2 11:25 assets drwxr-xr-x. 3 apache apache 4.0K Nov 2 11:25 build drwxr-xr-x. 3 apache apache 4.0K Nov 2 11:25 _debugbar -rw-r--r--. 1 apache apache 32K Nov 2 11:25 favicon.ico -rw-r--r--. 1 apache apache 724 Nov 2 12:08 .htaccess -rw-r--r--. 1 apache apache 1.9K Nov 2 11:25 index.php -rw-r--r--. 1 apache apache 24 Nov 2 11:25 robots.txt -rw-r--r--. 1 apache apache 12K Nov 2 11:25 sample.csv drwxr-xr-x. 7 apache apache 4.0K Nov 2 11:25 uploads -rw-r--r--. 1 apache apache 914 Nov 2 11:25 web.config [root@snipeit public]#

Installed via git clone.

CentOS 6.5 with PHP 5.6 is used.. mod_rewrite is working (adding garbage text to .htaccess gives the internal error while trying to access in chrome after).

Tried to set permissions 777 for the installation directory - got 2 x "Whoops, looks like something went wrong" lines..

Thank you.

arthur-thebear avatar Nov 02 '16 16:11 arthur-thebear

There is no /setup directory.

snipe avatar Nov 02 '16 20:11 snipe

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

stale[bot] avatar Jan 20 '18 20:01 stale[bot]