Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something appears to be broken. #1

Closed
soarn opened this issue Jul 2, 2019 · 2 comments
Closed

Something appears to be broken. #1

soarn opened this issue Jul 2, 2019 · 2 comments

Comments

@soarn
Copy link

soarn commented Jul 2, 2019

Context:
content directory: /var/www/html/
src directory: /var/www/src/
public directory: /var/www/html/public/
all of my content is located in /var/ww/html/* (not in /var/www/html/public/* folder)
apache2 location: /etc/apache2/
server location: s.soarn.pro


I have in /etc/apache2/sites-avaiable a file named s.soarn.pro.conf and is has:

<VirtualHost *:80>
    ServerName https://s.soarn.pro/
    ServerAlias www.s.soarn.pro/

    DocumentRoot "/var/www/website/"
    DirectoryIndex index.php index.html index.htm /indexer.php
</VirtualHost>

I also have in /etc/apache2/ a .htaccess file with

DirectoryIndex index.php index.html index.htm /indexer.php

In the /etc/apache2/ is the apache2.conf file, which should be the default file, I added to the end of it:

irectoryIndex index.php index.html index.htm /indexer.php
# Requires rewrite module to be enabled (sudo a2enmod rewrite).
RewriteEngine On
RewriteRule ^/indexer.php(.*)$ - [R=404,L]

So far, even with systemctl restart apache2 nothing is working, and I just get the default apache2 layout on the server. I also installed mbstring, jquery.scrollTo, and Tocca.js. However nothing appears to be working. Is there something that I am doing wrong?

Thanks, Soarn.

@sixem
Copy link
Owner

sixem commented Jul 3, 2019

From what i can see you have placed the public directory in your DocumentRoot. Try moving the files from public straight into your DocumentRoot directory instead, and then edit the indexer.php to make sure it points directly to the source file, this line right here: require_once('../src/eyy-indexer.php');.

If it still doesn't work, then i'll have to test it out for myself.

@soarn
Copy link
Author

soarn commented Jul 4, 2019

Well jeez, why didn't I realize that? But thank you so much! This has 100% fixed it, thank you a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants