UNDERCODE COMMUNITY
2.68K subscribers
1.23K photos
31 videos
2.65K files
80.3K links
πŸ¦‘ Undercode Cyber World!
@UndercodeCommunity


1️⃣ World first platform which Collect & Analyzes every New hacking method.
+ AI Pratice
@Undercode_Testing

2️⃣ Cyber & Tech NEWS:
@Undercode_News

3️⃣ CVE @Daily_CVE

✨ Web & Services:
β†’ Undercode.help
Download Telegram
▁ β–‚ β–„ ο½•π•Ÿπ”»β’Ίπ«Δ†π”¬π““β“” β–„ β–‚ ▁

πŸ¦‘ Install PHP as Apache DSOPHP full by undercode
instagram.com/UnderCodeTestingCompany

πŸ¦‘ π•ƒπ”Όπ•‹π•Š π•Šπ•‹π”Έβ„π•‹ :

1) Install PHP as Apache DSOPHP is often used with the Apache Web server for Linux / Unix platforms. When we install PHP in the Apache environment, you have three installation modes to choose from: static modules, dynamic modules (DSO), and CGI.

2) I suggest you install PHP as Apached's DSO. This installation mode is very easy to maintain and upgrade. For example, suppose you originally installed only database support for PHP. But after a few days you decided to add encryption to PHP. Quite simply, you just need to type the make clean command, add new configuration options, and then execute the make and make install commands.

3) In this way, the new PHP module will be installed in the appropriate location on Apache, you just restart Apache and everything is OK, of course, the entire process does not need to recompile Apache at all.

4) The simple steps to install a new version of Apache and PHP as an

πŸ¦‘ Apache DSO are as follows:

1) Download the latest version of the source code for the Apache server software from the Apache Software Foundation site.

2) Place the code files in a suitable directory such as / usr / local / or / opt /.

3) Use the Gunzip command to decompress the code file, then you can get the corresponding * .tar file.

4) Type the following unpacking command to place the above tar file in a directory of the form apache_ [version]:

tar -xvf apache_ [version] .tar

5) Go to the / usr / local / apache_ [version] directory (or The directory you specified in the above step).

6) Type the following configuration command and replace the [path] parameter with the path you set (such as / usr / local / apache [version], etc., be careful not to follow the slash!), And you also need to enable the mod_so parameter to allow Apache uses DSO.

./configure --prefix = [path] --enable-module = so

7) Return to the command prompt and type make and wait for the command execution to complete and return to the command prompt again.

8) Type make install.

At this point, the compiler can create the final directory and return to the system command prompt.

πŸ¦‘ Next install PHP:

1)Visit the download area of ​​the PHP homepage and select the link for the latest version of the source code.

2) Place the downloaded file in an appropriate directory such as / usr / local / or / opt /.

3) Use the Gunzip command to decompress the code file, then you can get the corresponding * .tar file.

4)Type the following unpacking command to put the above tar file into a directory of the form php- [version]:

tar -xvf php- [version]

5) Go to the / usr / local / php- [version] directory (Or the directory you specified).

Now you can compile PHP DSO. In fact, only one necessary configuration option is needed here-with-apxs (a file in the Apache bin directory)-however, for more comprehensive system configuration, we also added a MySQL database here support.

./configure --with-mysql = / [path to mysql] --with-apxs = / [path to apxs]

6) Return to the command prompt and type make and wait until the command is complete and return to the command prompt. .

7) Type the make install command.

πŸ¦‘ At this time, the compiler will create the final DSO and place it in the Apache module directory. At the same time, it will modify the Apache httpd.conf configuration file for you. After that, the system returns to the command prompt and waits for you to enter new instructions. Then, you can open the Apache httpd.conf configuration file to make some corrections:

1) Find the line with ServerAdmin and add your own email address, as follows:

ServerAdmin you@yourdomain.com

2) Find the beginning with ServerName Line, change the following parameters to actual values, such as:

ServerName localhost

3) Find the following paragraph:

# And for PHP 4.x, use:
#
#AddType application / x-httpd-php .php
#AddType application / x- httpd-php-source.phps