How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

User avatar
Sanchous
User w
User w
Posts: 7
Joined: Sun Oct 29, 2017 2:11 pm
Location: Canada

How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by Sanchous »

Hello there I know that question has been asked a lot of times already but I still can not manage it myself please help.

What I got installed on my Windows 10 computer:

WAMPServer 3.1.0 - running a and fully operable.
phpMyAdmin 4.7.4 - which is onto WAMPServer.
Wordpress 4.8.2 that install onto it.

PhpMyAdmin Configuration:

I've changed the ports into httpd.conf files on apache from default one 80 to 2689 so that it starts working.

#Listen 12.34.56.78:2869
Listen 0.0.0.0:2869
Listen [::0]:2869


I've also followed this steps https://www.axew3.com/w3/forums/viewtopic.php?t=61 to find out my Absolute Path by creating a phpinfo.php file and placed that file right into a server root directory, not a WP like was saying in instruction.

my path to phpinfo.php: http://localhost:2869/phpinfo.php

I found the "DOCUMENT_ROOT" and the path was: C:/wamp64/www/

I've also moved a folder wp-w3all-config from C:\wamp64\www\mysite\wp-content\plugins\wp-w3all-phpbb-integration\addons
to C:\wamp64\www\mysite\wp-content\plugins and have edited and uncomment last line in config.php file as per instruction in it.
Here is what I got into config.php that I've edited:

$w3all_dbms = 'phpbb\\db\\driver\\mysqli'; // maybe required
$w3all_dbhost = 'localhost';
$w3all_dbport = ''; // maybe required
$w3all_dbname = 'test_db'; - my local DB Name
$w3all_dbuser = 'root';
$w3all_dbpasswd = '';
$w3all_table_prefix = 'phpbb_';
$w3all_phpbb_adm_relative_path = 'adm/'; // maybe required
$w3all_acm_type = 'phpbb\\cache\\driver\\file'; // maybe required

The problem that I experiencing right now is just, to be honest, that I don't understand which is the absolute path should be in my case as I'm running an everything locally.

That what I have tried to put into Absolute Path and URL Path as the all my files into: wamp64/www/

my local Wordpress link is: http://localhost:2869/mysite
my local WP page that I've created for forum is: http://localhost:2869/mysite/forum

C:\wamp64\www\wp-content\plugins\wp-w3all-config\config.php
C:\wamp64\www\wp-content\plugins\wp-w3all-config\config
C:\wamp64\www\wp-content\plugins\wp-w3all-config
C:/wamp64/wwww/wp-content/plugins/wp-w3all-config/config.php
C:/wamp64/wwww/wp-content/plugins/wp-w3all-config/config
C:/wamp64/wwww/wp-content/plugins/wp-w3all-config
www/htdocs/localhost:2869/mysite/forum/wp-content/plugins/wp-w3all-config/config.php
www/localhost:2869/mysite/forum/wp-content/plugins/wp-w3all-config/config
www/localhost:2869/mysite/forum/wp-content/plugins/wp-w3all-config

For URL path I've tried this one:

http://localhost:2869/mysite/forum

Please help me what is exact Absolute path should be in my case for and URL Path.

Thanks in advance.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by axew3 »

Hello, as on data you report should be:
PATH to custom config folder (if you use it):
C:\wamp64\www\mysite\wp-content\plugins\wp-w3all-config

while as URL value you need to set the real URL of your phpBB so something like:
http://localhost/myphpbb

you not mention the real URL of your installed phpBB, so i can't indicate what's the absolute path to phpBB in case you want include the root config.php file.
assuming as example the above http://localhost/myphpbb is the URL where your phpBB is installed and that is the setting you'll set as URL into wp_w3all config, than the absolute path would be:
C:\wamp64\www\mysite\myphpbb
User avatar
Sanchous
User w
User w
Posts: 7
Joined: Sun Oct 29, 2017 2:11 pm
Location: Canada

Re: How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by Sanchous »

Hello axew3,

Thank you for your reply I really appreciate it.

You won't believe, I've managed to make it work :lol:

So, what I'm doe is:

In ABSOLUTE PATH I've put like you said a: C:\wamp64\www\mysite\wp-content\plugins\wp-w3all-config
And
In a URL VALUE PATH I've put a: http://localhost:2869/phpBB3

And, when I saved it just redirects me to my local website, so after that I have navigated to my forum page and the phpBB showed up on that page. :D

But, if you don't mind to answer my next question I'll ask you though.

at localhost:2869/phpBB3

On my ACP Admin board in GENERAL Tab, I got A "WARNING" whare is saying next:

Please delete, move or rename the install directory before you use your board. If this directory is still present, only the Administration Control Panel (ACP) will be accessible.

- I've installed the phpBB3 right onto my newly created a DB in MySQL Local Server where is a WordPress site remains as well.
- If I going to rename a DB name where they are stored they both a Wordpress and phpBB will lose a path to it. ( Or that is no what it saying in this Warning?)

And right after-below saying next:

Your config PHP (config.php)is currently world-writable. We strongly encourage you to change the permissions to 644 (for example chmod 640 config.php)

- Should change permission for local usage?
- If I have to change it so, where should I go to apply this changes?

Thanks,
User avatar
Sanchous
User w
User w
Posts: 7
Joined: Sun Oct 29, 2017 2:11 pm
Location: Canada

Re: How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by Sanchous »

And what else I find out is that when w3all starts working and redirects me into WordPress Website, I won't be able anymore to login into my WordPress DashBoard.
When I put my credential its get through but at the top of the screen the dashboard of WordPress is not showing up anymore like as usually when you logged into your WordPress dashboard.
So I did some troubleshooting to make sure that is really relating to w3all plugin.

I went into the plugins folder and renamed the w3all folder and right after that, I was able to log into my WordPress dashboard.

Could you tell me please what is that could be that is preventing the WordPress Admin Dashboard to shows up while the W3all Plugin is active and working?


thanks
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by axew3 »

can you access user profile, but not admin dashboard?
User avatar
Sanchous
User w
User w
Posts: 7
Joined: Sun Oct 29, 2017 2:11 pm
Location: Canada

Re: How to set up an Absolute Path to config.php file by using WordPress w3all plugin on Local Computer ( Windows 10 )

Post by Sanchous »

No, I can’t access any profile, the whole WordPress dashboard is not showing up at all.

Like this one in picture below it’s just no opening at all.
https://codex.wordpress.org/File:dashboard.png

The WordPress is accepting my credentials and after you I put them it’s just reloads a page and when the Dashboard has to open up its just open again a home page and that all, same as if I was a visitor of website. But when I disabled a plug-in it’s just function normally as it used to do.

And it’s starts happening right after I have inserted an absolute path an URL and activate a w3all plugin.

Do you know what is that could be and how can I fix it?
Post Reply