Author: goodamaze

  • OCI Free Tier 상시 무료 서비스의 Docker 컨테이너에 WordPress 사이트 호스팅

    출처 : https://docs.oracle.com/ko/solutions/oci-free-wordpress-docker/install-and-configure1.html

    https://tyzen.net/2

    설치 및 구성
    OCI Free Tier 상시 무료 서비스의 Docker 컨테이너에 WordPress 사이트 호스팅

    다음 단계에 따라 설치 및 구성을 완료합니다.

    Docker를 설치합니다.
    Docker는 WordPress를 설치 및 유지 관리하는 프로세스를 만듭니다. 이전에는 훨씬 더 쉽게 여러 소프트웨어를 필요로 합니다.
    MySQL를 설치합니다.
    WordPress를 설치하기 전에 데이터를 저장할 MySQL를 설치해야 합니다.
    WordPress를 설치합니다.
    로드 밸런서를 생성하고 OCI 로드 밸런서를 사용하여 SSL 인증서를 설치합니다.
    OCI에 호스트된 WordPress 사이트에 액세스할 수 있도록 도메인의 DNS A 레코드를 로드 밸런서 IP 주소로 업데이트합니다.

    Docker 설치

    VM에 SSH로 접속하고 다음 명령을 실행하여 Docker를 설치합니다.

    sudo yum-config-manager –enable ol8_addons

    sudo dnf install -y dnf-utils zip unzip

    sudo dnf config-manager –add-repo=https://download.docker.com/linux/centos/docker-ce.repo

    sudo dnf install -y docker-ce –nobest

    sudo systemctl start docker

    다음 항목으로 진행하여 MySQL를 설치합니다.
    MySQL 설치

    MySQL를 설치하고 실행하려면 다음 명령을 실행하십시오.

    sudo docker pull container-registry.oracle.com/mysql/community-server:8.0.33-aarch64

    sudo docker run -e MYSQL_ROOT_PASSWORD= -e MYSQL_USER=wp -e MYSQL_PASSWORD= -e MYSQL_DATABASE=wordpress –name wordpressdb –restart on-failure -v
    “$PWD/database”:/var/lib/mysql -d container-registry.oracle.com/mysql/community-server:8.0.33-aarch64

    주:

    MYSQL_ROOT_PASSWORD – 데이터베이스 비밀번호를 입력합니다.
    MYSQL_DATABASE – 데이터베이스 이름을 wordpress로 입력합니다.
    MYSQL_USER – MySQL 사용자 이름을 입력합니다.
    MYSQL_PASSWORD – MySQL 비밀번호를 입력합니다.

    다음 항목으로 이동하여 WordPress를 설치합니다.
    WordPress 설치

    WordPress를 설치하려면 다음 절차를 수행하십시오.

    다음 명령을 실행하여 WordPress Docker 이미지의 최신 버전을 가져옵니다.

    sudo docker pull wordpress

    다음 명령을 실행하여 WordPress를 설치합니다.

    sudo docker run -e WORDPRESS_DB_USER=wp -e WORDPRESS_DB_PASSWORD= –name wordpress –link wordpressdb:mysql -p 80:80 -v
    “$PWD/html”:/var/www/html -d wordpress

    주:
    WORDPRESS_DB_USER – 데이터베이스 사용자 이름을 입력합니다. MySQL를 설치할 때 사용된 것과 동일한 사용자 이름을 사용합니다.
    -e WORDPRESS_DB_PASSWORD= – 데이터베이스 암호를 입력합니다. MySQL를 설치할 때 사용된 것과 동일한 암호를 사용합니다.
    -name wordpress – 컨테이너에 이름을 지정합니다.
    -link wordpressdb:mysql – MySQL 컨테이너 이름입니다.
    -p 80:80 – 컨테이너의 포트를 호스트에 게시하도록 Docker에 지시합니다.
    -v “$PWD/html”:/var/www/html – [host-src:]container-dest: 볼륨을 바인드합니다.
    -d – 컨테이너를 백그라운드로 실행합니다.
    wordpress – 단계 1에서 풀링된 이미지에서 WordPress를 설치하도록 Docker에 지시합니다.
    브라우저에서 컴퓨트 인스턴스의 공용 IP를 실행하고 WordPress 설치를 완료합니다.

    다음 항목으로 이동하여 SSL 인증서 설치를 위한 로드 밸런서를 생성합니다.
    로드 밸런서를 생성하고 SSL 인증서를 설치합니다.

    로드 밸런서를 생성하고 이 로드 밸런서를 사용하여 SSL 인증서를 설치해야 합니다.

    Oracle Cloud 인증서를 사용하여 Oracle Cloud Infrastructure 콘솔에 사인인합니다.
    왼쪽 탐색 창에서 네트워킹, 로드 밸런서, 로드 밸런서 생성을 차례로 누릅니다.
    Load Balancer 옵션을 선택한 다음 Create Load Balancer를 누릅니다.
    로드 밸런서 이름을 입력합니다.
    네트워킹 선택 영역에서 가상 클라우드 네트워크 및 서브넷을 선택하고 다음을 누릅니다.
    백엔드 추가를 누르고 WordPress 컴퓨트 인스턴스를 선택한 후 다음을 누릅니다.
    리스너 이름을 입력합니다.
    HTTPS 트래픽을 처리하려면 다음 필드를 완성하십시오.
    리스너 유형으로 HTTPS를 선택합니다.
    리스너가 수신 트래픽에 대해 모니터하는 포트로 443을 선택합니다.
    SSL 인증서 영역의 인증서 리소스 드롭다운 목록에서 로드 밸런서 관리 인증서를 선택합니다.
    인증 기관에서 도메인의 SSL 인증서를 업로드합니다.
    Specify Private Key 확인란을 선택하고 개인 키를 업로드합니다.
    다음을 누릅니다.
    필요한 로깅 옵션을 선택합니다.
    저장을 누릅니다.

    로드 밸런서 IP 주소를 복사하고 다음 항목으로 진행하여 OCI에 호스트된 WordPress 사이트에 액세스할 수 있도록 도메인의 DNS A 레코드를 로드 밸런서 IP 주소로 업데이트합니다.
    도메인의 DNS A 레코드 업데이트

    OCI에 호스팅된 WordPress 사이트에 액세스할 수 있도록 도메인의 DNS A 레코드를 로드 밸런서 IP 주소로 업데이트해야 합니다.

    주:이러한 단계는 도메인 호스팅 제공자에 따라 다를 수 있으므로 참조로 사용하십시오.

    호스트된 도메인의 DNS 관리 페이지로 이동합니다.
    DNS 레코드 페이지에서 다음을 수행합니다.
    유형을 A로 선택합니다.
    이름을 입력합니다.
    값 필드에 OCI 로드 밸런서 IP 주소를 입력하거나 붙여넣습니다.
    저장을 누릅니다.

    이제 도메인이 Oracle Cloud Free Tier에 호스트된 WordPress 사이트로 재지정됩니다.

  • Most Favorite News in the US Today at 9 AM New Zealand

    Breaking News: President-elect Trump’s Stunning Nominations

    As of 9 AM New Zealand time on November 14, 2024, the most talked-about news in the US revolves around President-elect Donald Trump’s recent nominations. These moves have sent shockwaves through the political landscape, particularly in Washington D.C.

    **President-elect Trump’s Nominations**

    President-elect Trump has made two significant announcements that have garnered widespread attention. Firstly, he has nominated **Rep. Matt Gaetz (R-Fla.)** as the next Attorney General. This decision has been met with both surprise and criticism from various quarters. Rep. Gaetz has been under investigation by the House Ethics Committee for allegations of sexual misconduct and obstruction of justice. His resignation from Congress, effective immediately, has added to the controversy surrounding his nomination.

    Secondly, Trump has tapped **Tulsi Gabbard**, the former Democratic congresswoman from Hawaii, to become his Director of National Intelligence (DNI). This move is also seen as a significant departure from the traditional choices for such a critical position.

    **Reactions and Implications**

    The reactions to these nominations have been varied and intense. Many within the GOP and federal law enforcement have expressed their concerns about Rep. Gaetz’s qualifications and the potential impact on the Justice Department. The House Ethics Committee had planned to vote on releasing its report on Gaetz, which further complicates the situation.

    These developments are not only significant for the incoming administration but also for the broader political landscape. They reflect President-elect Trump’s commitment to reshaping key institutions and his willingness to challenge conventional norms.

    **Other Notable News**

    While the Trump nominations dominate the headlines, other significant events are also unfolding. The Onion has acquired Alex Jones’ InfoWars site out of bankruptcy, marking a new chapter in the world of alternative media. Additionally, a weather system brewing in the Caribbean could soon become a tropical storm, prompting concerns about potential weather-related disruptions.

    **Conclusion**

    In summary, the most favorite news in the US today at 9 AM New Zealand time revolves around President-elect Trump’s stunning nominations. These moves have set the stage for a potentially tumultuous transition period and highlight the ongoing political and social dynamics in the country. As we continue to monitor these developments, it is clear that the coming days will be filled with intrigue and significant changes in the American political landscape.

  • 우크라이나 전쟁과 북한 파병이 한반도에 미치는 영향

    우크라이나 전쟁과 북한 파병이 한반도에 미치는 영향

    1. 북한의 우크라이나 전쟁 파병

    북한이 우크라이나 전쟁에 파병한 것은 한반도 안보에 중대한 영향을 미칠 것으로 전망됩니다. 북한의 파병은 러시아를 통해 군사와 경제를 강화하겠다는 새 전략을 채택한 것으로 보입니다.

    2. 한반도 안보 위협

    북한의 파병은 한반도 안보에 큰 위협을 가합니다. 북한의 최정예 특수부대가 러시아 블라디보스토크에 수송된 사실이 확인되었습니다. 이는 북러 군사동맹이 현실화된 것임을 의미하며, 북한이 국제사회의 일원으로서 세계평화를 위협하는 위험천만한 참전행위를 한 데 강력히 규탄하고 있습니다.

    3. 국제사회의 반응

    국제사회는 북한의 파병을 전쟁 확대의 중요한 변곡점으로 평가하고 있습니다. 북한이 참전 대가로 러시아에게 받을 여러 지원이 한반도 위협을 증가시킬 것이라고 분석되고 있습니다. 한국도 우크라이나에 대한 무기 지원 등 본격적인 대응이 필요하다고 분석하고 있습니다[2].

    4. 북한의 전략

    북한의 파병은 북한이 국제사회의 규탄을 무릅쓰고 파병이라는 선택을 감행했기 때문에 과거보다 더 큰 수준의 대가를 러시아에 요구할 것이라고 전문가들은 전망합니다. 북한은 러시아와의 협력을 통해 시간을 벌 필요가 있겠다고 하는 전략인 것 같습니다. 그러나 이 전략은 단기적으로 한반도에 매우 복잡한 정세를 조성하며, 장기적으로는 북러 협력으로 위기를 돌파하겠다는 뜻입니다.

    5. 한반도와 국제 안보 지형의 변화

    북한의 파병은 한반도와 동북아의 국제 안보 지형에 상당한 파장을 몰고 올 전망입니다. 북한의 전격적인 파병 배경은 러시아와 우크라이나가 전쟁 중인 상황에서 북한이 에너지와 식량 지원, 상당한 액수의 외화벌이를 통해 경제를 살리기 위해 이 선택을 했다고 분석됩니다.

    6. 한국 정부의 대응

    한국 정부는 북한의 파병을 한반도는 물론, 국제 안보에 대한 중대한 위협으로 규정하고 있습니다. 정부는 쓸 수 있는 모든 수단을 동원해 대응하기로 하고, 러시아가 돌이킬 수 없는 선을 넘었기 때문에 우크라이나에 방공 무기를 포함한 살상 무기 제공을 심각하게 고려하고 있습니다.

    7. 향후 추이

    북한의 파병은 향후 추이를 지켜봐야 할 사안입니다. 북한의 2006년 1차 핵실험 이후 가장 파급력이 큰 사안으로 평가되고 있습니다. 향후 북한과 러시아의 밀착이 끊기지 않으면 한반도와 국제 안보 지형에 더 큰 위협이 가해질 수 있습니다.

    결론

    우크라이나 전쟁과 북한의 파병은 한반도 안보에 중대한 영향을 미칠 것으로 전망됩니다. 북한의 파병은 국제사회의 규탄을 무릅쓰고 이루어진 선택이며, 이는 한반도와 국제 안보 지형에 큰 파장을 일으킬 수 있습니다. 한국 정부는 북한의 파병에 대한 대응을 강화하고, 국제 협력을 통해 한반도 안보를 유지하기 위해 노력해야 할 것입니다.

     

  • The Impact of the Ukraine War on the World Economy

    The Ukraine War and Its Ripple Effects on the World Economy

    The ongoing conflict between Russia and Ukraine has sent shockwaves across the globe, particularly in the realm of commodity markets and economic stability. The war has disrupted supply chains, led to a drastic drop in output, and caused significant refugee outflows, all of which have had far-reaching consequences for the world economy.

     

    **Disruptions to Commodity Markets**

    The Russia-Ukraine war has highlighted the importance of global commodity markets in supporting the energy transition to low- and zero-carbon fuels. However, it has also created unprecedented volatility and risk around trading and risk management of oil, gas, and metals [1]. The war has exacerbated existing pandemic-related stress in commodity markets, leading to sharp increases in prices for commodities such as energy and food [3].

     

    **Economic Impact on Ukraine**

    Russia’s war against Ukraine has caused severe disruptions to Ukraine’s economy. The country has experienced a drastic drop in output, refugee outflows, and damage to infrastructure and production facilities [2]. The Ukrainian government has been struggling to balance its capacity to fund and supply its defense effort with keeping the civilian economy going and continuing to provide basic public services. Western financial assistance has been crucial to propping up Ukraine’s public finances.

     

    **Global Economic Consequences**

    The war in Ukraine has not only affected Ukraine but also had significant global economic implications. The conflict has led to broad-based price increases across all fuels, making it more challenging for countries to switch to cheaper alternatives [3]. Additionally, the energy intensity of GDP is much lower than in the 1970s, which means consumers may be less sensitive to relative price changes. This has led to a prolonged imbalance between supply and demand in energy markets.

     

    **Mitigating the Impact**

    To mitigate the impact of the war on commodity markets, governments and policymakers need to implement a combination of appropriate policies and market adjustments. Measures such as promoting energy efficiency and boosting the supply of energy using reliable sources of low-carbon energy can help resolve the demand and supply imbalance [3].

     

    **Policy Responses**

    Policy responses to the current commodity shock have been varied. Many countries have responded with energy subsidies and tax breaks, which are fiscally expensive means of supporting vulnerable groups. However, these policies can prolong the imbalance between demand and supply by maintaining energy demand [3].

     

    **Ukraine’s Economic Recovery**

    Despite the challenges posed by the war, Ukraine is working towards economic recovery. The Ukrainian government has been implementing fiscal policies aimed at increasing tax revenues and introducing additional sources of revenue to support its defense efforts and civilian economy. The parliament has approved a tax increase package that includes a military levy and smaller sources of additional revenues [4].

     

    **Global Economic Outlook**

    The global economy remains resilient despite the ongoing conflicts. Growth is projected to hold steady at 3.2 percent in 2024 and 2025, with some low-income and developing economies experiencing downside growth revisions due to intensified conflicts [5]. The decline in inflation without a global recession is a significant achievement, reflecting a unique combination of shocks including broad supply disruptions and strong demand pressures in the wake of the pandemic.

     

    **Conclusion**

    The Ukraine war has highlighted the interconnectedness of global economies and the importance of stable commodity markets. As the world continues to navigate these challenges, it is crucial for policymakers to implement effective policies that promote energy efficiency, boost low-carbon energy production, and support economic recovery in affected regions. By doing so, we can mitigate the impact of the war on the world economy and ensure a more stable future for all.

  • 비트코인과 이더리움 가격 전망: 트럼프 효과와 미래의 가능성

    비트코인 가격 전망

    비트코인은 최근 미국 대선의 결과로 인해 폭발적인 상승세를 보이고 있습니다. 도널드 트럼프 전 대통령의 재선으로 가상화폐 규제 완화 가능성에 대한 기대가 높아지면서 비트코인 가격은 사상 최고가를 경신했습니다.

    트럼프 전 대통령의 대선 승리로 인해 비트코인 가격이 7만5천 달러를 돌파한 것은 큰 사건입니다. 이더리움도 2,891.27 달러로 7.72% 급등하며 주목을 받고 있습니다.

    미국 투자연구기관 네드 데이비스 리서치(NDR)는 비트코인이 내년 4월까지 12만1천 달러를 돌파할 것으로 내다봤습니다. 이는 비트코인이 향후 60% 가까이 급등할 수 있음을 시사합니다.

    이와 함께, 트럼프 전 대통령의 정책으로 수혜를 볼 가능성이 있는 ‘트럼프 트레이드’에 해당한다고 전합니다. 이는 비트코인 가격 상승의 중요한 배경 중 하나입니다.

    현재, 비트코인은 올 한해에만 66% 올랐으며, 향후 추가적인 상승 가능성을 점치고 있습니다. 트럼프의 재임 기간 중 가상화폐 규제 완화와 미국 정부의 가상화폐 보유 정책이 앞으로의 가격 상승에 어떤 영향을 미칠지 주목됩니다.

    비트코인 가격 전망:

    • 내년 4월까지 12만1천 달러 돌파 가능성
    • 향후 60% 가까이 급등할 수 있음
    • 트럼프 트레이드로 인한 가상화폐 규제 완화 가능성

    이더리움 가격 전망

    이더리움도 최근 비트코인과 함께 폭발적인 상승세를 보이고 있습니다. 이더리움 가격은 2,891.27 달러로 7.72% 급등하며 주목을 받고 있습니다.

    이더리움의 급격한 상승세는 하락을 예측했던 투자자들이 거래 포지션을 신속히 정리하면서 가속화됐습니다. 또한, 트럼프 전 대통령의 정책으로 인해 가상화폐 시장이 성장할 가능성이 높아지고 있습니다.

    이더리움 가격 전망:

    • 7.72% 급등
    • 향후 추가적인 상승 가능성
    • 트럼프 정책으로 인한 가상화폐 시장 성장 가능성

    미래의 가능성

    비트코인과 이더리움의 가격 전망은 미래의 가상화폐 시장에 큰 영향을 미칠 수 있습니다. 트럼프 전 대통령의 정책으로 인해 가상화폐 규제 완화와 보유 정책이 앞으로의 가격 상승에 중요한 역할을 할 것으로 예상됩니다.

    현재, 가상화폐 시장은 큰 변화를 맞고 있으며, 투자자들은 이러한 변화를 주의 깊게 지켜보고 있습니다. 향후 가상화폐 시장이 어떻게 성장할지 주목할 만한 주제입니다.

  • Organizing Your Blog: Categories, Tags, and HTML Structure

    Organizing Your Blog: Categories, Tags, and HTML Structure

    As a blogger, organizing your content effectively is crucial for both user experience and search engine optimization (SEO). In this post, we will explore the importance of categories and tags, and how to structure your blog using HTML elements.

    Categories: The Foundation of Your Blog

    Categories are the primary way to organize your blog content. They provide a hierarchical structure, making it easy for readers to find related posts. For example, if you have a blog about technology, you might have categories like ‘Software,’ ‘Hardware,’ and ‘Gadgets.’

    **Why Use Categories?**

    Categories help in several ways:

    • They provide a clear structure, making it easier for readers to navigate your blog.
    • They improve SEO by helping search engines understand the content of your blog.
    • They allow you to create subcategories, further organizing your content.

    Tags: The Specific Details

    Tags are optional but highly useful for adding specific details to your posts. Unlike categories, tags do not have a hierarchical relationship and can be used multiple times for different posts.

    **How to Use Tags Effectively?**

    Tags should be used strategically:

    • They should be specific and relevant to the content of the post.
    • They should be consistent across all posts to maintain a uniform structure.
    • They can help in creating a tag cloud, which presents the most frequently used tags, making it easier for readers to find related content.

    HTML Structure: The Backbone of Your Blog

    The HTML structure is essential for organizing and presenting your blog content effectively. Here’s a basic structure you can follow:

    **The Basic HTML Structure:**

    The basic structure of an HTML document includes the , , and tags.

    ### The Tag

    The tag is the root element of your HTML document. It contains all other elements and helps browsers and assistive technologies identify the start of the HTML content.

    ### The Tag

    The section contains meta-information about the page, such as the page title, character set, links to stylesheets, and scripts that should be loaded.

    ### The Tag

    The element contains all the information and other visible content that you want to display on the web page. It includes elements like

    ,

  • AMD vs Intel in AI: The Battle of the GPUs

    The world of artificial intelligence (AI) has seen a significant shift in recent years, with advancements in hardware and software technologies. Two major players in this arena are AMD and Intel, each vying for dominance in the AI chip market. In this blog post, we’ll delve into the latest developments and compare the performance of AMD’s Ryzen AI 300 series and Intel’s Core Ultra 7 258V in large language model (LLM) tasks.

     

    AMD’s Ryzen AI 300 Series: The New Champion

    AMD has been making waves in the AI community with its Ryzen AI 300 series of mobile processors. These chips have been tested against Intel’s mid-range Core Ultra 7 258V in various LLM tasks, and the results are impressive. According to AMD’s in-house testing, the Ryzen AI 9 HX 375 outperforms the Core Ultra 7 258V by up to 27% in token generation speed using LM Studio, a popular desktop app for downloading and hosting LLMs locally[1].

     

    The Ryzen AI 9 HX 375 was tested against several LLM models, including Meta’s Llama 3.2, Microsoft Phi 3.1 4k Mini Instruct 3b, Google’s Gemma 2 9b, and Mistral’s Nemo 2407 12b. The tests measured speed in tokens per second and acceleration in the time it took to generate the first token. The results clearly show that AMD’s chip excels in both speed and time to start outputting text.

     

    It’s worth noting that Intel’s Core Ultra 7 258V is not on a fair playing field against the HX 375. The 258V has a max turbo speed of 4.8 GHz, while the HX 375 reaches 5.1 GHz. This difference in performance is significant and affects the overall outcome of the tests. However, even with this disparity, AMD’s Ryzen AI 9 HX 375 demonstrates superior performance in LLM tasks.

     

    GPU Acceleration: The Key to Faster Performance

    One of the key features of AMD’s Ryzen AI 300 series is its ability to utilize GPU acceleration. Tests performed using the Vulkan API in LM Studio showed that the Ryzen AI 9 HX 375 achieved up to 20% faster token generation speeds when GPU acceleration was enabled. This highlights the importance of dedicated NPU and iGPU in AI tasks, especially when it comes to on-demand program-level AI tasks[1].

     

    AMD’s commitment to open innovation is evident in its support for various AI frameworks and libraries. The company continues to advance its ROCm open software stack, which now includes support for critical AI features like FP8 datatype, Flash Attention 3, and Kernel Fusion. This ensures seamless integration with popular generative AI models like Stable Diffusion 3 and Meta Llama 3[4].

     

    Intel’s Struggles in the AI Chip Market

    Intel, on the other hand, has faced significant challenges in the AI chip market. Despite its efforts to launch the Gaudi accelerator chips, Intel has fallen short of its modest revenue goal for 2024. This is a stark contrast to AMD’s upgraded sales forecast for its Instinct GPUs, which now stands at $5.5 billion for 2024[3].

     

    Intel’s CEO, Pat Gelsinger, remains bullish on the company’s long-term strategy for Gaudi chips. However, the current performance indicates that Intel is still in the early stages of scaling up sales efforts. The company’s reliance on software ease of use and the transition from Gaudi 2 to Gaudi 3 have contributed to slower-than-expected sales[3].

     

    Conclusion

    The battle between AMD and Intel in the AI chip market is heating up. AMD’s Ryzen AI 300 series has demonstrated superior performance in LLM tasks, thanks to its advanced architecture and GPU acceleration capabilities. Intel’s struggles with its Gaudi accelerator chips highlight the challenges of entering a market dominated by Nvidia. As AI continues to evolve, it will be interesting to see how these companies adapt and innovate to stay ahead in the race for AI supremacy.

  • When you can’t crop the image for your header for your WordPress Page

    After you install your WordPress, and if you face an error like this, and if you can’t crop new image for your header on your dashboard,

    /var/www# php -v

    PHP Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /usr/lib/php/20240924/imagick.so (/usr/lib/php/20240924/imagick.so: undefined symbol: php_strtolower), /usr/lib/php/20240924/imagick.so.so (/usr/lib/php/20240924/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 8.4.0RC3 (cli) (built: Oct 30 2024 11:34:47) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.4.0RC3, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.0RC3, Copyright (c), by Zend Technologies

    ==========================

    use following command

    php –ini

    Check for GD in php.ini

    1. Edit the PHP-FPM php.ini File: Open the main php.ini for PHP-FPM:
      sudo nano /etc/php/8.4/fpm/php.ini
    2. Look for extension=gd: Use the search function (usually CTRL + W in nano) to locate any lines that mention extension=gd.
    3. Comment Out Duplicate Entry: If you find extension=gd in php.ini, comment it out by adding a semicolon (;) in front of it: php.ini
      ;extension=gd
    4. Save and Exit: Save the file and exit the editor.
    5. Restart PHP-FPM: Restart PHP-FPM to apply the change:
      sudo service php8.4-fpm restart

     

  • Installing WordPress on an Ubuntu Server using Nginx, PHP, and MariaDB on Oracle Cloud Infrastructure Free Tier.

    Installing WordPress on an Ubuntu Server using Nginx, PHP, and MariaDB on Oracle Cloud Infrastructure Free Tier.

    Wordpress Installation

    Prerequisites

      • Oracle Cloud Infrastructure Free Tier account
      • Ubuntu Server instance
      • SSH access to the server

     

    Step 1: Update System Packages

    sudo apt update
    sudo apt upgrade -y
     

    Step 2: Install Nginx Web Server

    sudo apt install nginx -y
    sudo systemctl start nginx
    sudo systemctl enable nginx
     

    Step 3: Install MariaDB Database

    sudo apt install mariadb-server -y
    sudo systemctl start mariadb
    sudo systemctl enable mariadb
    sudo mysql_secure_installation
     

    During the secure installation:

    • Set root password
    • Remove anonymous users
    • Disallow root login remotely
    • Remove test database
    • Reload privilege tables

     

    Step 4: Install PHP 8.1 and Required Extensions

      sudo add-apt-repository ppa:ondrej/php
      sudo apt update
      sudo apt install php8.1-fpm php8.1-mysql php8.1-curl php8.1-gd php8.1-mbstring
    php8.1-xml php8.1-zip -y

    Step 5: Configure Database for WordPress

       sudo mariadb
    CREATE DATABASE wordpress;
    CREATE USER 'wordpress_user'@'localhost' IDENTIFIED BY 'strong_password';
    GRANT ALL PRIVILEGES ON wordpress.* TO 'wordpress_user'@'localhost';
    FLUSH PRIVILEGES;
    EXIT;
     

    Step 6: Download and Install WordPress

      cd /tmp
      wget https://wordpress.org/latest.tar.gz
      tar -xvf latest.tar.gz
      sudo mkdir -p /var/www/wordpress
      sudo cp -R wordpress/* /var/www/wordpress/
      sudo chown -R www-data:www-data /var/www/wordpress
      sudo chmod -R 755 /var/www/wordpress
     

    Step 7: Configure Nginx for WordPress

      sudo nano /etc/nginx/sites-available/wordpress
     

    Add the following configuration:

    server {
       listen 80;
       server_name your_domain.com;
       root /var/www/wordpress;
       index index.php;
       location / {
       try_files $uri $uri/ /index.php?$args;
            }
       location ~ \.php${
       fastcgi_pass unix:/var/run/php/php8.4-fpm.sock;
       fastcgi_index index.php;
       include fastcgi_params;
       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            }
       }  

     

    Step 8: Enable Site and Restart Services

        sudo ln -s /etc/nginx/sites-available/wordpress /etc/nginx/sites-enabled/
        sudo nginx -t
        sudo systemctl restart nginx
        sudo systemctl restart php8.4-fpm
     

    Step 9: Configure WordPress

    • Navigate to http://your_domain.com
    • Follow WordPress setup wizard
    • Create wp-config.php with database details
    •  

    Security Considerations

    • Configure firewall rules in Oracle Cloud Console
    • Open ports 80 and 443
    • Consider installing SSL with Let’s Encrypt
    •  

    Troubleshooting

    • Check Nginx logs: sudo tail /var/log/nginx/error.log
    • Check PHP-FPM logs: sudo tail /var/log/php8.4-fpm.log
    • Verify services: sudo systemctl status nginx php8.4-fpm mariadb