Skip to content

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 configurati…

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 -…

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 …

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. Cu…