Author |
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 21 February 2020 at 2:02am | IP Logged
|
|
|
Hello,
when loading first login interface, index.php code is displayed instead of solving system/autoload.php
Is there any recommandations for apache configuration?
My config :
<VirtualHost *:80>
ServerName webmailtest1.tn
ServerAlias www.webmailtest1.tn
DocumentRoot /var/www/afterlogic8
<Directory "/var/www/afterlogic8">
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/afterlogic8/error.log
CustomLog /var/www/afterlogic8/requests.log combined
</VirtualHost>
Thank you.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 February 2020 at 2:08am | IP Logged
|
|
|
Are you saying that you get a source code of index.php page displayed in the browser? In that case, looks like PHP isn't configured to handle .php scripts and you should look into that.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 21 February 2020 at 2:16am | IP Logged
|
|
|
In fact, every thing worked fine before changing apache config to use virtual hosts. That's why I eliminate php issue
Any idea about php options tha must be installed?
Those that I use :
php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
ldap
libxml
mbstring
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zip
zlib
Any help?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 February 2020 at 2:19am | IP Logged
|
|
|
Right now I'm trying to understand what's going on exactly:
Quote:
Are you saying that you get a source code of index.php page displayed in the browser? |
|
|
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 21 February 2020 at 2:22am | IP Logged
|
|
|
Yes
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 February 2020 at 2:22am | IP Logged
|
|
|
...and if so, this discussion thread may be of use:
Apache Virtual Host not parsing PHP
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 21 February 2020 at 6:23am | IP Logged
|
|
|
Hi, it was a problem related the http default configuration. After commenting them, no more index code apperas. However, it says forbidden (403) even data folder has the right permission. Any suggestion?
Thank you
Regards,
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 22 February 2020 at 1:26am | IP Logged
|
|
|
Error LOG
[Sat Feb 22 09:31:29.776984 2020] [autoindex:error] [pid 2624] [client 10.10.100.49:60808] AH01276: Cannot serve directory /var/www/afterlogic835/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 23 February 2020 at 9:59pm | IP Logged
|
|
|
Per the error message, try setting DirectoryIndex to index.php in Apache configuration. The problem doesn't look related to WebMail anyway, see if a simple index.php with something like <?php phpinfo(); there works for you.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
wbenkhoud Groupie
Joined: 16 July 2019 Location: Tunisia
Online Status: Offline Posts: 50
|
Posted: 24 February 2020 at 6:58am | IP Logged
|
|
|
Absolutely, it was httpd configuration missmatched.
Thank you.
Best regards,
|
Back to Top |
|
|