I’m not that familiar with hosting webservers, but I hosted one using Apache24 in order to start workign on making my MyBB forum. I followed the install guide to the letter, but when i try going to localhost/install on my browser, I get the error in the title: Fatal error: Cannot declare class XMLParser, because the name is already in
Tag: apache
Configuring Symfony 5 Application on Apache server
I need some help with configuring Symfony on apache2 web server. My current project category structure is: var/www/domain.com/public_html Inside public_html is where my Symfony application is located. I am stuck at figuring our what I am doing wrong in my either .htaccess or /etc/apache2/sites-available/domain.com.conf files. I am using symfony/apache-pack. My .htaccess files live inside /public folder as per documentation. Here
Apache RewriteMap prg using fopen(‘php://stdin’, ‘r’) not working over HTTPS
I’ve set up a RewriteMap using prg which calls a php script, like this: And then .htaccess puts the output in an env variable MAPTO like this: It works correctly over HTTP, but over HTTPS no input is returned. I’m using Apache 2.4, PHP 7.2 and have confirmed that OpenSSL is installed. What could be going on here? Answer Okay,
Can Microsoft’s SQLSRV driver for PHP run on Apache?
Scenario: I have a PHP website running on Apache server I have an ERP system (MS SQL) that runs on a different server I need to connect from my website to that MS SQL server I need to work with Microsoft SQL Server in my PHP application. I’ve managed to get their SQLSRV driver for PHP running on my localhost
Host laravel application inside laravel application
I am trying to host a laravel inside a laravel application because I need it to work on the same domain. So imagine my domain is somedomain.com. I am already pointing it to the public directory of a …
Why do I still get xAMP errors after fixing my PHP code and saving the file?
This question applies to several types of coding errors, from leaving dollar signs off the front of PHP variables to forgetting to put a semicolon between statements, to leaving unmatched braces and …
htacess redirecting to js & css files
This is my typical PHP MVC Structure: This is my htaccess configuration: Write now my all requests are going through index.php. In my project files, I am accessing my css & js files located in Resources folder like following: This result in following error I tried to add following Rewrite rule in htaccess configuration, but it doesn’t work: I don’t
Apache unicode handling
I’m trying to duplicate existing apache behavior in a new server, but first need to understand how the current (Red Hat 4.4.7-23) one is working. The following php: Generates this output when run form the command line: Note that the json_encode fails because of the rogue unicode character. When requested via apache I instead get: I have a lot of
Apache unique Vhost user, PHP sessions not working
I am looking to run an number of Apache server which will host websites for multiple clients. I have installed the libapache2-mpm-itk module and have created unique users/groups for each clients set of files. And configured their corresponding vhost file to run the process with that user/group. This works fine until I try to use PHP sessions. In the vhost
How to open a php page which is out of /var/www/html in browsers?
There is an apache server with three directories in /var/www/: /var/www/html/ and /var/www/printer and /var/www/codes I can read all pages in /html/ via browser with no problem. But I don’t know how …