This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
MySQL / Can't connect to database
« on: February 04, 2019, 12:16:56 PM »
When I try to install script on my site I'm getting this error:
Database_Exception [ 2 ]: mysqli::__construct(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
I have a database, user and password.
But when I tried to change the mysql password for root, I received the message:
Username root with host localhost not found in mysql.user table!
Database_Exception [ 2 ]: mysqli::__construct(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
I have a database, user and password.
But when I tried to change the mysql password for root, I received the message:
Username root with host localhost not found in mysql.user table!
2
CentOS 7 Problems / Wildcard and automatic subdomains
« on: May 21, 2018, 04:19:39 PM »
I was browsing the internet and I do not know what's going on anymore.
I have a vps with Centos webpanel, on vps is a script that is supposed to automatically create subdomains for users who want to add their business card.
Domain in OVH, I added in the dns zone entry: * .mysite.eu A IP vps.
File /usr/local/apache/conf.d/vhosts.conf
<VirtualHost My IP:80>
ServerName myserver
ServerAlias *.mysite.eu
ServerAlias www.mysite.eu
ServerAdmin webmaster@mysite.eu
DocumentRoot /home/lupus/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/lupus/public_html/cgi-bin/
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/lupus/mysite.eu/*.conf
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled lupus
</IfModule>
<IfModule mod_suexec.c>
SuexecUserGroup lupus lupus
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup lupus lupus
suPHP_ConfigPath /home/lupus
</IfModule>
<Directory "/home/lupus/public_html">
AllowOverride All
</Directory>
When trying to create a business card, the address is: https: //mysite.eu/company/%26nbsp%3B (after these strange characters, I can enter the name of the company)
And it should be: https: //company/mysite.eu
What is wrong?
I have a vps with Centos webpanel, on vps is a script that is supposed to automatically create subdomains for users who want to add their business card.
Domain in OVH, I added in the dns zone entry: * .mysite.eu A IP vps.
File /usr/local/apache/conf.d/vhosts.conf
<VirtualHost My IP:80>
ServerName myserver
ServerAlias *.mysite.eu
ServerAlias www.mysite.eu
ServerAdmin webmaster@mysite.eu
DocumentRoot /home/lupus/public_html
UseCanonicalName Off
ScriptAlias /cgi-bin/ /home/lupus/public_html/cgi-bin/
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/lupus/mysite.eu/*.conf
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled lupus
</IfModule>
<IfModule mod_suexec.c>
SuexecUserGroup lupus lupus
</IfModule>
<IfModule mod_suphp.c>
suPHP_UserGroup lupus lupus
suPHP_ConfigPath /home/lupus
</IfModule>
<Directory "/home/lupus/public_html">
AllowOverride All
</Directory>
When trying to create a business card, the address is: https: //mysite.eu/company/%26nbsp%3B (after these strange characters, I can enter the name of the company)
And it should be: https: //company/mysite.eu
What is wrong?
Pages: [1]