Error 403

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
I have deleted all the files from my website to start again from 0 but when I have installed WordPress and try to access to the admin panel I see error 404 and when I open the website main page I see 403
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
Did you delete the public_html for the domain? /domains/domain/public_html/

If you can't figure it post your domain.
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
Use Directadmin CP file manager and create a folder - public_html in the directory /domains/makhlwf.com.ly/

The WP installation should have failed.
 

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
Use Directadmin CP file manager and create a folder - public_html in the directory /domains/makhlwf.com.ly/

The WP installation should have failed.

I created the folder and reinstalled WordPress, as you told me. The installation was successful, and its contents and WordPress went to the new folder, but still, when I open my site, a 404 error appears.
 

Attachments

  • Screenshot_2024-02-21-16-55-06-855_com.android.chrome.jpg
    Screenshot_2024-02-21-16-55-06-855_com.android.chrome.jpg
    151.5 KB · Views: 7
  • Screenshot_2024-02-21-16-55-21-846_com.android.chrome.jpg
    Screenshot_2024-02-21-16-55-21-846_com.android.chrome.jpg
    358.4 KB · Views: 7

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
Post a screenshot of the /domains/ directory.
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
There is no such a directory. I posted two screenshots of all the available directories.
"Empty the content of the public_html directory" or delete it before you go on to next step.

Use directadmin > domain setup - +add new free x10 domain, "someword.x10.mx". Keep it simple. When the domain adds successfully, make it default. Then check for the directory /domains/ again.

filemanager.png
 
Last edited:

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
"Empty the content of the public_html directory" or delete it before you go on to next step.

Use directadmin > domain setup - +add new free x10 domain, "someword.x10.mx". Keep it simple. When the domain adds successfully, make it default. Then check for the directory /domains/ again.

I did it now and when I opened the domains director I see the new domain only I didn't see my old domain I attempted to create a folder with my old domain name but I don't think the website has realized it
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
I did it now and when I opened the domains director I see the new domain only I didn't see my old domain I attempted to create a folder with my old domain name but I don't think the website has realized it

Now make "Makhlwf.com.ly" default!! hopefully DA will correct the file path. If it works there should be a symlink in the My Files directory "public_html" to the default domain.!! It has a little arrow on it. and you will see a folder in /domains/makhlwf.com.ly/

I have to go, back in a few hours if you have more issues.
 
Last edited:

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
Now make "Makhlwf.com.ly" default!! hopefully DA will correct the file path. If it works there should be a symlink in the My Files directory "public_html" to the default domain.!! It has a little arrow on it. and you will see a folder in /domains/makhlwf.com.ly/

I have to go, back in a few hours if you have more issues.


Could you tell me how to set it as default
 

Attachments

  • Screenshot_2024-02-21-21-03-44-854_com.android.chrome.jpg
    Screenshot_2024-02-21-21-03-44-854_com.android.chrome.jpg
    313.1 KB · Views: 4

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
DirectAdmin menu >> Domain setup - check the domain you want default. The set as default is now ready to click.
View attachment 11367


I did something different. So I deleted all two domains, my official domain and the new one. And I added my old domain as new domain and set it as default. And I have noticed it's created folder with the domain name. And I reinstalled the WordPress, but now I encounter a problem where WordPress says that my SQL is missing from PHP. This is facing me in admin link. But when I'm trying to open my main domain page, it now says again 403 error.
 

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
I did something different. So I deleted all two domains, my official domain and the new one. And I added my old domain as new domain and set it as default. And I have noticed it's created folder with the domain name. And I reinstalled the WordPress, but now I encounter a problem where WordPress says that my SQL is missing from PHP. This is facing me in admin link. But when I'm trying to open my main domain page, it now says again 403 error.
DirectAdmin CP Menu: Extra Features >> Select PHP version.
Dashboard > Domain Setup > click domain name. There should be a checkmark in PHP Access and Secure SSL.
Get to know your way around DirectAdmin, before adding a lot of data to WP in case something breaks.
(Look at the WP htaccess file. May need to be renamed with a dot .htaccess)

Warning: DNS records changed for makhlwf.com.ly.

 
Last edited:

ctyrd

Active Member
Messages
956
Reaction score
80
Points
28
I did something different. So I deleted all two domains, my official domain and the new one. And I added my old domain as new domain and set it as default. And I have noticed it's created folder with the domain name. And I reinstalled the WordPress, but now I encounter a problem where WordPress says that my SQL is missing from PHP. This is facing me in admin link. But when I'm trying to open my main domain page, it now says again 403 error.
I'd say the system broke, when you removed both domains. The default domain should not have been able to be removed. The support team needs to review.
 

Makhlwf

New Member
Messages
9
Reaction score
0
Points
1
I'd say the system broke, when you removed both domains. The default domain should not have been able to be removed. The support team needs to review.

Do I have to wait to do something? Or just waiting?
 

Eric S

Administrator
Staff member
Messages
1,062
Reaction score
146
Points
63
Can you re-attempt to add the domain to your directadmin and let us know what the error / results are?
 
Top