This file contains 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. |
This file contains 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 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 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 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 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 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 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 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 on |
This file contains 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 |
OlderNewer