This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ setsebool -P httpd_can_network_connect 1 | |
Source: https://stackoverflow.com/questions/23948527/13-permission-denied-while-connecting-to-upstreamnginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL | |
sudo yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm | |
sudo yum install mysql-community-server | |
# MySQL Root Password | |
sudo grep "temporary password" /var/log/mysqld.log | |
# Nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Swap Yaratmak | |
df -h | |
sudo dd if=/dev/zero of=/swapfile bs=1k count=2048k | |
sudo mkswap /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo 'echo "/swapfile none swap defaults 0 0" >> /etc/fstab' | sudo sh | |
free -m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function exAction(Request $request) | |
{ | |
clearstatcache(); | |
$em = $this->getDoctrine()->getManager(); | |
$responseData = []; | |
$files = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was able to resolve the issue by following these steps. | |
Added usrlocal.conf file with following line into /etc/ld.so.conf.d | |
/usr/local/lib | |
Then ran ldconfig -v as root upon save | |
Thank you very much for the help. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u usename -p | |
mysql > SET PASSWORD = PASSWORD('your_new_password'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$builder | |
->add('cargoLRDTimezone', ChoiceType::class, [ | |
'label' => "Cargo LRD", | |
'placeholder' => "Seçiniz..", | |
'choices' => [ | |
'CST' => "CST (Central Standard Time)", | |
'CET' => "CET (Central European Time)", | |
'CEST' => "CEST (Central European Summer Time)", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace System\ReportBundle\Service; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
class TYHWebService | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$response = new Response(); | |
$response->headers->set('Cache-Control', 'private'); | |
$response->headers->set('Content-type', mime_content_type($image)); | |
$response->headers->set('Content-length', filesize($image)); | |
$response->headers->set('Content-Disposition', 'attachment; filename="' . basename($image) . '";'); | |
$response->sendHeaders(); | |
$response->setContent(readfile($image)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.htaccess | |
----------------- | |
AuthType Basic | |
AuthName "Mendil Sepeti" | |
AuthUserFile /home/mendil/public_html/.htpasswd | |
Require valid-user mendilsepeti | |
.htpasswd | |
----------------- | |
mendilsepeti:$apr1$2iqpc0as$8biTnaAMhrUK0yBTmvleb. |
NewerOlder