sub domain php problem apache_nginx_php7.2

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
My website works like this: site.com/subdomain but not works like this subdomain.site.com

I do have valid nameservers and valid A record.

intodns.com/likeakinginc.com

ns1.likeakinging.com
ns2.likeakinginc.com

Webserver DA: 104.237.9.154

ns1: 104.237.10.55
ns2: 104.251.210.36

A Record for ( Sub Domain - SRV ) - 104.237.9.154 Screenshot: https://prnt.sc/q68gan


Sub Domain srv.likeakinginc.com Broken Screenshot: https://prnt.sc/q68hdq
Sub Domain likeakinginc.com/srv Working Screenshot: https://prnt.sc/q68hxg
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
670
Location
Murfreesboro
Hey lets work over here... and let start with
Send me a
Code:
cat /usr/local/directadmin/custombuild/options.conf
redact your host name or Ips as well.
 

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
root@srv:~# cat /usr/local/directadmin/custombuild/options.conf
#PHP Settings
php1_release=7.2
php1_mode=php-fpm
php2_release=7.3
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
php4_release=no
php4_mode=php-fpm
secure_php=yes
opcache=no
htscanner=no
php_ini=yes
php_timezone=America/Chicago
php_ini_type=production
ioncube=yes
imagick=yes
zend=yes
suhosin=no
x_mail_header=yes

#MySQL Settings
mysql=8.0
mariadb=10.4
mysql_inst=mysql
mysql_backup=yes
mysql_backup_gzip=no
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups
mysql_force_compile=no

#WEB Server Settings
webserver=nginx_apache
http_methods=ALL
litespeed_serialno=trial
modsecurity=no
modsecurity_ruleset=no
apache_ver=2.4
apache_mpm=auto
mod_ruid2=no
userdir_access=yes
harden_symlinks_patch=yes
use_hostname_for_alias=no
redirect_host=srv.likeakinginc.com
redirect_host_https=yes

#WEB Applications Settings
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=no
roundcube=yes
webapps_inbox_prefix=no

#ClamAV-related Settings
clamav=yes
clamav_exim=yes
modsecurity_uploadscan=yes
proftpd_uploadscan=yes
pureftpd_uploadscan=yes
suhosin_php_uploadscan=no

#Mail Settings
exim=yes
eximconf=yes
eximconf_release=4.5
blockcracking=yes
easy_spam_fighter=yes
spamd=spamassassin
sa_update=daily
dovecot=yes
dovecot_conf=yes
mail_compress=no
pigeonhole=no

#FTP Settings
ftpd=pureftpd

#Statistics Settings
awstats=yes
webalizer=yes

#CustomBuild Settings
custombuild=2.0
custombuild_plugin=yes
autover=yes
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files9.directadmin.com

#Cronjob Settings
cron=yes
cron_frequency=daily
email=email@domain.com
notifications=yes
da_autoupdate=yes
updates=yes
webapps_updates=yes

#CloudLinux Settings
cloudlinux=no
cloudlinux_beta=no
cagefs=no

#Advanced Settings
autoconf=yes
automake=yes
libtool=yes
curl=yes
new_pcre=yes
ssl_configuration=intermediate

phpmyadmin_public=yes
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
670
Location
Murfreesboro
on the test system...

change
webserver=apache
htscanner=yes
apache_mpm=event
use_hostname_for_alias=yes
modsecurity_uploadscan=no
proftpd_uploadscan=no
cron_frequency=weekly

optional changes
mysql_backup_gzip=yes
mail_compress=yes
pigeonhole=yes

Let's just get apache running and no issues first. everything else seem fine.
 

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
and after that which commands run 1st.
and also I already got few domains here on this webserver. cuz wondering if needed or not uploadscan

