I want to change database port from 5432 to 5433, for OpenERP Server. When I try to edit openerp-server.conf file or config.py file, they cannot be saved, error said the file is opened by another program. I stopped openerp-server service but still cannot save the file. I am using OpenERP v6.
My question is am I looking to the right files to change database listening port? If yes how I can save the edited files? Thanks in advance for your help.
The correct file for openerp-server setting is openerp-server.conf.
I have copied file to desktop then managed to delete the file at original location. Changed the desktop version of file and then copied back. It worked.
Related
Apache is running but I lost my httpd.config file, because I did something a little careless.
Is there any way to dump the settings of a running Apache instance?
If you do not have backup of httpd.conf file then you can recover delete file using testdisk utility. Please refer to below link.
Recover deleted file in Linux
using cpanel server, setting a simple "lynx http://www.domain.com/script.php" command gives following error and I am unable to understand it.
Lynx file "/etc/lynx.lss" is not available.
the problem is the SHELL.
You can solve this problem via two ways:
1] I simply changed the sentence:
SHELL="/usr/local/cpanel/bin/jailshell"
in /var/spool/cron/account
to SHELL="/bin/bash"
2] You can copy file /etc/lynx.lss
to directory: /home/virtfs/account/etc
Both worked for me !
Wilhelm
You can create an empty (or not) style sheet file in a directory where you have write access, then explicitly point to that file on the lynx command-line:
lynx -lss=/path/to/my/lynx.lss ...
I enabled shell access for the account and it started working. The above answer seems to assume you have access to the entire server and can modify those files, if so then just enable shell access and you are set, but if you are on a shared hosting account basic cpanel and ftp access you may not be able to do it. Ask you hosting company if you can have shell access. Then decide what you can do depending on the answer they give you.
you can solve this issue by follow below process :-
Open this file
root#server [~]# vi /var/cpanel/exim.conf.deps
and append below entries and save it.
/etc/lynx.lss
Whenever I create an .htaccess file in a directory it disappears. I am running a VPS at Digital Ocean (I have full control over the server). So I can't see why my .htaccess files are automatically deleted upon creation. I even tried to make the file on my computer and just transfer it to the directory via FTP but as soon as it transfers, it disappears. I checked the log of the FTP transfer and the file transferred successfully. I can't figure this out.
Its because system files are hidden on apache servers... Either select the option to see hidden files if you're using a GUI or type the command "ls -a" if you're on terminal and you should see the files. Any file that starts with a dot is going to be hidden by default. Your .htaccess files fall within the same category.
If you want to be able to view the .htaccess file on the server, make sure you are logged in as the root user, or a user with root level permissions.
Then, navigate yourself to "/home/username/public_html(in my case)" And if you have a .htaccess file uploaded, it should be displayed there.
Today i found extraction of zip file seems disabled in cpanel File Manager.Yesterday it was working fine and i had extracted one file .I had uploaded a big file of size 472MB.but then uploading got cancelled and From then I am facing the problem.
What is the reason behind the strange behaviour of cpanel file manager.?
And what is the solution to this problem..?
I really want the extract button enabled because Upload on server using Filezilla is very time consuming..
By default the icon is grayed out if no file is selected, make sure that's not the case.
If it's selected and it's like that then you might consider checking with your hosting provider, if you're the administrator of the server then go ahead and run
/scripts/upcp
You just need to select the file which need to be extracted. Extract button will automatically appear if you select any zip file from your directory.
My application was working fine, I dont know what happened suddenly image upload function stoped functioning.It gives this error-
URL file-access is disabled in the server configuration in D:\Hosting\6448289\html\upload.php on line 112
for any file access allow_url_fopen must be ON but this is OFF now.
if you open this link - www.shizin.com/phpinfo.php
you can see that allow_url_fopen is OFF. My hosting compny is GoDaddy.com.
How and Where I can access php.ini file of my project so that I can set it ON or is there any php commands that can be run to set this permission ON.Please suggest.
You will probably have a custom php.ini or php5.ini file somewhere in your account. Launch your FTP client and find it.
Found via Google:
http://community.godaddy.com/godaddy/tips-for-protecting-your-php-based-website/
http://community.godaddy.com/help/article/5647