problem

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

I tried restoring from a backup
and I got to the point where the forums main page shows
but all links don't work

the page says :

Not Found​

The requested URL was not found on this server.
Apache/2.4.51 (Debian) Server at url Port 80
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

post thread shows :
Oops! We ran into some problems. Please try again later. More error details may be in the browser console.
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

the acp shows an err :
"Error: Class 'DOMDocument' not found src/vendor/laminas/laminas-feed/src/Reader/Reader.php:319"
 
Last edited:

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,533
Points
523

Reputation:

I tried restoring from a backup
and I got to the point where the forums main page shows
but all links don't work

the page says :

Not Found​

The requested URL was not found on this server.
Apache/2.4.51 (Debian) Server at url Port 80
shlukPlease describe in detail what you have executed and done.
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

Please describe in detail what you have executed and done.
BattleKingI first preped the vps :
Code:
sudo apt-get install apache
sudo apt-get install apache2
sudo apt update
//install Maria DB (with sudo)
apt install mariaDB-server
apt install php7.4
//connect apache to php
a2enmod php7.4
sudo mysql_secure_installation
save the mysql pass
answer y to all
also installed php7.4-xml
and mysqli

Code:
scp the backup files to /home/user
CREATE USER'domain'@'localhost' IDENTIFIED BY 'dbpassword'
GRANT ALL PRIVILIGES ON domain.* TO 'domain'@'localhost'
gzip -d domain.sql.gz
mysql -u root -p domain < domain.sql
pass : main sql pass
wait
//still in /home/user
tar -xvf domain.tar.gz
cd var
cd www
cd html
mv domain /var/www/html
cd /etc/apache2/sites-available
made the url.conf for the site
service apache2 reload
 

sucre13

Moderator
Staff member
Moderator
Collaborate
Registered
Joined
Jan 19, 2019
Messages
859
Points
153

Reputation:

I first preped the vps :
Code:
sudo apt-get install apache
sudo apt-get install apache2
sudo apt update
//install Maria DB (with sudo)
apt install mariaDB-server
apt install php7.4
//connect apache to php
a2enmod php7.4
sudo mysql_secure_installation
save the mysql pass
answer y to all
also installed php7.4-xml
and mysqli

Code:
scp the backup files to /home/user
CREATE USER'domain'@'localhost' IDENTIFIED BY 'dbpassword'
GRANT ALL PRIVILIGES ON domain.* TO 'domain'@'localhost'
gzip -d domain.sql.gz
mysql -u root -p domain < domain.sql
pass : main sql pass
wait
//still in /home/user
tar -xvf domain.tar.gz
cd var
cd www
cd html
mv domain /var/www/html
cd /etc/apache2/sites-available
made the url.conf for the site
service apache2 reload
shlukwhy not better use a free panel hestia cp or vitualmin so that you do not have to be with these problems
 

sucre13

Moderator
Staff member
Moderator
Collaborate
Registered
Joined
Jan 19, 2019
Messages
859
Points
153

Reputation:

sure you did not make the backup copy and files or information are missing
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,169
Points
173

Reputation:

check your php extension and apache mod.
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

BattleKing

Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
Joined
May 24, 2020
Messages
3,533
Points
523

Reputation:

what does that mean ? how ?
shlukSo it is a complete server and you start to setup a new system. and install the backup of an existing one.
In the configuration of PHP and apache.
Did you also check the web service logs? Are there any error messages?

Check with the xenforo requirement script, if the server has been configured correctly.

You could also try to do a fresh install of xenforo to see if that works, if that works, try the same with your backup.
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

I see this error in the log :
  • Error: Class 'DOMDocument' not found
  • src/vendor/laminas/laminas-feed/src/Reader/Reader.php:319
the problem is when I click on any thread or link for that matter I get a white page saying :

Not Found​

The requested URL was not found on this server.


Apache/2.4.51 (Debian) Server at domain Port 80

I tried setting bitmitigate to port 80 or 443 and it still errors.
I have sat on this problem for 2 weeks now. it has become personal. at this point it's not about the forum
it's about solving the puzzle of why

other than that I can see the forum working

only the forum list page works

this also changed nothing :
Code:
excute this command to edit apache conf file of your server.

nano /etc/apache2/apache2.conf

And Kindly find this section and update this.
from

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

To

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>

Then apache2 restart
sudo service apache2 restart

End. Hope it works well.

I fixed it !
 

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

I had to disable friendly urls !
but how do I enable them again ?
 

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

I had to disable friendly urls !
but how do I enable them again ?
shlukI had a feeling that is what you did, I did say so above...

Enable them and I THINK it is this you must almost uncomment in your htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
 
View previous replies…

shluk

Active member
Registered
Joined
May 10, 2021
Messages
40
Points
8

Reputation:

I had a feeling that is what you did, I did say so above...

Enable them and I THINK it is this you must almost uncomment in your htaccess file:
Soul02thanks I'll try it.
also how do I enable the site to send registration confirmation emails ?
(I think it's some service I need to install on the debian)
 

Soul02

Active member
Registered
Joined
Aug 24, 2021
Messages
35
Points
8

Reputation:

thanks I'll try it.
also how do I enable the site to send registration confirmation emails ?
(I think it's some service I need to install on the debian)
shlukAdmin > Setup > User registration - it is all in there :)
 

thomsa

Moderator
Staff member
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
Jun 22, 2019
Messages
1,169
Points
173

Reputation:

thanks I'll try it.
also how do I enable the site to send registration confirmation emails ?
(I think it's some service I need to install on the debian)
shlukinstall smtp server use.
apt install exim

but use control panel good way. vestarcp, hestia ...
 
Top