PEHLA KALMA

PEHLA KALMA
Showing posts with label Linux mint. Show all posts
Showing posts with label Linux mint. Show all posts
Sanaullah Sajid

how to turn off server signature on apache web server linux

Qurestion: Whenever Apache2 web server returns error pages (e.g., 404 not found, 403 access forbidden pages), it shows web server signature (e.g., Apache version number and operating system info) at the bottom of the pages.
Also, when Apache2 web server serves any PHP pages, it reveals PHP version info. How can I turn off these web server signatures in Apache2 web server?

Ans:

Read More
Sanaullah Sajid

How to update flash player for firefox in linux ubuntu

Question: I am trying to update flash,but i still get a massage telling me to update.

Ans:

Follow methods.
1)Open terminal and paste code:

Read More
Sanaullah Sajid

mod_rewrite is enabled but not working in linux

Trying to get a php routing library set up.They give this example for a .htaccess file save file in your folder.

< ifmodule mod_rewrite.c="" >
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
< /ifModule >

I couldn't get this to work,so tried enabling mod_rewrite,

First of all, set your httpd configuration to this (the path may differ with one another. In my ubuntu it's placed at /etc/apache2/sites-available/default):

DocumentRoot /var/www

< Directory /var/www/ >
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all
< /Directory >


  • sudo a2enmod rewrite


  • restart your apache:



  • sudo service apache2 restart


  • To ensure that, you can check it again from phpinfo in Configuration > apache2handler > Loaded Modules there must be written mod_rewrite and it means mod_rewrite is enabled.
    Read More
    Sanaullah Sajid

    Linux mint ubuntu php errors not displayed in the browser

    I've read a number of article and other threads which indicate that the following values should be applied in the file /etc/php5/apache2/php.ini :
    Read More
    Sanaullah Sajid

    Phpmyadmin is not working after I installed it in linux

    So far my apache2, php, and mysql are working fine except phpmyadmin..whenever I run this:

    http://localhost/phpmyadmin/

    I get this error on my browser:

    You will need to configure your apache2.conf to make phpmyadmin works.
    Add this code in terminal.

    gksu gedit /etc/phpmyadmin/apache2.conf

    Then add the following line to the end of the file.

    Include /etc/phpmyadmin/apache.conf

    then restart apache

    /etc/init.d/apache2 restart

    Tried various different ways.

    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

    sudo a2enconf phpmyadmin

    sudo service apache2 reload
    Read More
    Sanaullah Sajid

    how changing the upload limit size in php 2MB to 110MB in linux

    This works with easyphp, phpmyadmin, mysql and apache setup in wordpress.org but will probably work with others.

    1.Edit php.ini. You can find it here \apache\apache2.4

    2.Use Find tool and search for each of these separately and change.

    post_max_size = 8M
    upload_max_filesize = 2M
    max_execution_time = 30
    memory_limit = 8M

    Change to::

    post_max_size = 110M {see the sql statement filesize above}
    upload_max_filesize = 110M
    max_execution_time = 128M {based on RAM}

    Save php.ini

    3.Edit my.ini, find it here, \mysql\my.ini

    4.Use find tool

    maz_allowed_pocket = 110M
    Save my.ini

    5.Restart your server or restart your apache (if use linux mint 17 use command 'sudo service apache2 restart')

    Read More
    Sanaullah Sajid

    Enable Apache 2 SSL for Linux mint

    The tutorial show step by step How to enable SSL secure connection for linux mint.

    Inside the Guide to enabling SSL apache connection linux mint you will find link to how to generate and setup a valid SSL signed certificate for free on linux mint server/Desktop.

    1. Open a terminal window
    (Press 'Enter' to Execute Commands)

    2. Enabling Apache SSL

    Sudo a2enmod ssl

    Sudo a2ensite default-ssl

    Sudo service apace2 reload

    3.Review the Apache default SSL Configuration for localhost

    cat /etc/apache2/sites-available/default-ssl.conf

    4.After You can test access the domain over SSL
    For a server (Example):

    https://localhost
    Read More