./build update
./build apache
php n
rewrite_confs
?
 

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
root@srv:/usr/local/directadmin/custombuild# cat /usr/local/directadmin/conf/directadmin.conf
add_userdb_quota=1
addip=/usr/local/directadmin/scripts/addip
admin_helper=admin.site-helper.com
admindir=./data/admin
allow_foreign_key=1
apache_public_html=0
apache_ver=2.0
apachecert=/etc/httpd/conf/ssl.crt/server.crt
apacheconf=/etc/httpd/conf/extra/directadmin-vhosts.conf
apacheips=/etc/httpd/conf/ips.conf
apachekey=/etc/httpd/conf/ssl.key/server.key
apachelogdir=/var/log/httpd/domains
apachemimetypes=/etc/mime.types
awstats=1
brute_dos_count=10
brute_force_log_scanner=1
brute_force_scan_apache_logs=2
brute_force_time_limit=1200
brutecount=10
bruteforce=1
cacert=/usr/local/directadmin/conf/cacert.pem
cakey=/usr/local/directadmin/conf/cakey.pem
carootcert=/usr/local/directadmin/conf/carootcert.pem
check_partitions=2
check_subdomain_owner=1
clear_blacklist_ip_time=1440
clear_brute_log_entry_time=30
clear_brute_log_time=24
cloud_cache=0
cluster=0
default_private_html_link=1
demodocsroot=./data/skins/evolution
dkim=2
dns_ttl=1
docsroot=./data/skins/evolution
dovecot=1
emailspoolvirtual=/var/spool/virtual
emailvirtual=/etc/virtual
enable_ssl_sni=1
enforce_difficult_passwords=1
ethernet_dev=eth0
exempt_local_block=1
frontpage_on=0
ftpconfig=/etc/proftpd.conf
ftppasswd=/etc/proftpd.passwd
ftpvhosts=/etc/proftpd.vhosts.conf
hide_brute_force_notifications=1
ip_brutecount=100
letsencrypt=1
license=/usr/local/directadmin/conf/license.key
litespeed=0
log_rotate_size=5
logdir=/var/log/directadmin
logger=/usr/local/directadmin/logger
loghostname=0
login_history=10
logs_to_keep=5
lost_password=0
mail_sni=1
max_per_email_send_limit=0
max_username_length=10
maxfilesize=10485760
mysql_detect_correct_methods=1
mysql_milestone_16=1
mysql_use_new_user_methods=1
mysqlconf=/usr/local/directadmin/conf/mysql.conf
namedconfig=/etc/bind/named.conf
nameddir=/etc/bind
nginx=0
nginx_proxy=1
ns1=ns1.likeakinginc.com
ns2=ns2.likeakinginc.com
numservers=10
openlitespeed=0
owsadm=/usr/local/frontpage/version5.0/bin/owsadm.exe
partition_usage_threshold=95
php_fpm_max_children_default=10
port=2222
pureftp=1
purge_spam_days=30
quota_partition=/
removeip=/usr/local/directadmin/scripts/removeip
reseller_helper=reseller.site-helper.com
secure_access_group=access
servername=srv.likeakinginc.com
serverpath=/usr/local/directadmin
session_minutes=60
skinsdir=./data/skins
sshdconfig=/etc/ssh/sshd_config
ssl=1
ssl_redirect_host=srv.likeakinginc.com
taskqueue=/usr/local/directadmin/data/task.queue
templates=/usr/local/directadmin/data/templates
ticketsdir=/usr/local/directadmin/data/tickets
timeout=60
tmpdir=../../../home/tmp
unblock_brute_ip_time=1440
unified_ftp_password_file=1
user_brutecount=100
user_can_set_email_limit=1
user_helper=www.site-helper.com
userdata=./data/users
webalizer=1
webmail_client=roundcube
webmail_link=roundcube
zip=1
 

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
nope i am on Debian. 10 64bit. on apt-get not yum install :))
Linux srv.likeakinginc.com 4.19.0 #1 SMP Wed May 15 09:45:34 MSK 2019 x86_64 GNU/Linux

root@srv:/usr/local/directadmin/custombuild# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


root@srv:/usr/local/directadmin/custombuild# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 104.237.9.154 netmask 255.255.255.0 broadcast 104.237.9.255
inet6 fe80::5402:23ff:fecf:d60b prefixlen 64 scopeid 0x20<link>
ether 00:1c:42:49:36:24 txqueuelen 1000 (Ethernet)
RX packets 96359590 bytes 9274745446 (8.6 GiB)
RX errors 0 dropped 77334 overruns 0 frame 0
TX packets 10512165 bytes 16303596182 (15.1 GiB)
TX errors 0 dropped 14 overruns 0 carrier 0 collisions 0

eth0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 104.237.10.55 netmask 255.255.255.0 broadcast 104.237.10.255
ether 00:1c:42:49:36:24 txqueuelen 1000 (Ethernet)

eth0:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 104.251.210.36 netmask 255.255.255.0 broadcast 104.251.210.255
ether 00:1c:42:49:36:24 txqueuelen 1000 (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6361165 bytes 2566914032 (2.3 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6361165 bytes 2566914032 (2.3 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 

bdacus01

Verified User
Joined
Jul 22, 2017
Messages
670
Location
Murfreesboro
Ok lets make sure Deb is up to date

Code:
apt-get update
apt-get upgrade
Then this. Go get dinner. It is going to take a bit..

Code:
cd /usr/local/directadmin/custombuild
./build clean     
./build clean_old_webapps
./build update
./build update_da
./build all d
then after all that finishes
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
 

ibossonline

Verified User
Joined
Oct 26, 2019
Messages
74
Location
NYC
yes, its taking time. thank you so much. you really helping me. I appreciate that.
 
Top