Skip to content
Advertisement

Tag: apache

Remove file extension in apache 2.4

I want to refer to a page without the .php extension and not to use the .htaccess file, as a documentation says: You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Answer You can write the configuration you want (a “rewrite rule” in

pgsql extension is not loading

I am trying to use pgsql extension on Windows 10 64-bit (WAPP). I have: restarted Apache uncommented all postgresql extensions in php.ini used LoadFile to load pgsql.dll moved pgsql.dll to Apache bin (I tried both dll from php folder and from postgresql) But still no result. pgsql is visible only in php.exe -m but not in phpinfo(), extension_loaded(), get_loaded_extensions(). My

Add New Parameter to Existing URL using htaccess

I have a url like below But i want to add an additional parameter to this url like below. For this i am using .htaccess to redirect with additional parameter but it is not redirecting still show original url. RewriteRule /index3.php$ index3.php?email=$1 [R] But it is not working. How can i redirect with additional parameter? Answer Try this simple one.

How to perfectly set up virtual host for codeigniter project?

I am trying to make a virtual host for a codeigniter project. I have done this in httpd-vhosts.conf: and in application/config/config.php, and the browser opens the landing page. but when transiting from any other uri it says object not found. And when i configure httpd-vhosts.conf like this: It arises problem with assets things, i,e images and some css doesnt loads.

Image upload on linux server (PHP)

I am trying to upload image to server. The following code works when I use on local pc but when I try on server, image is not uploaded. Answer Do you have the same file permissions on server? Does folder /var/www/html/uploaded exist and is writable by web server user (usually www-data)? Try running following command in server terminal: Where www-data

Running two PHP versions on the same server

I have two projects on the local server, one project is running PHP5.6 and the other one is running PHP7.0. Now would it be possible to enable these two versions based on the projects? I already tried adding AddHandler application/x-httpd-php7 .php in one of the project htaccess but it’s not working. Currently, PHP7.0 and PHP5.6-fpm have already installed on the

Advertisement