|
1 | 1 | ###
|
2 |
| -### [Select Package PHP extension](https://pecl.php.net/package) |
| 2 | + |
| 3 | +### Apache Server httpd.conf |
| 4 | + |
| 5 | +```httpd.conf |
| 6 | +Listen 80 |
| 7 | +
|
| 8 | +<VirtualHost *:80> |
| 9 | + ServerName localhost |
| 10 | + |
| 11 | + ServerAlias localhost |
| 12 | + ServerAdmin admin@localhost |
| 13 | + |
| 14 | + DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/@localhost" |
| 15 | + <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/@localhost"> |
| 16 | + |
| 17 | + SSLOptions +StdEnvVars |
| 18 | + |
| 19 | + Options Indexes FollowSymLinks MultiViews |
| 20 | + AllowOverride All |
| 21 | +
|
| 22 | +</Directory> |
| 23 | +
|
| 24 | +ErrorDocument 500 /500.html |
| 25 | +ErrorDocument 404 /404.html |
| 26 | +ErrorDocument 403 /403.html |
| 27 | +
|
| 28 | +</VirtualHost> |
| 29 | +
|
| 30 | +
|
| 31 | +#Listen 8000 |
| 32 | +
|
| 33 | +#<VirtualHost *:8000> |
| 34 | +
|
| 35 | +# ServerName HomePremiumSampleTube.server.tv |
| 36 | +# ServerAlias HomePremiumSampleTube.server.tv |
| 37 | +# ServerAdmin admin@HomePremiumSampleTube.server.tv |
| 38 | +
|
| 39 | + |
| 40 | +# DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube/" |
| 41 | +# <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube/"> |
| 42 | + |
| 43 | +# SSLOptions +StdEnvVars |
| 44 | + |
| 45 | +# Options Indexes FollowSymLinks MultiViews |
| 46 | +# AllowOverride All |
| 47 | +
|
| 48 | +
|
| 49 | +#</Directory> |
| 50 | +
|
| 51 | +
|
| 52 | +#ErrorDocument 500 /500.html |
| 53 | +#ErrorDocument 404 /404.html |
| 54 | +#ErrorDocument 403 /403.html |
| 55 | +
|
| 56 | +
|
| 57 | +#</VirtualHost> |
| 58 | +
|
| 59 | +<VirtualHost *:80> |
| 60 | + |
| 61 | + ServerName HomePremiumSample.com |
| 62 | +
|
| 63 | + ServerAlias HomePremiumSample.com |
| 64 | + ServerAdmin admin@HomePremiumSample.com |
| 65 | + |
| 66 | + DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSample" |
| 67 | + <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSample"> |
| 68 | + |
| 69 | + SSLOptions +StdEnvVars |
| 70 | + |
| 71 | + Options Indexes FollowSymLinks MultiViews |
| 72 | + AllowOverride All |
| 73 | +
|
| 74 | +
|
| 75 | +</Directory> |
| 76 | +
|
| 77 | +
|
| 78 | +ErrorDocument 500 /500.html |
| 79 | +ErrorDocument 404 /404.html |
| 80 | +ErrorDocument 403 /403.html |
3 | 81 |
|
4 | 82 |
|
| 83 | +</VirtualHost> |
| 84 | +
|
| 85 | +
|
| 86 | +<VirtualHost *:80> |
| 87 | + ServerName HomePremiumSampleTube.server.tv |
| 88 | +
|
| 89 | + ServerAlias HomePremiumSampleTube.server.tv |
| 90 | + ServerAdmin admin@HomePremiumSampleTube.server.tv |
| 91 | +
|
| 92 | + |
| 93 | + DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube" |
| 94 | + <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/HomePremiumSampleTube"> |
| 95 | + |
| 96 | + SSLOptions +StdEnvVars |
| 97 | + |
| 98 | + Options Indexes FollowSymLinks MultiViews |
| 99 | + AllowOverride All |
| 100 | +
|
| 101 | +
|
| 102 | +</Directory> |
| 103 | +
|
| 104 | +
|
| 105 | +ErrorDocument 500 /500.html |
| 106 | +ErrorDocument 404 /404.html |
| 107 | +ErrorDocument 403 /403.html |
| 108 | +
|
| 109 | +
|
| 110 | +</VirtualHost> |
| 111 | +
|
| 112 | +
|
| 113 | +
|
| 114 | +<VirtualHost *:80> |
| 115 | + ServerName SampleMTDBNew.com |
| 116 | +
|
| 117 | + ServerAlias SampleMTDBNew.com |
| 118 | + ServerAdmin admin@localhost |
| 119 | +
|
| 120 | + |
| 121 | + DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb" |
| 122 | + <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/mtdb"> |
| 123 | + |
| 124 | + SSLOptions +StdEnvVars |
| 125 | + |
| 126 | + Options Indexes FollowSymLinks MultiViews |
| 127 | + AllowOverride All |
| 128 | +
|
| 129 | +
|
| 130 | +</Directory> |
| 131 | +
|
| 132 | +
|
| 133 | +
|
| 134 | +<IfModule php5_module> |
| 135 | +LoadFile "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5ts.dll" |
| 136 | +LoadModule php5_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5apache2_4.dll" |
| 137 | +PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/" |
| 138 | +
|
| 139 | +php_value session.cookie_httponly true |
| 140 | +php_flag short_open_tag on |
| 141 | +php_flag register_globals on |
| 142 | +
|
| 143 | +</IfModule> |
5 | 144 |
|
| 145 | +</VirtualHost> |
| 146 | +
|
| 147 | +
|
| 148 | +
|
| 149 | +<VirtualHost *:80> |
| 150 | + ServerAdmin root@localhost |
| 151 | + ServerAlias SamplePhpMyAdmin.com |
| 152 | +
|
| 153 | + ServerName SamplePhpMyAdmin.com |
| 154 | + DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin" |
| 155 | +
|
| 156 | + |
| 157 | + #UseCanonicalName Off |
| 158 | + |
| 159 | + # SSLCertificateFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/crt/SamplePhpMyAdmin.com.crt" |
| 160 | + # SSLCertificateKeyFile "C:/Users/Credit/Documents/#Server(htdocs)(www)/SSL/key/SamplePhpMyAdmin.com.key" |
| 161 | + |
| 162 | + <Directory "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin"> |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + SSLOptions +StdEnvVars |
| 168 | + |
| 169 | + Options Indexes FollowSymLinks MultiViews |
| 170 | + AllowOverride All |
| 171 | + |
| 172 | + #Order Deny,Allow |
| 173 | + #Deny from all |
| 174 | + #Allow from 127.0.0.1 localhost ::1 |
| 175 | + |
| 176 | +</Directory> |
| 177 | +</VirtualHost> |
| 178 | +
|
| 179 | +
|
| 180 | +
|
| 181 | +#LoadFile "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5ts.dll" |
| 182 | +
|
| 183 | +#LoadModule php5_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5apache2_4.dll" |
| 184 | +
|
| 185 | +#<IfModule php5_module> |
| 186 | +# PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/" |
| 187 | +# <Location> |
| 188 | +# AddType text/html .php |
| 189 | +# AddHandler application/x-httpd-php .php |
| 190 | +# </Location> |
| 191 | +#</IfModule> |
| 192 | +
|
| 193 | +
|
| 194 | +
|
| 195 | +#<IfModule php5_module> |
| 196 | +#LoadModule php5_module "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/php5apache2_4.dll" |
| 197 | +#ScriptAlias /php/"E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/" |
| 198 | +#AddType application/x-httpd-php .php .php5 |
| 199 | +#Action application/x-httpd-php "/PHP/php-cgi.exe" |
| 200 | +#SetEnv PHPRC "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/" |
| 201 | +#PHPIniDir "E:/ComposerDirectory/ComposerDirectory/PHP/(64-bit) 5.6.0/" |
| 202 | +#</IfModule> |
| 203 | +
|
| 204 | +
|
| 205 | +
|
| 206 | +#<VirtualHost *:8080> |
| 207 | + #ServerAdmin admin@localhost |
| 208 | + #ServerName SamplePhpMyAdmin.com |
| 209 | + #ServerAlias SamplePhpMyAdmin.com |
| 210 | + #DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin" |
| 211 | + |
| 212 | + #SSLCertificateFile "C:/wamp/bin/apache/apache2.4.9/conf/key/certificate.crt" |
| 213 | + #SSLCertificateKeyFile "C:/wamp/bin/apache/apache2.4.9/conf/key/private.key" |
| 214 | +#</VirtualHost> |
| 215 | +
|
| 216 | +
|
| 217 | +#<VirtualHost *:8080> |
| 218 | + #ServerAdmin admin@localhost |
| 219 | + #ServerName SamplePhpMyAdmin.com |
| 220 | + #ServerAlias SamplePhpMyAdmin.com |
| 221 | + #DocumentRoot "C:/Users/Credit/Documents/#Server(htdocs)(www)/phpMyAdmin" |
| 222 | +
|
| 223 | + #UseCanonicalName Off |
| 224 | + |
| 225 | + #ErrorLog "C:/Apache24/logs/ssl_error.log" |
| 226 | + #TransferLog "C:/Apache24/logs/ssl_access.log" |
| 227 | +
|
| 228 | +
|
| 229 | + #SSLCertificateFile "C:/Apache24/conf/key/certificate.crt" |
| 230 | + #SSLCertificateKeyFile "C:/Apache24/conf/key/private.key" |
| 231 | + |
| 232 | + |
| 233 | +#<Directory "/phpMyAdmin"> |
| 234 | +
|
| 235 | +#Options -Indexes FollowSymLinks ExecCGI |
| 236 | +#AllowOverride None |
| 237 | +#Order allow,deny |
| 238 | +
|
| 239 | +#Allow from all |
| 240 | +
|
| 241 | +#</Directory> |
| 242 | +#</VirtualHost> |
| 243 | +
|
| 244 | +
|
| 245 | +#openssl genrsa -out SamplePhpMyAdmin.com.key 2048 |
| 246 | +#openssl req -new -sha256 -key SamplePhpMyAdmin.com.key -out SamplePhpMyAdmin.com.csr |
| 247 | +#openssl req -text -in SamplePhpMyAdmin.com.csr -noout |
| 248 | +
|
| 249 | +
|
| 250 | +#openssl.exe genrsa 2048 > SamplePhpMyAdmin.com.key |
| 251 | +
|
| 252 | +# Default openssl.cnf |
| 253 | +#openssl.exe req -new -key SamplePhpMyAdmin.com.key > SamplePhpMyAdmin.com.csr |
| 254 | +
|
| 255 | +#openssl rsa -in SamplePhpMyAdmin.com.pem -out SamplePhpMyAdmin.com.key |
| 256 | +#openssl x509 -in SamplePhpMyAdmin.com.csr -out SamplePhpMyAdmin.com.crt -req -signkey SamplePhpMyAdmin.com.key -days 365 |
| 257 | +
|
| 258 | +
|
| 259 | +
|
| 260 | +################################################################################ |
| 261 | +
|
| 262 | +#openssl.cnf |
| 263 | +
|
| 264 | +################################################################################ |
| 265 | +
|
| 266 | +#openssl.exe req -new -key SamplePhpMyAdmin.com.key -config "openssl.cnf" -out SamplePhpMyAdmin.com.csr |
| 267 | +
|
| 268 | +################################################################################ |
| 269 | +
|
| 270 | +#openssl req -config "C:\openssl.cnf" -new -out SamplePhpMyAdmin.com.csr -keyout SamplePhpMyAdmin.com.pem |
| 271 | +
|
| 272 | +################################################################################ |
| 273 | +
|
| 274 | +
|
| 275 | +``` |
| 276 | + |
| 277 | +*** |
| 278 | +### [Select Package PHP extension](https://pecl.php.net/package) |
| 279 | +*** |
6 | 280 | ### **``unblock example``** Apache Server Port:[80] Windows
|
7 | 281 |
|
8 | 282 |
|
|
0 commit comments