find ./page* -mtime +7 -exec rm {} \;
or remove 0-byte filesize:
find . -type f -size 0 -exec rm {} \;
find ./page* -mtime +7 -exec rm {} \;
or remove 0-byte filesize:
find . -type f -size 0 -exec rm {} \;
500 OOPS: could not bind listening IPv4 socket:
in /etc/vsftpd.conf set listen=NO
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
in /etc/vsftpd.conf set allow_writeable_chroot=YES
Note: for a php problem I recently encountered this message:
ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker 'aa.bb.cc.dd', file '/home/user/www/wordpress/wp-admin/admin.php', line 109)
After some google I found: http://wordpress.org/support/topic/adminphp-tries-to-increase-memory_limit
A solution is given, but the post is rather old (solution is not in admin.php anymore) so search for the locations of the WP_MAX_MEMORY_LIMIT
setting in your WordPress directory: find . -exec grep -H WP_MAX_MEMORY_LIMIT {} \;
Or check directly: vi .....www/weblog/wp-includes/default-constants.php
Change this limit to whatever it’s set to in the php settings. To find out what they are, use the following info.php script in a location you can use from the web:
<?php
phpinfo();
?>
Was:
ods.setDriverType("thin");
ods.setServerName("ocwgrid01.nbd.local");
ods.setDatabaseName("SCXD2");
ods.setPortNumber(1521);
ods.setUser("system");
ods.setPassword("ali120");
Is:
OracleDataSource ods = new OracleDataSource();
ods.setUser("system");
ods.setPassword("ali120");
ods.setConnectionCachingEnabled(true);
ods.setConnectionCacheName("MyCache");
ods.setFastConnectionFailoverEnabled(true);
ods.setONSConfiguration("nodes=ser1:4200,ser2:4200");
ods.setURL("jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=owlndb260)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=owlndb260
)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=SCXD2
)))");
Connection conn = ods.getConnection();