Show Posts

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.


Messages - NALF

Pages: [1]
1
CentOS-WebPanel Bugs / Re: Domain vhost with wrong IP
« on: June 03, 2015, 03:55:03 PM »
... the correct IP is set but then all web sites goes to default CWP page. Argggggg!  >:(

I had a really good feeling about CWP at first, I even sent a donation... but as days pass I find out bugs after bugs!
I have been working for 3-4 days now to configure and correct bugs, find workaround, etc.

I am thinking that my time would be better spent to start over from scratch and install another control panel...

But heck there is no way to uninstall CWP! My god! I'll have to ask for a OS reload from my host, they will probably charge me.

What a pain! >:( >:( >:( >:( >:(



2
Apache / Re: Default Page Displayed for all domains
« on: June 03, 2015, 04:05:05 AM »
Same problem here. When I try to setup a domain on different IP it always shows the default page...  >:(

3
CentOS-WebPanel Bugs / Domain vhost with wrong IP
« on: June 03, 2015, 03:33:25 AM »
Let's say I have 2 users:

admin with ip 1.2.3.4
user2 with ip 5.6.7.8

When I add a domain to user2 I want this domain to use the ip 5.6.7.8
The IP in the Apache vhost is always 1.2.3.4

I didn't touch the template, it uses %domain_ip%
If I Rebuild Apache vHosts the correct ip is set.


4
CentOS-WebPanel Bugs / Domain path truncated
« on: June 03, 2015, 03:27:12 AM »
The domain PATH is not long enought. It is getting truncated when I enter long domain name.
Ex:

Domain: nice-long-domain-name-are-not-unusual.space
Path: /home/admin/domains/nice-long-domain-name-are-not-unusual.space/public_html/

Path shown: /home/admin/domains/nice-long-domain-name-are-not-unusual.sp

5
PHP / Re: SOAP
« on: June 02, 2015, 07:57:23 PM »
I did the same thing to install ZipArchive

6
PHP / Re: SOAP
« on: June 02, 2015, 07:23:40 PM »
I got it.

- I went in CWP under Php Settings\Php version switcher
- I selected the same version as actually installed (5.4.27) and clicked Next
- I modified the Additional configuration section to add --enable-soap=shared (I am not sure if the shared is important)
- Click Start compiler in background
- Keep an eye on the progress...

Code: [Select]
tail -f /var/log/php-rebuild.log
- When finished, find the soap.so module:

Code: [Select]
find / -name soap.so
There is a couple files now. The good one is the one with a path like /usr/lib64/extensions/no-debug-non-zts-20100525/soap.so

Edit php.ini to add the module

Code: [Select]
nano /usr/local/cwp/php54/php.ini
Add the following at the end:

Code: [Select]
extension="/usr/lib64/extensions/no-debug-non-zts-20100525/soap.so"
Retstart Apache:

Code: [Select]
service httpd restart
And voilą! The SOAP information can be found on phpinfo() page and my code works.

 




7
PHP / SOAP
« on: June 02, 2015, 04:23:59 PM »
SOAP calls dont' seem to work on my brand new CWP installation.

I can see the SOAP module enabled on the PHP Short Info page but it does not appear on phpinfo() page.
When I do php -i | grep -i soap I see --enable-soap and Soap Client => enabled.
It all seems fine but It doesn't work when I try to use it in my code.

I have tried to (re)install it using yum install php-soap but still no luck.

Any clue please?  :o

8
PHP / Re: How to Install APC for Wordpress
« on: June 02, 2015, 04:17:21 PM »
I just installed APC yesterday, it was a pain! I tried with yum but didn't woork at all. I finally got it!
Here is what I did...

Code: [Select]
wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xvzf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install

Find the path of the module:

Code: [Select]
find / -name apc.so
(in my case /usr/lib64/extensions/no-debug-non-zts-20100525/apc.so)

Edit php.ini:

Code: [Select]
nano /usr/local/cwp/php54/php.ini
There are many php.ini and it's pretty confusing to know which one to update. It didn't work when I updated this one /usr/local/php/php.ini

Add the following lines at the end of php.ini and change for your desired values:

Code: [Select]
extension="/usr/lib64/extensions/no-debug-non-zts-20100525/apc.so"
apc.enabled=1
apc.shm_size=200M
apc.ttl=0
apc.user_ttl=0
apc.enable_cli=0
apc.max_file_size=5M

Restart Apache:

Code: [Select]
service httpd restart
You should now find the APC section on phpinfo() page.

Pages: [1]