Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have VPS using CentOs 7 with CyberPanel and when I try to use composer install I get this error
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435456 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435456 bytes) in phar:///usr/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.
Screenshots
Any idea?
Find the correct php.ini for your PHP CLI SAPI with the following command:
php -i | grep 'ini'
Add memory_limit = -1 to this file with a text editor.
You can aswell increase the memory limit for one command with:
COMPOSER_MEMORY_LIMIT=-1 composer update
... or ...
php -d memory_limit=-1 /user/bin/composer update
Solved
I used this command and my composer start to run
which composer
To find my composer path, and then
php -d memory_limit=-1 /user/bin/composer update
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Task:
To install MongoDB after downloading
To Note:
I can't install it from terminal for some reasons. And I am using Ubuntu 14.04
I just don't know what to do after downloading. Coz there are no executable files or something.
This is preety good article for installation of mongodb step by step.
How-to-install-mongodb-on-ubuntu
Click here for mongoDB tutorials
To start your mongodb server : mongod
You may find error that database directory is not created. For that,
Create your database directory(default path) : mkdir -p /data/db and then restart your server again.If you did not find any error then skip this part.You can also change your database directory path. Here is command for that mongod --dbpath /your/path
Open new terminal and execute : mongo
If you have any query feel free to comment.Good luck.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I am having a problem while using the below command in the windows operating system and I have installed the oracle 10g server on my local machine which I am able to connect using client IDE
When I try to use the below command to import a dump file in my local DB
"imp system/ file=tms.dump log=test.log" in command prompt
where the binary of imp and the dump file is located in
"C:\oraclexe\app\oracle\product\10.2.0\server\bin"
I am getting the below error
error: unable to write logfile
I do not know how to create the log file
Thanks
The most likely reason for the error is that you are using an account which doesn't have write privileges on bin. You haven't specified a path, so like most utilities, imp will write its log files to the current directory.
bin is traditionally the sub-directory for holding executables. It is a very bad idea to use it for storing application data such as dump files.
Instead you should be working from a different location, ideally some sub-directory which you use solely for storing dump files. Either way, it must be a directory for which your user has write privileges.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to connect Oracle 10g database server from my client PC using toad 10 Commercial. I have Oracle 10g installed in my PC. When I try to connect, it gives error Can't initialize OCI.Error -1 .
So far I am able to perform tnsping to the oracle server. I have all the settings working in my tnsnames.ora.
Any suggestions are highly appreciated.
Thanks.
Found the solution myself. The problem was with windows 7 permission issue.
I opened Toad with run as administrator , privilege and the problem get solved.
Taken from https://support.quest.com/SolutionDetail.aspx?id=SOL61710
RESOLUTION 1:
Right-click the Toad for Oracle shortcut and select "Run as Administrator" to avoid the error.
RESOLUTION 2:
Right-click the Toad for Oracle shortcut | Properties | Compatibility Tab | check mark "Run this program in compatibility mode for" | choose "Windows XP Service Pack 3" from the drop-down list.
RESOLUTION 3:
Right-click My Computer | Properties | Advanced tab | Environment Variables | under ‘System Variables’ (lower part) | check if you have an entry for ORACLE_HOME. If yes, rename it to ORACLE_HOME_OLD, and then re-test the issue.
RESOLUTION 4:
Upgrade your Oracle client to a version that is 10.2.0.4 or later.
I have another resolution. I had this issue ater setting NLS_LANG environment variable to LATIN AMERICAN SPANISH.
When rebooting windows7, TOAD would not start showing error Can't initialize OCI. Error -1
I had to delete NLS_LANG / NLS_LANGUAGE environment variable.
Now i have to set NLS_LANGUAGE executing ALTER SESSION while logged in TOAD.
No OCI error anymore.
Hope it halps.
Kindly follow up the below steps to solve the (Can't initialize OCI. Error -1)title issue.
go to enviroment variable
remove all variable path in user variable.
Also check the permission.
Thanks
Anandaraj
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I tried all the way to change the setting for ulimit parameters for apache running on CentOS. Here is the setting for my /etc/security/limits.conf
apache hard fszie 1024
apache soft fszie 1024
apache hard nproc 512
apache soft nproc 512
apache hard cpu 14
apache soft cpu 14
apache hard nofile 1024
apache soft nofile 1024
I rebooted my system as well but when I'm trying to check ulimit parameters for apache using a PHP script, they are not setting up. Is there something which I'm missing, do I need to create some other entry somewhere or some other parameter? Kindly suggest
Finally I got the answer, above setting will help if you are using login for the user but there is no login for apache so you will have to put ulimit -H -n filno etc commands in your /etc/init.d/httpd script and restart the server. Hope this will help others.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I get wget to do this:
Download a file from a location say x, only if the local copy of the file has an older time stamp than that of the file's time stamp on x. That means, it should download a file from a given location, only if there is a newer version of the file.
In case there is a newer version of the file, wget should overwrite the file.
Is it possible to do this?
Sounds like you're looking for the TimeStamping functionality of wget: http://www.gnu.org/software/wget/manual/wget.html#Time_002dStamping
Say you would like to download a file
so that it keeps its date of
modification.
wget -S http://www.gnu.ai.mit.edu/
A simple ls -l shows that the time stamp on the local file equals the state of the
Last-Modified header, as returned by
the server. As you can see, the
time-stamping info is preserved
locally, even without ‘-N’ (at least
for http).
Several days later, you would like
Wget to check if the remote file has
changed, and download it if it has.
wget -N http://www.gnu.ai.mit.edu/