Jump to content

HaARiZz

Members
  • Posts

    76
  • Joined

  • Last visited

  • Days Won

    2

Community Answers

  1. HaARiZz's post in fluxcp on VPS Centos 7 was marked as the answer   
    What is the web server that you used? Apache? nginx? 

    To solve your problem on the issue of index.php files not being served as the default file (aka the DirectoryIndex).
     
    APACHE
    To fix the issue with Apache web server, you will need to tell it that “index.php” files should be treated the same as “index.html” files. A quick fix is to create a .htaccess file with the following line:
    #The DirectoryIndex is index.php DirectoryIndex index.php index.html However, using .htaccess files should be avoided if you happen to have access to Apache configuration files. A better approach is to modify the /etc/httpd/conf/httpd.conf file and add index.php after DirectoryIndex as per below:
    #Find "DirectoryIndex" add "index.php" before index.html DirectoryIndex index.php index.html In the config snippet above, we tell Apache that index.php is the DirectoryIndex. We also specify that index.html should be used as the DirectoryIndex if a index.php file is not present inside the current directory.
    After this, restart the Apache web server in order for your changes to be recognized. Do this by typing this:
    sudo systemctl restart httpd  
    NGINX
    If you are using PHP-FPM with nginx as the web server, then you will need to make sure that your sites-available configuration file has something similar to the following:
    location / { index index.php index.html index.htm; try_files $uri $uri/ =404; } You only need to pay attention to the second line, as the rest of the configuration settings may be slightly different than what you are currently using. In the configuration snippet above, we have told our nginx web server that the index is “index.php”, “index.html” or “index.htm” – in that order of preference.
    After this, restart the nginx web server in order for your changes to be recognized. Do this by typing this:
    sudo systemctl restart nginx  
  2. HaARiZz's post in [SOLVED] H> costume exchanger NPC was marked as the answer   
    Hi @kevinyrchua
    prontera,106,93,6 script Costume Exchanger 49,{ mes "[ Costume Exchanger ]"; mes "Hello there!"; mes "I can help you exchange your item into a costume by chance"; mes "Do you want to continue?"; next; switch(select("Costume Exchange:Maybe next time.")) { case 1: if((countitem(5389)>=1) && (Zeny > 999999)) { progressbar "ffff00",7; delitem 5389,1; set Zeny, Zeny-1000000; mes "[ Costume Exchanger ]"; if(rand(100) < 50) { mes "Here you are!"; getitem 20146,1; close; } } case 2: mes "[ Costume Exchanger ]"; mes "Come and see me again!"; close; } } Have a try and please let me know if it still not working.
  3. HaARiZz's post in Moving Flux cp files on a folder was marked as the answer   
    Hi @erjsanmiguel
    You can go to cp/config/application.php
    Change the config as per below:-
    'BaseURI' => 'cp', //The "cp" assigned is a folder name of your control panel.  
  4. HaARiZz's post in remove symbol "?" from gender section flux was marked as the answer   
    Hi @domez86
    Simply you can remove it at https://github.com/rathena/FluxCP/blob/5007e776bd4f345efff93f627dbe595c0ee945b6/themes/default/account/create.php#L75
    Cheers!
  5. HaARiZz's post in I want to request a simple basic PVP warper was marked as the answer   
    Hi @ahloi007
    As your requested, please find attachment below.
    Enjoy! 
    PVP_Warper_Ver1.0.txt
  6. HaARiZz's post in How to fix Pvp Warper Users not displaying was marked as the answer   
    Sorry for previous script. That script I just make it without test it on my server.
    This is the real script that I have tested and working great.
    pvp_warper_ver1.0.txt
  7. HaARiZz's post in Healer Unknown Syntax was marked as the answer   
    Hi @Zyper143
    As your request, here is the clean script for your healer npc.

    Enjoy!
    healer.txt
×
×
  • Create New...