Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Monday, 25 February 2019

Password protect to directory on the web server and Add a new user

Allow User to access the app 1. Create/Update `.htaccess` file in root directory:
    touch .htaccess
    vi .htaccess
Then, add following content:
    AuthUserFile /home/bitnami/htdocs/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Application Authentication"
    AuthType Basic
    require user demo-user1
    require user test-user2
3. And, for passwords, create `.htpasswd` file in root directory.
    touch .htpasswd.
4. To add/edit password, run the following command:
    htpasswd -c .htpasswd demo-user1
    
And, follow instruction ahead.

Friday, 12 December 2014

Installing ionCube PHP Loader in Windows and Linux

If you are stuck with the below errors, this may be good tutorial for you.

.....requires the ionCube PHP Loader ioncube_loader_win_5.4.dll to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation.

In Windows
---------------
Please go to download the IonCube loader from the IonCube website and you unzip the file and click the loader-installer.exe and the window pop-up.
To install in your local computer, please use the below format;
Installation Type: Local machine
Base URL: http://localhost/
Base directory: your_htdocs_folder_full_path (e.g. C:\Bitnami\wampstack\apache2\htdocs, C:\xampp\htdocs)

Then, click the start and once installation process completes, please restart the apache. Also, if you goto php.ini file, the zend_extension="your_ioncube_dll_path" is added to the beginning of the file, which you can move to the right place within the file.

FYI: I would be adding to do same on Linux soon..

Furthermore,

To Enable the ionCube PHP Loader for WHMCS installation.
-----------------------------------------------------------------------------
1. Please download the Linux package (64 bits or 32 bits) form the IonCube Loader page.
2. Unzip the files and create a ioncube/ in your public_html/ folder and move all those extracted files in it.
3. Create the php.ini file with below content in it.
zend_extension = "/home/your_site_username/public_html/ioncube/ioncube_loader_lin_5.4.so"

4. Then copy the above php.ini file across in your WHMCS main folder (where you are going to install), its install/, admin/ folders.

Then, try refreshing the page. It should be working.