Showing posts with label PHP. Show all posts

Woo Automatic Discount Coupon Scheduler

Woo Automatic Discount Coupon Scheduler - WooCommerce WordPress Plugin
The Woo Automatic Discount Coupon Scheduler plugin for your WooCommerce site allows you to automatically create coupons for your registered customers based on their spending and send them via email. This way, you can easily increase customer loyalty and sales. Reward Your Customers and Boost Sales with Woo Automatic Discount Coupon Scheduler.

  • Easy Setup and Use: The plugin is very easy to set up and use. With just a few clicks, you can activate the plugin and define the rules for coupon creation.
  • Flexible Coupon Creation: You can define different discount rates or fixed amounts for the total spending amounts of your customers in specific time periods (weekly or monthly).
  • Multiple Spending Limits: You can define 3 different spending limits and calculate the discount based on the spending amount that meets the highest amount condition.
  • Automatic Email Sending: The generated coupons are automatically sent to your customers via email.

Benefits of the Plugin:

  • Increases Customer Loyalty: Rewarding your customers for their spending encourages them to shop again and increases customer loyalty.
  • Increases Sales: Attractive discount coupons encourage your customers to shop more, increasing your sales.
  • Saves Time: The plugin automates the coupon creation and sending process, saving you time.

How to generate automatic discount coupons?

How to create automatic discount coupons using a WordPress plugin?
1
It's easy to reward your customers and increase your sales with the Woo Automatic Discount Coupon Scheduler plugin. Install the plugin on your WooCommerce store now and start using it!
1

Recurring Coupon Generation Settings

  • Automatic Coupon Generation: If the total payment is equal to or greater than the specified amount, the discount coupon will be applied. Leave blank to disable. Store owners can define multiple spending conditions to trigger automatic generation of discount coupons. This flexibility allows them to incentivize customers based on their spending behavior.
    • — Enabled / Disabled: Automatically generate coupons for registered customers is turned on / off.

  • Calculation time period: By setting the calculation time period to weekly or monthly, store owners can ensure that discounts are regularly offered, enticing customers to make purchases within these time frames.
    • — Weekly: Coupons are calculated and generated on a weekly basis, from Monday 00:00:00 to Sunday 23:59:59.
    • — Monthly: Coupons are calculated and generated on a monthly basis.

  • Next calculate date: The next scheduled date and time for coupon calculation is displayed here.
    • — Next check: The date and time to check that the next scheduled date has been reached is displayed here.

  • Spending Condition:
    • — If the total payment is equal to or greater than the specified amount, the discount coupon will be applied. Leave blank to disable.

  • Discount Coupon:
    • — Percentage: The discount for condition will be in percentage.
    • — Fixed Amount: The discount for condition will be a fixed amount.

Automatic Recurring Coupon Generation Settings

Example of Use:

The plugin allows store owners to define up to three spending conditions, each offering different discount levels. This provides a versatile way to reward customers based on their purchase amounts. Let's say you want to create coupons for your customers' spending on a weekly basis. You can use the plugin to define a rule as follows:

  • Calculation Period:Weekly, Monday 00:00:00 - Sunday 23:59:59
  • Spending Condition 1:100 USD and above
  • Discount Coupon 1:5% discount
  • Spending Condition 2:300 USD and above
  • Discount Coupon 2:10% discount
  • Spending Condition 3:500 USD and above
  • Discount Coupon 3:50 USD fixed discount

According to this rule, customers who spend 100 USD and above in a week will receive a 5% discount coupon, those who spend 300 USD and above will receive a 10% discount coupon, and those who spend 500 USD and above will receive a 50 USD fixed discount coupon. These coupons will be automatically generated and sent to customers via email.

Discount coupons are valid until the next calculation date. Example of recurring produced coupon notification email:

recurring produced discount coupon notification email

For more information, you can request to try the demo presentation of the plugin.

Share:

One click disable all plugins


Info

Disable all plugins with one click. With this plugin you can add a link to disable all plugins with one click. To deactivate all plugins in the normal way, you visit the "Plugins" page in the administration panel. You must select all plugins with the checkbox at the beginning of the table. Then select the "Deactive" option under "Bulk actions". Press the "Apply" button and all plugins are deactivated.

Installation

1. Add the plugin's folder in the WordPress' plugin directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.

Usage

Go to left menu: Tolls -> Disable all plugins
Or
Go to Plugins page: 1 click disable all -> Deactivate all

Changelog

= 1.0.0 =
* Initial version released

Share:

CSS chat button - free WhatsApp WP Plugin


CSS chat button - WhatsApp WordPress Plugin
Compact, Simple, Speedy chat button. It allows visitors to contact you via messaging app. Chat with your website visitors through online chat apps. Place a floating button on your site and let people contact you. Lightweight and fast loading for best SEO.
Add the clickable WhatsApp button for chat to your site.

Compact: Less than 5 KB file size, only CSS and HTML
Simple: Very basic settings
Speedy: No Sql query for fast loading

CSS chat button Pro

Coming soon.

CSS chat button Download

CSS chat button - WordPress Plugin

Usage

Add the plugin's folder in the WordPress' plugin directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the 'Plugins' screen in WordPress.

Go to Settings -> CSS chat button
Input your contact info
Save settings

Settings page of CSS chat button Settings page of CSS chat button
WhatsApp chat button at bottom right on Twenty Twenty-Three Version: 1.1 WhatsApp chat button floating Twenty Twenty-Three theme
Make it compatible with your theme. Adjust the position and size of the button as you wish.
WhatsApp chat button at bottom left on Woodmart theme version 7.1.4 WhatsApp chat button floating Woodmart theme
WhatsApp chat button at bottom right on Flatsome theme version 3.15.6 WhatsApp chat button floating Flatsome theme
== Changelog ==

= Version 1.0.0 =
* Initial version released

WhatsApp Contact Button, WhatsApp Business chat button
Share:

Automatic Gallery And Featured Image Sync - WP Plugin

Automatically sync posts WooCommerce Product and media images as featured image and gallery
Automatically sync posts (or WooCommerce Product) and media images as featured image and gallery.

Automatically sync posts and media images as featured image and gallery.

Images with names are given as `ID`:

*   Automatic syncing as featured image to posts 
*   Automatic syncing as featured image to pages 
*   Automatic syncing as featured image to WooCommerce products 
*   Automatic syncing as gallery images to WooCommerce products 

Images named as product `SKU` (Pro):

*   Automatic syncing as featured image to WooCommerce products 
*   Automatic syncing as gallery images to WooCommerce products 

Please comment 💬, rate ⭐ and share 👍
Automatic Gallery And Featured Image Sync - WordPress Plugin

Creating an online store with WordPress has never been easier, thanks to the powerful WooCommerce plugin. Once you've set up your store, the next step is to add products for sale. Each product requires essential information like name, price, and description to entice potential customers. Additionally, incorporating images is crucial for showcasing your products effectively. WordPress allows you to upload images to the media library and seamlessly integrate them into your product listings, including setting featured images and creating galleries.

However, managing a large inventory of products can be time-consuming, especially when individually assigning images to each one. To streamline this process, a convenient plugin comes to the rescue. This plugin simplifies the task of collectively assigning featured and gallery images to multiple products, saving you valuable time and effort. By utilizing this tool, you can effortlessly associate products with images, ensuring your online store looks visually appealing and professional without the hassle of manual image assignments.

The “Automatic Gallery And Featured Image Sync” plugin allows for the automatic synchronization of posts and media images to be set as featured images and galleries. Images with specific names are assigned as IDs, enabling seamless syncing of featured images to posts, pages, and WooCommerce products. Additionally, images named after product SKUs can be automatically synced as featured images and gallery images for WooCommerce products.

Name Your Images

  • Use the following file naming format: [ID]-[Sort].[file extension]
  • Make sure the file names match the post or product IDs.
  • Make sure images do not contain embedded EXIF metadata.
  • Set the “Sort” value of the file you want to be the featured image to “1”. For example, if you have a post with ID 123 and want to set an image as the featured image, name the file 123-1.jpg.
  • Upload your images to the WordPress media library.


Example:

  • Post ID: 123
  • The image named 123-1.jpg will be automatically set as the featured image for the product with ID 123.
  • The image named 123-2.jpg will be included in the gallery for the product with ID 123.
  • The image named 123-3.jpg will be included in the gallery for the product with ID 123.


Assign Images to Posts, Pages, or Products

Warning: This plugin adds new rows to the database for matching. Backup your database before matching.

  • Go to the "Tools" > "Image Sync" section in your WordPress dashboard.
  • Optionally, filter the list for posts, pages and products.
  • Check the checkboxes of the items to be synchronized.
  • Select and apply the "Sync with Id" action.
  • For posts, pages and WooCommerce products,the plugin will automatically detect and set it as the featured image if its name matches the post or page ID.
  • For WooCommerce products, the plugin will automatically sync them as featured images and gallery images.

You can select and deselect all items with the checkbox in the header of the table. The “Match with ID” and “Match with SKU” columns contain information about the images in the media library that are matched with the item. The first icon indicates that the featured image matches. The second icon represents the image gallery. Next to it is the number of media matched for the image gallery. Next to this is the number of matching media for the image gallery. Hover the mouse over the icons and you will see the meta names of the matching medias.

Automatic Gallery And Featured Image Sync Tool Screenshot

Automatic Gallery And Featured Image Sync PRO version

The free version of the "Automatic Gallery And Featured Image Sync" plugin uses the ID of the post or product as the matching criterion. This means that the plugin will match images to posts or products based on their ID number.

The PRO version of the plugin adds the ability to match images to posts or products based on their SKU value. This is a more flexible matching criterion, as it allows you to match images to posts or products even if their ID numbers are different.

In addition, the PRO version of the plugin provides a number of additional settings that allow you to customize the way that the plugin works.

Benefits of using the PRO version:

  • More flexible matching criterion (SKU)
  • Additional settings to customize the plugin's behavior

If you need to match images to posts or products based on their SKU value, or if you want to customize the way that the plugin works, then the PRO version of the plugin is a good option.

PRO version settings:

Go to the "Settings" > "Sync images" section in your WordPress dashboard.

Automatic Gallery And Featured Image Sync Pro Settings

Sequence Separator

The "Sequence separator" setting plugin allows you to specify a character or string to separate the sequence number from the rest of the file name.By default, the plugin uses a hyphen (-) as the sequence separator. This means that file names must follow the pattern:

[Criterion]-[Sequence].[File extension]

Example:

If you have a post with ID 123 and want to set an image as the featured image, you would name the file 123-1.jpg.

If you want to use an underscore (_) as the sequence separator instead, you would set the "Sequence separator" setting to _. This would allow you to use file names like the following:

123_1.jpg
123_2.jpg
123_3.jpg

Note: The sequence separator must be a character or string that is not used in the criterion part of the file name.

Items per page

The "Items per page" setting allows you to specify the number of items that will be displayed on each page of Sync page.

Note: It is important to note that increasing the number of items per page will also increase the number of database queries. This can slow down the page loading if you have a large number of items. Therefore, it is important to choose a number of items per page that is appropriate for your website and server. You may want to use a lower number of items per page to avoid slowing down the sync page.

Existing image gallery

The "Existing image gallery" setting allows you to specify how the plugin should handle existing image galleries. You have two options for this setting:

  • Keep and do not change product gallery images: This option will keep your existing image galleries unchanged. The plugin will not add or remove any images from your existing galleries.
  • Remove if exist and set gallery items with new matches: This option will remove your existing image galleries and replace them with new galleries that are generated by the plugin. If there are no new matches for an existing gallery, the gallery will be lost.

Example:

Let's say you have a product with the stock code "abc". You have manually added two images to the product gallery: "img-x.png" and "img-y.png".

You then upload two new images to the media library: "abc-1.png" and "abc-2.png". These new images match the product's stock code.

When you use the "Automatic Gallery And Featured Image Sync" plugin to create a new gallery for this product, if you choose the second option, the plugin will remove the existing gallery and create a new gallery with the following images:

  • abc-1.png
  • abc-2.png

The existing images ("img-x.png" and "img-y.png") will not be used in the new gallery.

Warning:

It is important to note that if you choose the second option and there are no new matches for an existing gallery, the gallery will be lost. This is because the plugin will remove the existing gallery and will not create a new gallery. Therefore, it is important to choose the "Existing image gallery" setting carefully. If you are not sure which option to choose, it is best to select the "Keep and do not change product gallery images" option.

Forcing image match: SKU

The "Forcing image match" setting allows you to force the plugin to match images to products .

When you enable "SKU" setting, the plugin will ignore the "Sequence" settings and will simply match images to products based on their SKU. The first image that matches the product's SKU will be set as the featured image.

Example:

Let's say you have a product with the SKU "abc". You have two images in your media library: "abc-front.png" "abc-side.png" and "abc-back.png".

If you enable the "Forcing image match: SKU" setting, the plugin will match both images to the product. The image "abc-back.png" will be set as the featured image because it is the first alphabetically matching image.

Match on upload to media library

By SKU

This setting only works for WooCommerce products. Allows you to automatically match images to products when they are uploaded to your media library. When you enable this setting, the plugin will automatically match images to products based on their file name. The plugin will look for the product's SKU in the file name of the image. If the SKU is found, the plugin will match the image to the product.

Ignore image prefix

Allows you to ignore the prefix of the image file name when matching files. This allows you to match files even if they have different prefixes. The setting is only available when using the SKU matching method. The plugin will match files based on the following format:[Prefix]-[SKU]-[Sequence].[file extension]

For example, if you have a product with the Sku "abc123" and an image file named "my-brand-abc123-1.jpg", the plugin will match the files and set the image as the featured image for the product.

Warning: The file name must not contain any other product SKUs. If the file name contains multiple SKUs, the plugin will not be able to match to the correct product. For example, if you have a file named "prefix-12345-67890-1.jpg" and two products with the SKUs "12345" and "67890", the plugin checks the following matches respectively: "prefix-12345-67890", "12345-67890", "prefix-12345", "67890", "12345", "prefix". The plugin matches the first SKU it finds, which is "67890". To avoid this problem, you should make sure that your file names only contain one SKU.

Other word delimiter

Allows you to specify an extra character used to separate the prefix parts of a file name. By default, the plugin uses the hyphen (-) character to separate filenames. However, if your filenames use a different character, you can use this setting to tell the plugin to use that character as well.

For example, if your file names also use the underscore character (_) as a separator; You would enter "_" into the "Other word delimiter" setting, such as "prefix_brand_67890-1.jpg". This tells the plugin to use underscore (_) and hyphen (-) characters to separate parts of your filenames.

== Changelog ==

= 1.0.0 =
* Initial version released
Auto Gallery And Image Sync
Automatically sync posts and media images as featured image and gallery.
Share:

XAMPP Local Server Installation

Apache, PHP and MySQL software must be installed in order to set up and open a programming-based website, such as WordPress or OpenCart, on your personal computer. In this article, you will learn how to install these software on a computer with a Windows operating system. You can manually install each of these software separately. But there are different combined installation packages that we can use to make it faster and easier. With these package installations, a single installation is made. When you install it, these softwares we need are set to work in compatible with each other and they are ready to use.

How to Install XAMPP Local Server Pictorial Lecture

How to Install XAMPP Local Server?

To install a local web server on your computer, you can choose from two package installations:

A-) EasyPHP
B-) XAMPP

A-) How to Install XAMPP?


XAMPP is one of the leading local server installation packages. The scope of the software it includes is wide and its versions are kept up to date. It may be a good choice to choose XAMPP for this.

Now let's explain the steps of installing the XAMPP local server on our computer in detail.

» Estimated time: 5 minutes
» Prerequisites:
PC with Windows operating system (7, 8, 10 or newer)
Internet connection
700 MB of free disk space

1-) Download XAMPP

1-1-) Download the XAMPP setup file from the address below.
https://www.apachefriends.org/download.html
Download XAMPP Setup Setup File
The executable file named 'xampp-windows-x64-7.4.10-0-VC15-installer.exe' will be saved on your computer.

The current package of XAMPP includes the following software and versions:
• Apache 2.4.51
• MariaDB 10.4.21
• PHP 8.0.12
• OpenSSL 1.1.1

The latest PHP version usually only has the 'Secure' feature. You would have made a better choice instead by using the PHP version that is both 'Stable' and 'Secure'. For example, while the most recent version released is 8.0, this version only qualifies as 'Secure'. However, in the same time period, 7.4 is both 'Stable' and 'Secure' as its vulnerabilities were found and closed as a result of its more widespread use, and it is recommended to use this version.

2-) XAMPP Installation

2-1-) Run the downloaded file and start the installation.
Running XAMPP Setup Setup
Proceed with the "Next" button on each new installation screen.
2-2-) Select which components to install while the components in the package. Apache, PHP, MySQL and options must be ticked. It is recommended to select all.
XAMPP Installation Screen
2-3-) Select the directory where the installation will be made.
Selecting XAMPP Installation Folder
2-4-) Choose which language XAMPP's control panel will be in. This selection does not affect the site you will set up. You can select the language "English".
XAMPP Installation Choosing Language
2-5-) Uncheck the checkbox to not open the information page.
XAMPP Installation Information Page
2-6-) The installation files will start to be copied. Wait until it completes.
XAMPP Installation File Copy
2-7-) Click the "Finish" button to finish the installation.
XAMPP Installation Completion

3-) Running XAMPP local server

3-1-) Run XAMPP. You will see the orange 'x' icon in the lower right system area. Open the XAMPP main window.
XAMPP Main Window
You can click the 'Quit' button in the main window to close the program at any time.
3-2-) Run the local web server and database server by clicking the 'Start' buttons shown in yellow frame to the right of 'Apache' and 'MySQL'.
XAMPP Setup Apache Php Autostart
When the servers start working, the background color of their names will be green. When you click the 'stop' buttons the server stops.
You can have the servers running automatically every time XAMPP starts. To do this, click the 'Config' button at the top right of the main window. Select the 'Apache' and 'MySQL' boxes under 'Auto start of modules' in the window that will open. Save the settings with the 'Save' button.
3-3-) Open 'http://127.0.0.1/' ( or 'http://localhost/' ) in your browser. You will see a welcome page prepared by XAMPP.
XAMPP Local Server Welcome Page
XAMPP Local Server Home Folder
Let's assume that the directory you selected while installing is 'C:\xampp'. The local web server interprets the files in the 'C:\xampp\htdocs' directory and displays them in the browser. You will save the files of the new sites you will create in this directory. When you open the local server in the browser, the file 'index.php' in the root directory will automatically run and point the browser to 'http://127.0.0.1/dashboard/' ( or 'http://localhost/dashboard/' ). The welcome message you see in the browser comes from the file 'index.html' in the 'C:\xampp\htdocs\dashboard' directory. You can then rename the 'index.php' file in the root directory with 'hello.php'. Thus, when you open the 'http://127.0.0.1/' (or 'http://localhost/' ) address, you can see the directories and files under the 'C:\xampp\htdocs' directory listed in your browser.
3-4-) Open the 'phpMyAdmin' link marked with a yellow arrow at the top right of the welcome page picture. The phpMyAdmin page will open. With phpMyAdmin, you can manage database through your browser. You can create, edit and delete database, table, tablespace, data record, run database query. If you want, add this address to your browser's shortcuts.
XAMPP phpMyAdmin MySQL

When you complete the step-by-step explanation of the above XAMPP installation, you can run the pages programmed with PHP language on your own computer and perform query operations by establishing a database connection.
Share:

EasyPHP Local Server Installation

For a software-based website such as WordPress or Joomla to run on your own computer, Apache, PHP and MySQL software must be installed first. This page will explain how to install these software on a computer with a Windows operating system. You can install each of these software one by one. But there are several combined installation packages that you can use to get things done easily with less time consuming. These package installations make all the necessary software work in harmony with each other at the end of a single installation process, they make their settings and present them to you ready to use.

How to Setup EasyPHP Local Server Pictorial Lecture

How to Setup a Local Server?

To install a local web server on your computer, you can choose from two package installations:

A-) EasyPHP
B-) XAMPP

A-) How to Install EasyPHP?


EasyPHP is a package local server installation with less installation size ( ~60 MB ) compared to its counterparts. The software it contains may be several versions earlier. It allows you to keep multiple PHP versions ready and choose one of them. If you are a power user, you can manually add the current PHP version if you want. After installation, missing Windows dll file may give errors. To solve this problem, you need to find and install Windows patches that complete the missing dll files.

EasyPHP Devserver 17 includes the following software and versions:
• Apache 2.4.25
• MySQL 5.7.17
• PHP 5.6.30
• PHP 7.1.3

» Estimated time: 5 minutes
» Prerequisites:
PC with Windows operating system (7, 8, 10 or newer)
Internet connection
600 MB of free disk space

1-) EasyPHP Download

1-1-) Download the setup file from the page below.
https://www.easyphp.org/download.php
Download EasyPHP Setup Setup File
EasyPHP Installation Exe File
The executable file named 'EasyPHP-Devserver-17.0-setup.exe' will be saved on your computer.

2-) EasyPHP Installation

2-1-) Run the setup file. Choose which directory on your disk the installation will be made and proceed to the next step with the 'Next' button.
Choosing EasyPHP Installation Folder Location
2-2-) If you wish, click the option to create a shortcut on the desktop and proceed.
EasyPHP Setup Screen
2-3-) Click the 'Install' button on the screen showing summary parameters.
Running EasyPHP Setup Setup
The copying of the installation files will begin.
EasyPHP Installation DLL copy
2-4-) After the process is completed, you will have completed the installation by clicking the 'Finish' button.
EasyPHP Installation

3-) Running EasyPHP local server

3-1-) Run EasyPHP. You will see the black 'e' icon in the lower right system area.
EasyPHP Installation start
When you right-click the icon, the EasyPHP menu appears. You can select the 'Exit' item in this menu to close the program at any time.
3-2-) You can start and stop the Web server and database server with the options under 'Servers' in the EasyPHP menu. Run 'Start / Restart All Servers' to run both.
3-3-) Select 'Open Dashboard'. After clicking, your browser will start and the EasyPHP web interface will open.
EasyPHP Installation usage
You can also start, stop and restart servers with the buttons marked with red arrows in the picture.
PHP 5.6.30 version is running as you can see in the picture below with a yellow line. We mentioned that you can optionally switch between different PHP versions with EasyPHP. If there is more than one version option, you can set the server to work with as follows:
3-4-) lick the gear wheel button shown in the yellow frame. In the 'PHP version' line in the window that opens, you will see the installed versions in the options that drop down. Choose the version you want. It is recommended to set the port number to 80. If the port number is 1111, the root address of the local web server will be 'http://127.0.0.1:1111/' ( or http://localhost:1111/ ). If you set the port number to 80, simply type 'http://127.0.0.1/' ( or http://localhost/ ) in the address bar of your browser to access your web server. After making the settings changes, restart the server with 'restart'.
EasyPHP Installation add php version
3-5-) In the list under the 'Working Directories' heading, there are directories determined on your disk. The web server interprets and executes the files in this directory. As can be seen in the 'Portable Directory' line marked with a blue frame in the picture, the 'C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www' directory is selected. When you visit the 'http://127.0.0.1/' address in your browser, the local web server lists this directory and/or reads files such as html, php under this directory and displays it to you as a page.
EasyPHP Installation workspace
3-6-) When you click the 'open' button marked with a red arrow to the right of the 'MySQL Administration PhpMyAdmin 4.7.0' line under the 'Modules' heading, the PhpMyAdmin window opens.
EasyPHP Installation MySQL
EasyPHP Installation PhpMyAdmin
With phpMyAdmin, you can manage database through your browser. You can create and delete database, table, tablespace, data record, run database query.

When you complete the step-by-step explanation of the EasyPHP installation above, you can run pages programmed in PHP on your own computer and perform query operations by establishing a database connection.
Share:

