Resolved Apache is functioning normally [HELP]

Status
Not open for further replies.

oposito3

New Member
Messages
6
Reaction score
0
Points
1
Hi guys, my site is down long time ago. When I try to access, I have this error:

82656fd3f3f004b0df28af74f22106a6.png

bf6119309697be1158dddac4f6b9044a.png



My site:

opositoresamaa.x10host.com

I don´t know how to fix that. Not sure if staff banned site or what is the real problem.

If anyone can help me with that, I´ll be so grateful.

Best regards
 

Anna

I am just me
Staff member
Messages
11,768
Reaction score
590
Points
113
I do not see the message about apache on your site, however I am met with an internal server error, which often indicates a problem with the code. This could be due to the fact that all accounts are now bumped to php version 7.2, if you have older code there may be functions that no longer are available in the php.

The error log, found under "System info & Files" would likely have some clues about why you get the error.

There is an option to downgrade to php version 5.6, found under "Extra Features", which should in that case resolve the problem (a common problem is that older code may still use mysql_connect and similar which was removed completely in php 7.0 after being a depreceted function for a few versions).

As for you seeing the apache message, free hosting does not fully support ssl at this time (you can't get a cert), but to avoid getting that error message you need to have SSL turned on for the domain, done under domain management, users would however get an error about cert being invalid as the domain would try to use the server cert.
 

oposito3

New Member
Messages
6
Reaction score
0
Points
1
At first, thanks for your fast answer.

I do not see the message about apache on your site, however I am met with an internal server error, which often indicates a problem with the code. This could be due to the fact that all accounts are now bumped to php version 7.2, if you have older code there may be functions that no longer are available in the php.

The error log, found under "System info & Files" would likely have some clues about why you get the error.

There is an option to downgrade to php version 5.6, found under "Extra Features", which should in that case resolve the problem (a common problem is that older code may still use mysql_connect and similar which was removed completely in php 7.0 after being a depreceted function for a few versions).


I`ve changed php version to 5.6

41532ab6da16dcd69e3dc0d9de3117ec.png



As for you seeing the apache message, free hosting does not fully support ssl at this time (you can't get a cert), but to avoid getting that error message you need to have SSL turned on for the domain, done under domain management, users would however get an error about cert being invalid as the domain would try to use the server cert.

I´ve marked like you suggested me:

239ff6afc93ea84d0951b86e97d2f825.png


Problem persist, I can`t accesss to my site. Now error changed with the new
suggestions:

254201f41469ad4eb6e7c882a6a2bf09.png

What could be happening? Site is a phpbb forum.

Regards
 

Anna

I am just me
Staff member
Messages
11,768
Reaction score
590
Points
113
At the very least you would need to have PHP Access enabled for the domain, otherwise any php pages would not get parsed.

Does your error log hold any clues?

Do you have an index file (ie index.html, index.php)? If you have a designated landing page with a different name you'll have to tell the server you want that to load by default, or change its name (and any links going to that file). To tell the server that your landing page should be the one called home.php (as an example) you would need to edit/create .htaccess and add the following (without quotes): "DirectoryIndex home.php". Change home.php to match your file.

Were you previously having the domain show a directory listing?
If you did you will now need to edit/create .htaccess and add the following line (without quotes): "Options +Indexes". This is due to the directorly listing being turned of by default for security.
 

oposito3

New Member
Messages
6
Reaction score
0
Points
1
At the very least you would need to have PHP Access enabled for the domain, otherwise any php pages would not get parsed.
Where can I enable this option?

Does your error log hold any clues?

No.

https://x11.x10hosting.com:2222/CMD_SHOW_LOG?domain=opositoresamaa.x10host.com&type=error&lines=100


Do you have an index file (ie index.html, index.php)? If you have a designated landing page with a different name you'll have to tell the server you want that to load by default, or change its name (and any links going to that file). To tell the server that your landing page should be the one called home.php (as an example) you would need to edit/create .htaccess and add the following (without quotes): "DirectoryIndex home.php". Change home.php to match your file.

I have an index.php, .htaccess edited with DirectoryIndex index.php.


Were you previously having the domain show a directory listing?

https://opositoresamaa.x10host.com/public_html/forum/index.php

If you did you will now need to edit/create .htaccess and add the following line (without quotes): "Options +Indexes". This is due to the directorly listing being turned of by default for security.


Done!

.htacces route: https://opositoresamaa.x10host.com/public_html

8e5b02b86685328f64ac91759617e379.png


*site is in forum directory. Is the .htaccess route directory ok?


Regards

Edit:

Now, when I try to access to: http://opositoresamaa.x10host.com/forum/

Server show me this error:

31e0340e9ea6fe10a972726066a0fa35.png


Added this line in .htaccess:
Code:
php_flag engine on

Nothing changed...
 

Attachments

  • .htaccess.txt
    2.2 KB · Views: 1
Last edited:

Anna

I am just me
Staff member
Messages
11,768
Reaction score
590
Points
113
In the screenshot you posted earlier, where you mentioned having enabled SSL, you also have a checkbox saying PHP Access, that needs to be checked.

.htaccess can stay where it is, but the link you posted (https://opositoresamaa.x10host.com/public_html) is incorrect as you do not have a public_html file inside the default one, your domain (opositoresamaa.x10host.com) IS the representation of what you have inside the public_html folder for the world.

Your .htaccess looks like it would have a syntax error as I can see at least one closing tag (</IfModule>) that does not have a starting tag, to ensure that the .htaccess is not what causes problem, you could rename it for now as it would then be bypassed.

Note that with php version 5.6 (which you would likely not need if you have kept the forum properly updated), you also would need to tell what functions to use, mysql, mysqli and PDO would be good starting points.
 

oposito3

New Member
Messages
6
Reaction score
0
Points
1
In the screenshot you posted earlier, where you mentioned having enabled SSL, you also have a checkbox saying PHP Access, that needs to be checked.

.htaccess can stay where it is, but the link you posted (https://opositoresamaa.x10host.com/public_html) is incorrect as you do not have a public_html file inside the default one, your domain (opositoresamaa.x10host.com) IS the representation of what you have inside the public_html folder for the world.

Your .htaccess looks like it would have a syntax error as I can see at least one closing tag (</IfModule>) that does not have a starting tag, to ensure that the .htaccess is not what causes problem, you could rename it for now as it would then be bypassed.

Note that with php version 5.6 (which you would likely not need if you have kept the forum properly updated), you also would need to tell what functions to use, mysql, mysqli and PDO would be good starting points.

Now site is working fine!!!

ac30b68fbf8c2a44d81472c24dde05b6.png


Thank you very much for your help, really.

You can mark the thread as resolved

Best regards Anna.
 
Status
Not open for further replies.
Top