![]() |
Problem with include virtual
I have a problem with tradescript not counting hits and toplists not being shown on index page.
In my index.shtml file I have this in the <head>: Quote:
Quote:
Quote:
Still include virtual won't work. Any suggestions what else to do? Something that needs to be enabled on server? I am not managing it myself. |
back in days, i had same issue, i dont recall the solution.,
but try one of these. 1) try full path in include 2) try require or require_once instead of include 3) try accessing /tradex/in.php?${QUERY_STRING} using web browser, if you can access it , i mean if you dont get any permission error, then i dont see any other issue. good luck |
This is what I use to show toplist:
Quote: <!--#include virtual="trades/top list.html" --> Still include virtual won't work. try: <!--#include virtual="/trades/toplist.html" --> / needs to be in the path The state of AllowOverides Quote:
=== You may need (probably do) to edit the root files in the Apache server for that domain's account configuration for SSI to work. This works for CGI but with PHP I *don't* think its necessary In /etc/apache2/sites-enabled <Directory /home/xxxx/xxx/www/xxxx/public_html/> Options Includes ExecCGI </Directory> <Location /cgi-bin> Options +ExecCGI </Location> AddHandler server-parsed .shtml ###### #then make symbolic link a2ensite www.domain.tld /etc/init.d/apache2 reload ###### The state of AllowOveride |
Thanks for the suggestions :thumbsup
Ended up with a respons from server admin: "I ran a ' a2enmod include ' via ssh. Linux mod_include appeared to be disabled." Things work now, thanks again :) |
https://httpd.apache.org/docs/curren...d_include.html
I like SSI but it is old school ... Very fast and native to the server. That is mod has been enabled with the every default build I have worked with. My newest server Apache2 install had that mod off too -- but I did a custom compile and overlooked it ... Code:
[email protected]:~# a2enmod include |
All times are GMT -7. The time now is 10:17 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123