XAMPP Yerel Sunucu Kurulumu

WordPress veya OpenCart gibi veritabanı kullanan ve programlama temelli olan bir web sitesinin kişissel bilgisayarınızda kurulup açılabilmesi için öncelikle Apache, PHP ve MySQL yazılımlarını kurulması gerekir. Bu yazıda işletim sistemi Windows olan bilgisayara bu yazılımların nasıl kurulacağını öğreneceksiniz. Bu yazılımların herbirini ayrı ayrı elle kurabilirsiniz. Ama daha hızlı ve kolayca yapmak için yararlanabileceğimiz farklı birleştirilmiş kurulum paketleri vardır. Bu paket kurulumlar ile tek bir kurulum yapılır. Kurulumu yapınca, ihtiyacımız olan bu yazılımlar, birbirleriyle uyumlu olarak çalışacak şekilde ayarları yapılmış ve kullanıma hazır halde olurlar.

XAMPP Yerel Sunucu Kurulumu Nasıl Yapılır Resimli Anlatım

Yerel Sunucu Nasıl Kurulur?

Bilgisayarınıza yerel web sunucusu kurmak için şu iki paket kurulumundan birini seçebilirsiniz:

A-) EasyPHP
B-) XAMPP

A-) XAMPP Nasıl Kurulur?


XAMPP önde gelen yerel sunucu kurulum paketlerinden biridir. İçerdiği yazılımların kapsamı geniştir ve sürümleri güncel tutulmaktadır. Bunun için XAMPP'ı seçmek iyi bir tercih olabilir.

Şimdi bilgisayarımıza XAMPP yerel sunucusunu kurma basamaklarını detaylarıyla anlatalım.

» Tahmini süre: 5 dakika
» Ön gereksinimler:
Windows işletim sistemli kişisel bilgisayar (7, 8, 10 veya daha yeni)
İnternet bağlantısı
700 MB boş disk alanı

1-) XAMPP İndirme

1-1-) XAMPP kurulum dosyasını aşağıdaki adresten indirin.
https://www.apachefriends.org/download.html
XAMPP Kurulum Setup Dosyası indir
Adı 'xampp-windows-x64-7.4.10-0-VC15-installer.exe' gibi olan çalıştırılabilir dosya bilgisayarınıza kaydedilecek.

XAMPP'in güncel paketinin içerisinde şu yazılımlar ve sürümleri bulunur:
• Apache 2.4.51
• MariaDB 10.4.21
• PHP 8.0.12
• OpenSSL 1.1.1

En son sürüm PHP genelde sadece 'Güvenli' özelliğine sahiptir. Bunun yerine hem 'Kararlı' hem de 'Güvenli' olan PHP sürümünü kullanarak daha iyi bir seçim yapmış olursunuz. Örneğin, yayımlanan en güncel sürüm 8.0 iken, bu sürüm sadece 'Güvenli' olarak nitelendirilir. Ancak aynı zaman diliminde 7.4 daha yaygın kullanımı sonucunda açıkları bulunup kapatıldığı için hem 'Kararlı' hem de 'Güvenli' olur ve bu sürümün kullanılması tavsiye edilir.

2-) XAMPP Kurulumu

2-1-) İndirdiğiniz dosyayı çalıştırıp kuruluma başlayın.
XAMPP Kurulum Setup Çalıştırma
Her yeni kurulum ekranında "Next" düğmesi ile ilerleyin.
2-2-) Paket içindeki bileşenlerken hangilerinin kurulacağını seçin. Apache, PHP, MySQL ve seçeneklerinin mutlaka tikli olması gerekir. Tümünün seçilmesi tavsiye edilir.
XAMPP Kurulum Ekranı
2-3-) Kurulumun yapılacağı dizini seçin.
XAMPP Kurulum Klasör Seçme
2-4-) XAMPP'in kontrol panelinin hangi dilde olacağını seçin. Bu seçim kuracağınız siteyi etkilemez. "English" dilini seçebilirsiniz.
XAMPP Kurulum Dil Seçme
2-5-) Bilgilendirme sayfasını açmamak için seçili tiki kaldırın.
XAMPP Kurulum Bilgi Sayfası
2-6-) Kurulum dosyaları kopyalanmaya başlayacak. Tamamlanana kadar bekleyin.
XAMPP Kurulum Dosya Kopyalama
2-7-) "Finish" düğmesini tıklayıp kurulum bitirin.
XAMPP Kurulum Tamamlama

