Linux Apache Useful Command

Finding out what user Apache is running as? ps aux | egrep ‘(apache|httpd)’ ps -ef | egrep ‘(httpd|apache2|apache)’ | grep -v `whoami` | grep -v root | head -n1 | awk ‘{print $1}’ apachectl -S   Change folder permissions and…

[proxy_fcgi:error](70007)The timeout specified has expired

[proxy_fcgi:error](70007)The timeout specified has expired   Add the following lines into httpd.conf or apache2.conf (depending on your system) file: Timeout 600 ProxyTimeout 600 and restart apache sudo /etc/init.d/apache2 restart   OR For the latest versions of httpd and mod_proxy_fcgi you can simply add timeout= to the…

Laravel HasManyThrough And HasManyThrough Inverse Eloquent Relationship Tutorial Example

Laravel HasManyThrough Eloquent Relationship Tutorial Example   <?php namespace App; use Illuminate\Database\Eloquent\Model; class Country extends Model { public function posts() { return $this->hasManyThrough( Post::class, User::class, ‘country_id’, // Foreign key on users table… ‘user_id’, // Foreign key on posts table… ‘id’,…

আপগ্রেড Laravel 5.7 টু Laravel 7, সমস‌্যা ও সমাধান

আজকে একটা Laravel 5.7 প্রোজেক্টকে Laravel 7 এ আপগ্রেড করতে গিয়ে অদ্ভুত কিছু জিনিসের সম্মুখিন হলাম। ১. এক বারে আপগ্রেড এ Jump করতে গেলে ( Laravel 5.7 to Laravel 7) যেসব Error আসে তা বোঝা কঠিন। যত সার্চ দিছি, সবাই…

𝐓𝐨𝐩 10 𝐒𝐢𝐭𝐞𝐬 𝐟𝐨𝐫 𝐲𝐨𝐮𝐫 𝐜𝐚𝐫𝐞𝐞𝐫

𝐓𝐨𝐩 10 𝐒𝐢𝐭𝐞𝐬 𝐟𝐨𝐫 𝐲𝐨𝐮𝐫 𝐜𝐚𝐫𝐞𝐞𝐫 1. Linkedin 2. Indeed 3. Naukri 4. Instahyre 5. Monster 6. Careercloud 7. Dice 8. CareerBuilder 9. Jibberjobber 10. Glassdoor 10 𝗧𝗲𝗰𝗵 𝗦𝗸𝗶𝗹𝗹𝘀 𝗶𝗻 𝗱𝗲𝗺𝗮𝗻𝗱 1. Machine Learning 2. Mobile Development 3. SEO/SEM Marketing…

Git head reference is broken of a branch

How to fix Reference Head is broken of certain branch. 1.Try to stash save first 2. Try to switch to other branch like Master 3. Delete file from “.git\refs\heads\{branch name}” 4. Delete file from “.git\refs\remotes\origin\{branch name}” 5. if still not…

Test TCP connectivity with curl and Telnet

Test SSH port connection with curl and Telnet In this example, SSH connection works because: We get the “Connected” status We see the SSH version prompt: SSH-2.0-OpenSSH_7.4 Connection Sucess: greys@server:~ $ curl -v telnet://127.0.0.1:22 * About to connect() to 127.0.0.1…

Best practice when you write an API

Best practice when you write an API Some of the points to consider while writing an API: Should be Simple. Should be Intuitive. Example: /users/{id}/card-number instead of /users/{id}/pin Should always be consistent. Should avoid camel cases. The normal is to use lower case…

UPDATED-V2 : COMPILE AND BUILD APACHE2 AND PHP-FPM FROM SOURCE ON LINUX (PART 2)

Download or copy PHP. Current Directory ~ src https://www.php.net/downloads.php wget https://www.php.net/distributions/php-7.3.27.tar.gz sudo gunzip php-7.3.27.tar.gz or gzip -d php-7.3.27.tar.gz tar -xvf php-7.3.27.tar.gz   First Install PHP dependencies CURL Libjpeg Libpng FreeType2 Iconv GD (Optional) icu Tidy Libxml2 GMP Openldap LibDb Cmake…

Updated-V2 : Compile and Build Apache2 and PHP-Fpm From Source on Linux (Part 1)

Build Apache2.4.46 from souce manually. Install Apache2.4.46 and PHP-Fpm-7.3.27 offline manually Directory Structure opt src www Download or copy apache. Current Directory ~ src https://apr.apache.org/download.cgi wget https://www-eu.apache.org/dist//httpd/httpd-2.4.46.tar.gz gunzip httpd-2.4.46.tar.gz or gzip -d httpd-2.2.9.tar.gz tar -xvf httpd-2.4.46.tar   First Install Apache2…

JAVA Enviornment Variable

CLASSPATH – .;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib JAVA_HOME – C:\Program Files\Java\jdk1.8.0_251 JAVA_TOOL_OPTIONS – -Djdk.lang.Process.allowAmbiguousCommands=true JDK_HOME – %JAVA_HOME% JRE_HOME – %JAVA_HOME%\jre M2_HOME – E:\Websoft\JAVA\apache-maven-3.6.3 OPENSSL_CONF – E:\Websoft\JAVA\openssl-0.9.8k_X64\openssl.cnf PATH – -> C:\Program Files (x86)\Common Files\Oracle\Java\javapath -> %JAVA_HOME%\bin -> %ANDROID_HOME%\bin -> %M2_HOME%\bin -> C:\ProgramData\ComposerSetup\bin

Git exclude file if gitignore not works

# Exclude from the management of Git $ git update-index –skip-worktree path/to/file # Restore back $ git update-index –no-skip-worktree path/to/file # If ignore file not working use this code below before push $ git update-index –assume-unchanged — config.php # for…