New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templates/ directory not found but is there #16184
Comments
|
Could you try to edit phpmyadmin/libraries/classes/Template.php Line 61 in f4582e0
|
|
Have changed to the following:
public const BASE_PATH = '/www/httpphp/htdocs/phpmyadmin/templates/';
the setup is now working but when try to run phpMyAdmin now we got following error:
PHP Fatal error: Uncaught TypeError: chdir() expects parameter 1 to be a valid path, bool given in /www/httpphp/htdocs/phpmyadmin/libraries/classes/Response.php:506
Stack trace:
#0 /www/httpphp/htdocs/phpmyadmin/libraries/classes/Response.php(506): chdir(false)
#1 [internal function]: PhpMyAdmin\Response->response()
#2 {main}
thrown in /www/httpphp/htdocs/phpmyadmin/libraries/classes/Response.php on line 506
|
|
Can you give me as much information as possible on your setup so I can try to reproduce this issue ? |
|
Hi,
Try first to explain the reason why we trying to install phpMyAdmin.
The Zend company will end support for the Basic(free) version of the php zerver.
So we have to use now the opensource version from IBM-OSS.
The IBM I comes with a standard apache2.4 server which we have adapted to accept and serve php .
We also installed the MariaDB server and via the CLI we can access this.
However we like to have a tool to manage the MariaDB and we have some knowledge of phpMyAdmin.
So we are now trying to install it.
We got so far in unzipping the tool in a subfolder of the apache documents directory and giving all authority (777) to the user running the apache.
With the path you have proposed we where able to run the /setup and created the config.inc.php file in the root of phpMyAdmin:
config.inc.php
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* End of servers configuration */
$cfg['blowfish_secret'] = '[redacted]';
$cfg['DefaultLang'] = 'en';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
If you have any further questin or information needs, please let me know.
Best regards,
Danny
|
|
Hi Thank you for the explanation William |
|
Hi William,
Change to the config.inc.php in removing the proposed did not work.
We have the same error
Best regards,
Danny
|
|
Hi, |
|
Hi William,
It’s working now.
How will i be notified of the fix ?
Thanks for the help.
Best regards,
Danny
|
|
Hi, Kind regards, |
|
Ok. Thanks William for helping out.
|
Reverts: phpmyadmin@3b2c2ec Fixes: phpmyadmin#16184 Since phpmyadmin#6167 I do not see any good reason why to keep such code. Signed-off-by: William Desportes <williamdes@wdes.fr>
Reverts: phpmyadmin@3b2c2ec Fixes: phpmyadmin#16184 Since phpmyadmin#6167 I do not see any good reason why to keep such code. Signed-off-by: William Desportes <williamdes@wdes.fr>
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Hi Danny, Could you please try to apply ddb66ad and let us know if everything is still okay and working ? This fix will be part of the 5.0.3 version when it is released. |
|
Hi William,
Sorry, but saw you mail this morning and had to free up some time.
Have done a new install of the 5.0.2 version and applied the proposed changes.
Actions done:
1. Change to the security chmod (777) for all objects done
2. Proposed changes to the libraries/classes/Response.php file done
3. Proposed changes to the libraries/classes/Template.php file done
4. Run the setup and placed the config.inc.php in the root
5. Start the phpMyAdmin application;
Everything seems to work now with the proposed changes.
Have a question in using the ROOT_PATH constant. nl. where is this set?
Will this not give a problem when we try to use a virtual host in the apache to keep the pma install out of the normal server docs directory from the webserver?
However thanks for the proposed changes.
Best regards,
Danny
|
|
Hi, I am very happy to know that this solution works for you :)
It is set in quite some places, you can see more about that here: https://github.com/phpmyadmin/phpmyadmin/pull/14806/files
I do not think this will be an issue, I never had issues with this event on strange setups. William |
|
Thanks William,
As soon if have some further free time I will setup a new server with virtual hosts.
Thanks for helping out.
Best regards,
Danny Rodius
|
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
running setup
Screenshots
N/A
Server configuration
5.0.2
Client configuration
Additional context
user who is running the apache has full authority (777) to htdocs/phpmyadmin directory tree and all doc in it.
The text was updated successfully, but these errors were encountered: