Few days ago I got little bit problem for installing oci8 in Centos 7 with PHP 5.6, it’s error said: checking for cc... no
checking for gcc... no
configure: error: in `/var/tmp/pear-build-root9arfuf/oci8-2.0.12':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
I have posted some solutions before in this blog, maybe you should read here for complete installation tutorial oci8 in linux Centos with PHP 5.4 – 5.6, but why now I post another one in different thread, because I need my reader more easily to read and understand. Continue reading →
My server has a partition and the disk size just 38GB, whereas I need about 20GB more for save my new files. With this condition I think have just two options between extend the partition before or add new disk and mount it into a folder within my partition before. Then I discuss with my friend which way is the best and the faster, finally I choose the second option which is add new disk (new partition, basically it will named as /dev/sdb/, /dev/sdc/, etc) and mount it into my specific folder, let say I will mount it into /opt/lampp/htdocs/aset.
So, how to extend new disk and mount it into our custom folder? here are the steps. This solution was tested successfully in my server Linux Centos 7.
# Check your which one is your new disk
# you can check that with this
sudo parted -l | grep Error
# or this one
# just make sure the free size still 100%
# in my case I got /dev/sdb/
# so I started with this
vgcreate diskaset /dev/sdb
# Chek these line!
# Alloc PE / Size 12799 / <50.00 GiB
# Free PE / Size 0 / 0
# 12799 refers to Free PE or Alloc PE
lvcreate -l 12799 lv_diskaset diskaset
# Format the disk into XFS
# for "/disk/diskaset/" name it as you wish
sudo mkfs.xfs /dev/diskaset/
sudo mkfs.xfs /dev/diskaset/lv_diskaset
# Create folder for mount the disk
mount /dev/diskaset/lv_diskaset /opt/lampp/htdocs/aset/
# Edit the "/etc/fstab" file for autostart when server startup
# Add this line in the bottom
/dev/diskaset/lv_diskaset /opt/lampp/htdocs/aset xfs defaults 0 0
# Reboot your server
Finish, hope my solution above will help you sometime to extend and mount new disk into your custom folder for expanding storage in Linux Centos 7.
I have a problem when I tried to remote PostgreSQL Server (in Linux Centos) from my PgAdmin Client (in Windows), there’s an error message displayed on screen said “could not connect to server: connection timed out (0x0000274c/10060) is the server running on host and accepting tcp/ip connections on port 5432?”
I checked my firewall status with : systemctl status firewalld
Condition : Not Normal
It said that my firewall status was Active: failed. From here I’m sure there’s problem with my firewall process, because if the firewall stopped successfully, the status will be inactive like this image below :
Condition : Normal
After tried many solution, I ended-up with this one : systemctl unmask firewalld
Next step after run unmask syntax, I tried to restart my firewall and it runs flawlessly :). Hope this thread help you guys.