3-) XAMPP yerel sunucusunu çalıştırma

3-1-) XAMPP'i çalıştırın. Sağ alttaki sistem alalında turuncu renkli 'x' simgesini göreceksiniz. XAMPP ana penceresini açın.
XAMPP Ana Pencere
Dilediğiniz zaman programı kapatmak için ana penceredeki 'Quit' düğmesini tıklayabilirsiniz.
3-2-) 'Apache' ve 'MySQL' yazılarının sağında sarı çerçeve içinde gösterilmiş 'Start' düğmelerini tıklayarak yerel web sunucusunu ve veritabanı sunucusunu çalıştırın.
XAMPP Kurulum Apache Php Otomatik Başlatma
Sunucular çalışmaya başladıklarında isimlerinin arka plan renkleri yeşil olur. 'Stop' düğmelerini tıkladığınızda sunucu durur.
XAMPP her başladığında sunucuların otomatik olarak çalışmasını sağlayabilirsiniz. Bunun için ana pencerede en sağ üstte bulunan 'Config' düğmesine tıklayın. Açılacak olan penceredeki 'Auto start of modules' altındaki 'Apache' ve 'MySQL' kutularını seçin. 'Save' düğmesi ile ayarları kaydedin.
3-3-) Tarayıcınızda 'http://127.0.0.1/' ( veya 'http://localhost/' ) adresini açın. XAMPP'ın hazırlamış olduğu bir hoşgeldiniz sayfasını göreceksiniz.
XAMPP Yerel Sunucu Karşılama Sayfası
XAMPP Yerel Sunucu Ana Klasörü
Kurulum yaparken seçtiğiniz dizinin 'C:\xampp' olduğunu varsayalım. Yerel web sunucusu 'C:\xampp\htdocs' dizinindeki dosyaları yorumlar ve tarayıcıda gösterir. Yeni yapacağınız sitelerin dosyalarını bu dizine kayıt edeceksiniz. Yerel sunucuyu tarayıcıda açtığınızda kök dizindeki 'index.php' dasyası otomatik olarak çalışır ve tarayıcıyı 'http://127.0.0.1/dashboard/' ( veya 'http://localhost/dashboard/' ) adresine yönlendirir. Tarayıcıda gördüğünüz hoşgeldin mesajı 'C:\xampp\htdocs\dashboard' dizinindeki 'index.html' dasyasından gelmektedir. Kök dizindeki 'index.php' dosyasının adını daha sonra 'merhaba.php' ile değiştirebilirsiniz. Böylece 'http://127.0.0.1/' ( veya 'http://localhost/' ) adresini açtığınızda 'C:\xampp\htdocs' dizini altında olan dizin ve dosyaları tarayıcınızda listelenmiş şekilde görebilirsiniz.
3-4-) Hoşgeldiniz sayfasının resminde sağ üste sarı ok ile işaretli 'phpMyAdmin' bağlantısını açın. PhpMyAdmin sayfası açılacaktır. PhpMyAdmin ile veritabanı yönetimini tarayıcınızın üzerinden yapabilirsiniz. Veritabanı, tablo, tablo alanı, veri kaydı yaratabilir, düzenleyebilir ve silebilir, veritabanı sorgusu çalıştırabilirsiniz. İsterseniz bu adresi tarayıcınızın kısayollarına ekleyin.
XAMPP phpMyAdmin MySQL

Yukarıdaki XAMPP kurulumunun resmili anlatımını adım adım tamamladığınızda kendi bilgisayarınızda PHP dili ile programlanmış sayfaları çalıştırabilir ve veritabanı bağlantısı kurarak sorgu işlemlerini yapabilirsiniz.
Share:

Subscribe to: Posts (Atom)