samedi 22 mai 2021

my php statements are set over motiple websites on one machine

im trying to host two websites on 1 machine and it seemed to work fine untill i tryed to difine a statement in php that i had defined on the other website. i expected it to be independent but i gt an error that the statement is allready defined:

Fatal error: Cannot redeclare emptyInputSignup() (previously declared in /var/www/html2/includes/functions.inc.php:7) in /var/www/html/includes/functions.inc.php on line 7

i could change the name of the statement but i think other things might not work now. is tehere any way i make the websites independent of eatchother?

i run my website on linux with apache2.

virtualhost settings

<virtualhost *:80>
ServerName tmsbracing.ga

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<virtualhost *:80> ServerName kreation.ga

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html2

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

vim: syntax=apache ts=4 sw=4 sts=4 sr noet




Aucun commentaire:

Enregistrer un commentaire