phpbb admin config file - phpbb

Does anyone know where the config file for the admin is? For instance I want to change the database connection for the admin. I know where the main config file is but is there a separate admin config file with the db connection?

No it is all contained in one config file. Why would you want a separate database configuration for the admin that is not being used by the front end of the application?

Related

How to restore only the Delegated Ldap authentication config file?

We have an on-prem server which is also in our backup solution.
We were trying to create a new delegated LDAP permission for a different team by using the Add Directory option within User Directories in the Administration. We were able to create the directory but when we deleted it post the testing, the configuration made in the original directory were removed, specifically from the ldap.group.filter
Now we are trying to retrieve the old config file however I dont know the location where it is stored. Is it stored on the server or does it also reside in the DB? Is there a way to restore it without restoring the entire server?

Is it safe to put the file containing the database password in var/www?

I don't want to save the file containing the database password in the webroot of apache so I moved it to var/www (the server root) and include it from there.
Is this creating new security issues which weren't there before or can I leave it there?
The security issue that it creates, is that anyone who has access to the server, can get your DB credentials. Also, depending on the file and folder, there is a possibility that the file can be downloaded (really depends on the file and security settings on your web app). The industry standard solution is to encrypt the credentials in that file.

How to edit PostgreSQL configuration files from cPanel?

I am trying to connect to a remote PostgreSQL database via VBA. I read here about the Database server configuration to make this possible but i cannot find the configuration files in cPanel file manager(I am new to cPanel).
It says in the article that i can find the pgsql config file here /var/lib/pgsql/data but i do not see a var folder in the root folder.
You can NOT access your /var directory through cPanel file manager. cPanel file manager has limited directory access and due to that you can not access /var folder which is present outside the cPanel user home directory
You will have to access your server with root user through SSH and then try to access /var/lib/pgsql/ directory

Kloxo apache config template

I'm using Kloxo control panel. And if an account is created through kloxo, It creates a domain config includes virtual host of the created domains and another strings in path :
/home/apache/conf/domains/$domain.conf
My question is :
How can i configure this config template and modify it, I want this modifications to be applied in new create accounts accounts.
Like the ones which exists in cPanel control panel in /var/cpanel/templates/apache2/
Thanks
Kloxo does not use templates for Apache or Lighttpd. You must edit the PHP file which generates vhost configuration files and customize it to your needs.
/usr/local/lxlabs/kloxo/httpdocs/lib/domain/web/driver/web__apachelib.php
Just keep in mind the file will be overwritten everytime you update the panel.

How to set username and password in JBoss

Unfortunately their Wiki is down for maintenance and the web is not being helpful.
How do I add a new user to JBoss so I can login.
In Tomcat you change the tomcat-users.xml file. There seems to be a similarly located and titled file called login-config.xml in the config folder of jboss.
Is it something to do with this file or something else altogether.
It's in the users.properties file within jboss\server\default\conf\props
Like #Ankur said you need to configure the files in the jboss\server\default\conf\props
I think you want to configure your admin console users. So you have to add one line with your user name and password to the jmx-console-users.properties file (e.g: username=password => jbatista=portuguese).
It's important that you don't forget to add the role to the user created above/privileges. Like tomcat or any other Application server the users have one or more roles and the roles have permissions. In this case we want that the user jbatista has the JBossAdmin role so that he could deploy WARs, etc. Like the add user case, we have to add another entry line. But instead of jmx-console-users.properties we'll add the jbatista=JBossAdmin (username=role) line to the jmx-console-roles.properties file
You can add the user through CLI in Jboss AS 7 which in turn stored in mgmt-users.properties in JBOSS_HOME/domain/configuration & JBOSS_HOME/Standalone/configuration/ directory.
I have an ubuntu system but the step to add the user is same through cli :
Through terminal go to bin directory path of Jboss7
type ./add-user.sh
Then create the type of user which you want.
This link will help you and explain much in details :
http://www.mastertheboss.com/jboss-as-7/adding-users-with-jboss-as-7
Note : for windows you have to run the add-user.bat file instead of .sh